mirror of
				https://github.com/raysan5/raylib.git
				synced 2025-11-04 01:34:19 +00:00 
			
		
		
		
	Corrected issue with Music type
This commit is contained in:
		@@ -101,7 +101,7 @@
 | 
				
			|||||||
typedef enum { MUSIC_AUDIO_OGG = 0, MUSIC_MODULE_XM, MUSIC_MODULE_MOD } MusicContextType;
 | 
					typedef enum { MUSIC_AUDIO_OGG = 0, MUSIC_MODULE_XM, MUSIC_MODULE_MOD } MusicContextType;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Music type (file streaming from memory)
 | 
					// Music type (file streaming from memory)
 | 
				
			||||||
typedef struct Music {
 | 
					typedef struct MusicData {
 | 
				
			||||||
    MusicContextType ctxType;           // Type of music context (OGG, XM, MOD)
 | 
					    MusicContextType ctxType;           // Type of music context (OGG, XM, MOD)
 | 
				
			||||||
    stb_vorbis *ctxOgg;                 // OGG audio context
 | 
					    stb_vorbis *ctxOgg;                 // OGG audio context
 | 
				
			||||||
    jar_xm_context_t *ctxXm;            // XM chiptune context
 | 
					    jar_xm_context_t *ctxXm;            // XM chiptune context
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -514,7 +514,7 @@ typedef struct Wave {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
// Music type (file streaming from memory)
 | 
					// Music type (file streaming from memory)
 | 
				
			||||||
// NOTE: Anything longer than ~10 seconds should be streamed
 | 
					// NOTE: Anything longer than ~10 seconds should be streamed
 | 
				
			||||||
typedef struct Music *Music;
 | 
					typedef struct MusicData *Music;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Audio stream type
 | 
					// Audio stream type
 | 
				
			||||||
// NOTE: Useful to create custom audio streams not bound to a specific file
 | 
					// NOTE: Useful to create custom audio streams not bound to a specific file
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user