Skip to main content

SDL_CreateAudioStream

Function SDL_CreateAudioStream 

Source
pub unsafe extern "C" fn SDL_CreateAudioStream(
    src_spec: *const SDL_AudioSpec,
    dst_spec: *const SDL_AudioSpec,
) -> *mut SDL_AudioStream
Expand description

Create a new audio stream.

Parameter: src_spec the format details of the input audio.

Parameter: dst_spec the format details of the output audio.

Returns: a new audio stream on success or NULL on failure; call SDL_GetError() for more information.

Thread Safety: It is safe to call this function from any thread.

Available Since: This function is available since SDL 3.2.0.

See Also: SDL_PutAudioStreamData

See Also: SDL_GetAudioStreamData

See Also: SDL_GetAudioStreamAvailable

See Also: SDL_FlushAudioStream

See Also: SDL_ClearAudioStream

See Also: SDL_SetAudioStreamFormat

See Also: SDL_DestroyAudioStream