diff options
| author | Ray <[email protected]> | 2017-03-29 00:35:42 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2017-03-29 00:35:42 +0200 |
| commit | 080a79f0b03bd40a4ac6dfb8c6f90a3a7379d7ad (patch) | |
| tree | 1bbd9d5d1ed6f1818f0497110f222f1ef5d7a67e /src/audio.h | |
| parent | 2f65975c5ec6d82d2321ed28d7754edf636da7ec (diff) | |
| download | raylib-080a79f0b03bd40a4ac6dfb8c6f90a3a7379d7ad.tar.gz raylib-080a79f0b03bd40a4ac6dfb8c6f90a3a7379d7ad.zip | |
Added IsFileExtension()
Replaced old GetExtension() function
Make IsFileExtension() public to the API
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 |
