diff options
| author | Ray <[email protected]> | 2017-04-04 12:17:08 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-04-04 12:17:08 +0200 |
| commit | 407746193d991190fa4dead94649abb2ed27d462 (patch) | |
| tree | f79f67c3df8ed657a27abba6029a71be359871df /src/audio.h | |
| parent | 5338bbf70d3e2c71fcbd0db54e14b6cf2d5616c3 (diff) | |
| parent | 1f56e8e5d0000e1c46483530331887dbd0f8ce75 (diff) | |
| download | raylib-407746193d991190fa4dead94649abb2ed27d462.tar.gz raylib-407746193d991190fa4dead94649abb2ed27d462.zip | |
Merge pull request #256 from raysan5/develop
Integrate develop branch
Diffstat (limited to 'src/audio.h')
| -rw-r--r-- | src/audio.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/audio.h b/src/audio.h index 51f858da..48ef7403 100644 --- a/src/audio.h +++ b/src/audio.h @@ -123,7 +123,7 @@ Wave LoadWave(const char *fileName); // Load wave dat Wave LoadWaveEx(void *data, int sampleCount, int sampleRate, int sampleSize, int channels); // Load wave data from raw array data Sound LoadSound(const char *fileName); // Load sound from file Sound LoadSoundFromWave(Wave wave); // Load sound from wave data -void UpdateSound(Sound sound, const void *data, int samplesCount); // Update sound buffer with new data +void UpdateSound(Sound sound, const void *data, int samplesCount);// Update sound buffer with new data void UnloadWave(Wave wave); // Unload wave data void UnloadSound(Sound sound); // Unload sound void PlaySound(Sound sound); // Play a sound @@ -151,9 +151,10 @@ void SetMusicLoopCount(Music music, float count); // Set music loo float GetMusicTimeLength(Music music); // Get music time length (in seconds) float GetMusicTimePlayed(Music music); // Get current music time played (in seconds) +// Raw audio stream functions AudioStream InitAudioStream(unsigned int sampleRate, - unsigned int sampleSize, - unsigned int channels); // Init audio stream (to stream raw audio pcm data) + 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 void CloseAudioStream(AudioStream stream); // Close audio stream and free memory bool IsAudioBufferProcessed(AudioStream stream); // Check if any audio stream buffers requires refill |
