diff options
| author | Joshua Reisenauer <kd7tck@msn.com> | 2016-05-02 01:24:24 -0700 |
|---|---|---|
| committer | Joshua Reisenauer <kd7tck@msn.com> | 2016-05-02 01:24:24 -0700 |
| commit | 9ef0240e99e7e6a626fdb8fee4f8a81eea21f3e2 (patch) | |
| tree | 2f4c03cde96fa00c62feacd1523af7ce14a51374 /src/raylib.h | |
| parent | 790bc7280685d714ddce3e1ee0afa11cee0c5e06 (diff) | |
| download | raylib-9ef0240e99e7e6a626fdb8fee4f8a81eea21f3e2.tar.gz raylib-9ef0240e99e7e6a626fdb8fee4f8a81eea21f3e2.zip | |
resamples added
Ease of use considered in api and channels are more convenient as
unsigned char type.
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 9c5a8258..3fa20116 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -870,9 +870,9 @@ 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, 0); // mixchannel 1, 48khz -// all samples are floating point stereo by default -AudioContext InitAudioContext(unsigned short sampleRate, unsigned char mixChannel); +// exmple usage is InitAudioContext(48000, 0, 2); // mixchannel 1, 48khz, stereo +// all samples are floating point by default +AudioContext InitAudioContext(unsigned short sampleRate, unsigned char mixChannel, unsigned char channels); void CloseAudioContext(AudioContext ctx); // Frees audio context bool UpdateAudioContext(AudioContext ctx, float *data, unsigned short dataLength); // Pushes more audio data into context mix channel, if NULL is passed to data then zeros are played |
