summaryrefslogtreecommitdiffhomepage
path: root/src/raylib.h
diff options
context:
space:
mode:
authorRay <[email protected]>2017-12-05 11:23:16 +0100
committerGitHub <[email protected]>2017-12-05 11:23:16 +0100
commit9d0ee6c2f61b90e4130b094707804a390b9a8617 (patch)
tree2a43025dea7c23bd59056674feae39c2e3238757 /src/raylib.h
parent54d0acc3b6200e044771c28fb01ef97dde5b90a0 (diff)
parent104391f82bc4f7466c15cf79263d83b3cb514ee9 (diff)
downloadraylib-9d0ee6c2f61b90e4130b094707804a390b9a8617.tar.gz
raylib-9d0ee6c2f61b90e4130b094707804a390b9a8617.zip
Merge pull request #413 from mackron/dr/mini_al
mini_al integration
Diffstat (limited to 'src/raylib.h')
-rw-r--r--src/raylib.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/raylib.h b/src/raylib.h
index 399b1d4a..95247235 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -470,6 +470,8 @@ typedef struct Wave {
// Sound source type
typedef struct Sound {
+ void* audioBuffer; // A pointer to internal data used by the audio system.
+
unsigned int source; // OpenAL audio source id
unsigned int buffer; // OpenAL audio buffer id
int format; // OpenAL audio format specifier
@@ -486,6 +488,8 @@ typedef struct AudioStream {
unsigned int sampleSize; // Bit depth (bits per sample): 8, 16, 32 (24 not supported)
unsigned int channels; // Number of channels (1-mono, 2-stereo)
+ void* audioBuffer; // A pointer to internal data used by the audio system.
+
int format; // OpenAL audio format specifier
unsigned int source; // OpenAL audio source id
unsigned int buffers[2]; // OpenAL audio buffers (double buffering)
@@ -1126,7 +1130,7 @@ RLAPI void ResumeMusicStream(Music music); // Resume
RLAPI bool IsMusicPlaying(Music music); // Check if music is playing
RLAPI void SetMusicVolume(Music music, float volume); // Set volume for music (1.0 is max level)
RLAPI void SetMusicPitch(Music music, float pitch); // Set pitch for a music (1.0 is base level)
-RLAPI void SetMusicLoopCount(Music music, float count); // Set music loop count (loop repeats)
+RLAPI void SetMusicLoopCount(Music music, int count); // Set music loop count (loop repeats)
RLAPI float GetMusicTimeLength(Music music); // Get music time length (in seconds)
RLAPI float GetMusicTimePlayed(Music music); // Get current music time played (in seconds)
@@ -1139,7 +1143,10 @@ RLAPI bool IsAudioBufferProcessed(AudioStream stream); // Check i
RLAPI void PlayAudioStream(AudioStream stream); // Play audio stream
RLAPI void PauseAudioStream(AudioStream stream); // Pause audio stream
RLAPI void ResumeAudioStream(AudioStream stream); // Resume audio stream
+RLAPI bool IsAudioStreamPlaying(AudioStream stream); // Check if audio stream is playing
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)
#ifdef __cplusplus
}