Ver código fonte

Corrected issue with Music type

pull/172/head
raysan5 8 anos atrás
pai
commit
8c0bd30fcb
2 arquivos alterados com 2 adições e 2 exclusões
  1. +1
    -1
      src/audio.c
  2. +1
    -1
      src/raylib.h

+ 1
- 1
src/audio.c Ver arquivo

@ -101,7 +101,7 @@
typedef enum { MUSIC_AUDIO_OGG = 0, MUSIC_MODULE_XM, MUSIC_MODULE_MOD } MusicContextType;
// Music type (file streaming from memory)
typedef struct Music {
typedef struct MusicData {
MusicContextType ctxType; // Type of music context (OGG, XM, MOD)
stb_vorbis *ctxOgg; // OGG audio context
jar_xm_context_t *ctxXm; // XM chiptune context

+ 1
- 1
src/raylib.h Ver arquivo

@ -514,7 +514,7 @@ typedef struct Wave {
// Music type (file streaming from memory)
// NOTE: Anything longer than ~10 seconds should be streamed
typedef struct Music *Music;
typedef struct MusicData *Music;
// Audio stream type
// NOTE: Useful to create custom audio streams not bound to a specific file

Carregando…
Cancelar
Salvar