diff options
| author | Joshua Reisenauer <kd7tck@msn.com> | 2016-05-19 20:44:09 -0700 |
|---|---|---|
| committer | Joshua Reisenauer <kd7tck@msn.com> | 2016-05-19 20:44:09 -0700 |
| commit | 41c5f3a0178027e9b74e563ab102f603a53e35bf (patch) | |
| tree | 8db80b512a772e7c95f9e723d8b0834af37b536c /src/raylib.h | |
| parent | 847944e24047cb3e2a2c6dfd6dfaa3667cf6f830 (diff) | |
| download | raylib-41c5f3a0178027e9b74e563ab102f603a53e35bf.tar.gz raylib-41c5f3a0178027e9b74e563ab102f603a53e35bf.zip | |
Buffer for raw audio
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/raylib.h b/src/raylib.h index 6efde710..986dc7bf 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -896,8 +896,12 @@ float GetMusicTimePlayed(int index); // Get current m int getMusicStreamCount(void); void SetMusicPitch(int index, float pitch); -RawAudioContext InitRawAudioContext(int sampleRate, int channels, bool floatingPoint); // used to output raw audio streams, returns negative numbers on error +// used to output raw audio streams, returns negative numbers on error +// if floating point is false the data size is 16bit short, otherwise it is float 32bit +RawAudioContext InitRawAudioContext(int sampleRate, int channels, bool floatingPoint); + void CloseRawAudioContext(RawAudioContext ctx); +int BufferRawAudioContext(RawAudioContext ctx, void *data, int numberElements); // returns number of elements buffered #ifdef __cplusplus } |
