Structs§
- NSTD
Audio Play Stream - Represents an audio play stream.
- NSTD
Audio Stream Config - Represents a stream config.
NOTE:
buffer_size
will be set to 0 for default.
Enums§
- NSTD
Audio Sample Format - Represents an audio sample format.
Functions§
- nstd_
audio_ ⚠device_ build_ input_ stream - nstd_
audio_ ⚠device_ build_ output_ stream - nstd_
audio_ ⚠device_ default_ input_ config - nstd_
audio_ ⚠device_ default_ output_ config - nstd_
audio_ ⚠device_ free - Frees a device.
Parameters:
NSTDAudioDevice *device
- Pointer to a device. - nstd_
audio_ ⚠device_ free_ name - Frees a device name.
Parameters:
const char **name
- A device name. - nstd_
audio_ ⚠device_ name - Gets the name of a device.
Parameters:
NSTDAudioDevice device
- The device. Returns:char *name
- The device name. - nstd_
audio_ ⚠host_ default - Gets the default audio host.
Returns:
NSTDAudioHost host
- The default audio host. - nstd_
audio_ ⚠host_ default_ input_ device - nstd_
audio_ ⚠host_ default_ output_ device - nstd_
audio_ ⚠host_ free - Frees a host’s memory.
Parameters:
NSTDAudioHost *host
- Pointer to an audio host. - nstd_
audio_ ⚠play_ stream_ free - Frees a play stream.
Parameters:
NSTDAudioPlayStream *stream
- The play stream. - nstd_
audio_ ⚠play_ stream_ new - Creates a play stream.
Returns:
NSTDAudioPlayStream stream
- The new play stream. - nstd_
audio_ ⚠sink_ append_ from_ file - Appends audio to a sink from a file.
Parameters:
NSTDAudioSink sink
- The audio sink.NSTDFile file
- The audio file.const int should_loop
- Nonzero if the audio should be looped. Returns:int errc
- Nonzero on error. - nstd_
audio_ ⚠sink_ detach - Detaches a sink from it’s thread while freeing its memory.
Parameters:
NSTDAudioSink *sink
- The audio sink. - nstd_
audio_ ⚠sink_ free - Frees an audio sink.
Parameters:
NSTDAudioSink *sink
- The audio sink. - nstd_
audio_ ⚠sink_ get_ volume - Returns the volume of the audio sink.
Parameters:
NSTDAudioSink sink
- The audio sink. Returns:float volume
- The volume of the sink. - nstd_
audio_ ⚠sink_ is_ paused - Checks if an audio sink is paused.
Parameters:
NSTDAudioSink sink
- The audio sink. Returns:int is_paused
- Whether or not the audio sink is paused. - nstd_
audio_ ⚠sink_ length - Gets the number of audio sources currently in a sink.
Parameters:
NSTDAudioSink sink
- The audio sink. Returns:NSTDUSize size
- The number of audio sources in an audio sink. - nstd_
audio_ ⚠sink_ new - Creates a new audio sink.
Parameters:
const NSTDAudioPlayStream *const stream
- The stream to create the sink on. Returns:NSTDAudioSink sink
- The new audio sink. - nstd_
audio_ ⚠sink_ pause - Pauses an audio sink.
Parameters:
NSTDAudioSink sink
- The audio sink. - nstd_
audio_ ⚠sink_ play - Plays an audio sink.
Parameters:
NSTDAudioSink sink
- The audio sink. - nstd_
audio_ ⚠sink_ set_ volume - Sets the volume of the audio sink.
Parameters:
NSTDAudioSink sink
- The audio sink.const float volume
- The volume of the sink. - nstd_
audio_ ⚠sink_ sleep_ until_ end - Sleeps the current thread until all sounds in the sink are done playing.
Parameters:
NSTDAudioSink sink
- The audio sink. - nstd_
audio_ ⚠sink_ stop - Stops audio playback for a sink by clearing it’s queue.
Parameters:
NSTDAudioSink sink
- The audio sink. - nstd_
audio_ ⚠stream_ free - Frees an audio stream
Parameters:
NSTDAudioStream *stream
- Pointer to an audio stream. - nstd_
audio_ ⚠stream_ pause - nstd_
audio_ ⚠stream_ play
Type Aliases§
- NSTD
Audio Device - Represents an audio device.
- NSTD
Audio Host - Represents an audio host.
- NSTD
Audio Sink - Represents an audio sink.
- NSTD
Audio Stream - Represents an audio stream.