diff options
| author | ptarabbia <[email protected]> | 2022-01-16 06:49:58 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-01-16 12:49:58 +0100 |
| commit | 5ac07122bd92c008550b3e55ea0555055c99aaa0 (patch) | |
| tree | ea3ba14c384bd1c39ed40eeab683b02cec8ceb4c /src/raudio.h | |
| parent | 48a463cca869309f598399b1c2aff431feb5685a (diff) | |
| download | raylib-5ac07122bd92c008550b3e55ea0555055c99aaa0.tar.gz raylib-5ac07122bd92c008550b3e55ea0555055c99aaa0.zip | |
Add panning to raudio and update audio_raw_stream example. (#2205)
* Add panning to raudio and update audio_raw_stream example.
* remove pan smoothing, code formatting changes following pull request comments
Co-authored-by: Ray <[email protected]>
Diffstat (limited to 'src/raudio.h')
| -rw-r--r-- | src/raudio.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/raudio.h b/src/raudio.h index dbcfbd69..35c850bd 100644 --- a/src/raudio.h +++ b/src/raudio.h @@ -155,6 +155,7 @@ int GetSoundsPlaying(void); // Get number of bool IsSoundPlaying(Sound sound); // Check if a sound is currently playing void SetSoundVolume(Sound sound, float volume); // Set volume for a sound (1.0 is max level) void SetSoundPitch(Sound sound, float pitch); // Set pitch for a sound (1.0 is base level) +void SetSoundPan(Sound sound, float pan); // Set pan for a sound (0.0 to 1.0, 0.5=center) void WaveFormat(Wave *wave, int sampleRate, int sampleSize, int channels); // Convert wave data to desired format Wave WaveCopy(Wave wave); // Copy a wave to a new wave void WaveCrop(Wave *wave, int initSample, int finalSample); // Crop a wave to defined samples range @@ -173,6 +174,7 @@ void PauseMusicStream(Music music); // Pause music p void ResumeMusicStream(Music music); // Resume playing paused music void SeekMusicStream(Music music, float position); // Seek music to a position (in seconds) void SetMusicVolume(Music music, float volume); // Set volume for music (1.0 is max level) +void SetMusicPan(Music sound, float pan); // Set pan for a music (0.0 to 1.0, 0.5=center) void SetMusicPitch(Music music, float pitch); // Set pitch for a music (1.0 is base level) float GetMusicTimeLength(Music music); // Get music time length (in seconds) float GetMusicTimePlayed(Music music); // Get current music time played (in seconds) @@ -189,6 +191,7 @@ bool IsAudioStreamPlaying(AudioStream stream); // Check if audi void StopAudioStream(AudioStream stream); // Stop audio stream void SetAudioStreamVolume(AudioStream stream, float volume); // Set volume for audio stream (1.0 is max level) void SetAudioStreamPitch(AudioStream stream, float pitch); // Set pitch for audio stream (1.0 is base level) +void SetAudioStreamPan(AudioStream strean, float pan); // Set pan for audio stream (0.0 to 1.0, 0.5=center) void SetAudioStreamBufferSizeDefault(int size); // Default size for new audio streams #ifdef __cplusplus |
