-
Notifications
You must be signed in to change notification settings - Fork 0
moonbase.audio functions
Returns the number of audio channels in output; 2 for stereo, 1 for mono
Returns a number representing the format of the audio samples. These values are based on the AUDIO_* macros defined in SDL_audio.h
Returns the output sampling frequency in samples per second (Hz)
Returns the bytes used per output sample
Returns the number of sound channels being mixed
Returns a normalized number representing the average volume of all sound channels
Pauses all sound channels
Restarts moonbase.audio, applying any changes made to the format, frequency, samples, or audio channels
Resumes all sound channels after a moonbase.audio.pause( )
Sets the number of audio channels in output; 2 for stereo, 1 for mono. Call moonbase.audio.restart( ) to apply changes
Sets the format of the audio samples. This number is based on the AUDIO_* macros defined in SDL_audio.h. Call moonbase.audio.restart( ) to apply changes
Sets the the output sampling frequency in samples per second (Hz). Call moonbase.audio.restart( ) to apply changes
Sets the bytes used per sample. Call moonbase.audio.restart( ) to apply changes
Sets the number of sound channels beings mixed
Sets the average volume of all sound channels. volume is a normalized number from 0.0 to 1.0.