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/audio.h | |
| parent | 847944e24047cb3e2a2c6dfd6dfaa3667cf6f830 (diff) | |
| download | raylib-41c5f3a0178027e9b74e563ab102f603a53e35bf.tar.gz raylib-41c5f3a0178027e9b74e563ab102f603a53e35bf.zip | |
Buffer for raw audio
Diffstat (limited to 'src/audio.h')
| -rw-r--r-- | src/audio.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/audio.h b/src/audio.h index d3276bf6..1140a60a 100644 --- a/src/audio.h +++ b/src/audio.h @@ -102,8 +102,12 @@ float GetMusicTimePlayed(int index); // Get current m int getMusicStreamCount(void); void SetMusicPitch(int index, float pitch); +// 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 } |
