WARNING: Replaced Music pointer by struct

Now, multiple music parameters are exposed to the user!
This commit is contained in:
Ray 2019-07-26 10:26:39 +02:00
parent 8e870f0eda
commit 251f90cd31
3 changed files with 108 additions and 126 deletions

View file

@ -433,7 +433,7 @@ typedef struct Sound {
// Music stream type (audio file streaming from memory)
// NOTE: Anything longer than ~10 seconds should be streamed
typedef struct MusicStream {
typedef struct Music {
int ctxType; // Type of music context (audio filetype)
void *ctxData; // Audio context data, depends on type
@ -442,7 +442,7 @@ typedef struct MusicStream {
unsigned int loopCount; // Loops count (times music will play), 0 means infinite loop
AudioStream stream; // Audio stream
} MusicStream, *Music;
} Music;
// Head-Mounted-Display device parameters
typedef struct VrDeviceInfo {