mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-18 13:41:26 +01:00
Do not expose raw audio context to final user...
...at least, directly, available if using directly audio module...
This commit is contained in:
@ -100,10 +100,10 @@ void PauseMusicStream(int index); // Pause music p
|
|||||||
void ResumeMusicStream(int index); // Resume playing paused music
|
void ResumeMusicStream(int index); // Resume playing paused music
|
||||||
bool IsMusicPlaying(int index); // Check if music is playing
|
bool IsMusicPlaying(int index); // Check if music is playing
|
||||||
void SetMusicVolume(int index, float volume); // Set volume for music (1.0 is max level)
|
void SetMusicVolume(int index, float volume); // Set volume for music (1.0 is max level)
|
||||||
|
void SetMusicPitch(int index, float pitch); // Set pitch for a music (1.0 is base level)
|
||||||
float GetMusicTimeLength(int index); // Get music time length (in seconds)
|
float GetMusicTimeLength(int index); // Get music time length (in seconds)
|
||||||
float GetMusicTimePlayed(int index); // Get current music time played (in seconds)
|
float GetMusicTimePlayed(int index); // Get current music time played (in seconds)
|
||||||
int GetMusicStreamCount(void);
|
int GetMusicStreamCount(void); // Get number of streams loaded
|
||||||
void SetMusicPitch(int index, float pitch);
|
|
||||||
|
|
||||||
// used to output raw audio streams, returns negative numbers on error
|
// 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
|
// if floating point is false the data size is 16bit short, otherwise it is float 32bit
|
||||||
|
|||||||
11
src/raylib.h
11
src/raylib.h
@ -895,17 +895,10 @@ void PauseMusicStream(int index); // Pause music p
|
|||||||
void ResumeMusicStream(int index); // Resume playing paused music
|
void ResumeMusicStream(int index); // Resume playing paused music
|
||||||
bool IsMusicPlaying(int index); // Check if music is playing
|
bool IsMusicPlaying(int index); // Check if music is playing
|
||||||
void SetMusicVolume(int index, float volume); // Set volume for music (1.0 is max level)
|
void SetMusicVolume(int index, float volume); // Set volume for music (1.0 is max level)
|
||||||
|
void SetMusicPitch(int index, float pitch); // Set pitch for a music (1.0 is base level)
|
||||||
float GetMusicTimeLength(int index); // Get current music time length (in seconds)
|
float GetMusicTimeLength(int index); // Get current music time length (in seconds)
|
||||||
float GetMusicTimePlayed(int index); // Get current music time played (in seconds)
|
float GetMusicTimePlayed(int index); // Get current music time played (in seconds)
|
||||||
int GetMusicStreamCount(void);
|
int GetMusicStreamCount(void); // Get number of streams loaded
|
||||||
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, unsigned short numberElements); // returns number of elements buffered
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user