summaryrefslogtreecommitdiffhomepage
path: root/src/raudio.h
diff options
context:
space:
mode:
authorchriscamacho <[email protected]>2019-06-29 09:49:42 +0100
committerRay <[email protected]>2019-06-29 10:49:42 +0200
commit83a4eb08525c25026dbf16211ef083a46745867f (patch)
treef681f33b075035a6540f391adcbc36b880b620bb /src/raudio.h
parenta4e307ed965d2bb64f915c604e8a9ea2c003cf48 (diff)
downloadraylib-83a4eb08525c25026dbf16211ef083a46745867f.tar.gz
raylib-83a4eb08525c25026dbf16211ef083a46745867f.zip
add multi channel audio to raudio (#895)
* added multi channel sound replay to raudio added -fPIC to Makefile for Linux added simple lighting and audio multi channel to examples Makefile * not properly reporting audio buffer pool size...
Diffstat (limited to 'src/raudio.h')
-rw-r--r--src/raudio.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/raudio.h b/src/raudio.h
index f71a3083..0077d8fa 100644
--- a/src/raudio.h
+++ b/src/raudio.h
@@ -139,6 +139,9 @@ void UpdateSound(Sound sound, const void *data, int samplesCount);// Update soun
void UnloadWave(Wave wave); // Unload wave data
void UnloadSound(Sound sound); // Unload sound
void PlaySound(Sound sound); // Play a sound
+void PlaySoundEx(Sound s); // Play a sound using the multi channel buffer pool
+void StopPlayBufferPool(); // MUST be called before UnLoadSound is used on any sound played with PlaySoundEx
+int ConcurrentPlayChannels(); // Number of sounds playing in the multichannel buffer pool
void PauseSound(Sound sound); // Pause a sound
void ResumeSound(Sound sound); // Resume a paused sound
void StopSound(Sound sound); // Stop playing a sound
@@ -164,7 +167,7 @@ float GetMusicTimeLength(Music music); // Get music tim
float GetMusicTimePlayed(Music music); // Get current music time played (in seconds)
// AudioStream management functions
-AudioStream InitAudioStream(unsigned int sampleRate,
+AudioStream InitAudioStream(unsigned int sampleRate,
unsigned int sampleSize,
unsigned int channels); // Init audio stream (to stream raw audio pcm data)
void UpdateAudioStream(AudioStream stream, const void *data, int samplesCount); // Update audio stream buffers with data
@@ -182,4 +185,4 @@ void SetAudioStreamPitch(AudioStream stream, float pitch); // Set pitch for
}
#endif
-#endif // RAUDIO_H \ No newline at end of file
+#endif // RAUDIO_H