diff options
| author | Ray <raysan5@gmail.com> | 2016-05-11 20:14:12 +0200 |
|---|---|---|
| committer | Ray <raysan5@gmail.com> | 2016-05-11 20:14:12 +0200 |
| commit | 454b422fd64d842099b6350d9a24b5b773b0dd92 (patch) | |
| tree | 9bdfc4c067f8b598c8faa34a9034dff143b44cd2 /src/raylib.h | |
| parent | 4d78d27bd956f7f7592a9efc453b954436d57297 (diff) | |
| parent | 9799856ad4864b808cbfb40b0b4398fcdf61c1c2 (diff) | |
| download | raylib-454b422fd64d842099b6350d9a24b5b773b0dd92.tar.gz raylib-454b422fd64d842099b6350d9a24b5b773b0dd92.zip | |
Merge pull request #112 from kd7tck/develop
Base Audio Context System
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/raylib.h b/src/raylib.h index ecfce9fc..634ab143 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -878,10 +878,10 @@ bool IsAudioDeviceReady(void); // True if call // Audio contexts are for outputing custom audio waveforms, This will shut down any other sound sources currently playing // The mixChannel is what mix channel you want to operate on, 0-3 are the ones available. Each mix channel can only be used one at a time. -// exmple usage is InitAudioContext(48000, 16, 0, 2); // stereo, mixchannel 1, 16bit, 48khz -AudioContext InitAudioContext(unsigned short sampleRate, unsigned char bitsPerSample, unsigned char mixChannel, unsigned char channels); +// exmple usage is InitAudioContext(48000, 0, 2, true); // mixchannel 1, 48khz, stereo, floating point +AudioContext InitAudioContext(unsigned short sampleRate, unsigned char mixChannel, unsigned char channels, bool floatingPoint); void CloseAudioContext(AudioContext ctx); // Frees audio context -void UpdateAudioContext(AudioContext ctx, void *data, unsigned short *dataLength); // Pushes more audio data into context mix channel, if none are ever pushed then zeros are fed in +unsigned short UpdateAudioContext(AudioContext ctx, void *data, unsigned short numberElements); // Pushes more audio data into context mix channel, if NULL is passed to data then zeros are played Sound LoadSound(char *fileName); // Load sound to memory Sound LoadSoundFromWave(Wave wave); // Load sound to memory from wave data |
