mirror of
				https://github.com/raysan5/raylib.git
				synced 2025-10-26 12:27:01 +00:00 
			
		
		
		
	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 <raysan5@gmail.com>
This commit is contained in:
		| @@ -1498,6 +1498,7 @@ RLAPI void StopSoundMulti(void);                                      // Stop an | ||||
| RLAPI int GetSoundsPlaying(void);                                     // Get number of sounds playing in the multichannel | ||||
| RLAPI bool IsSoundPlaying(Sound sound);                               // Check if a sound is currently playing | ||||
| RLAPI void SetSoundVolume(Sound sound, float volume);                 // Set volume for a sound (1.0 is max level) | ||||
| RLAPI void SetSoundPan(Sound sound, float pan);                       // Set pan for a sound (0.5 = center) | ||||
| RLAPI void SetSoundPitch(Sound sound, float pitch);                   // Set pitch for a sound (1.0 is base level) | ||||
| RLAPI void WaveFormat(Wave *wave, int sampleRate, int sampleSize, int channels); // Convert wave data to desired format | ||||
| RLAPI Wave WaveCopy(Wave wave);                                       // Copy a wave to a new wave | ||||
| @@ -1517,6 +1518,7 @@ RLAPI void PauseMusicStream(Music music);                             // Pause m | ||||
| RLAPI void ResumeMusicStream(Music music);                            // Resume playing paused music | ||||
| RLAPI void SeekMusicStream(Music music, float position);              // Seek music to a position (in seconds) | ||||
| RLAPI void SetMusicVolume(Music music, float volume);                 // Set volume for music (1.0 is max level) | ||||
| RLAPI void SetMusicPan(Music music, float pan);                       // Set pan for a music (0.5 = center) | ||||
| RLAPI void SetMusicPitch(Music music, float pitch);                   // Set pitch for a music (1.0 is base level) | ||||
| RLAPI float GetMusicTimeLength(Music music);                          // Get music time length (in seconds) | ||||
| RLAPI float GetMusicTimePlayed(Music music);                          // Get current music time played (in seconds) | ||||
| @@ -1533,6 +1535,7 @@ RLAPI bool IsAudioStreamPlaying(AudioStream stream);                  // Check i | ||||
| RLAPI void StopAudioStream(AudioStream stream);                       // Stop audio stream | ||||
| RLAPI void SetAudioStreamVolume(AudioStream stream, float volume);    // Set volume for audio stream (1.0 is max level) | ||||
| RLAPI void SetAudioStreamPitch(AudioStream stream, float pitch);      // Set pitch for audio stream (1.0 is base level) | ||||
| RLAPI void SetAudioStreamPan(AudioStream stream, float pan);          // Set pan for audio stream (0.5 = centered) | ||||
| RLAPI void SetAudioStreamBufferSizeDefault(int size);                 // Default size for new audio streams | ||||
|  | ||||
| #if defined(__cplusplus) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 ptarabbia
					ptarabbia