music.h
changeset 797 b4b6adff699a
parent 788 db19b544ea54
child 801 46acd70caa6a
     1.1 --- a/music.h	Fri Oct 20 21:55:03 2017 -0700
     1.2 +++ b/music.h	Fri Oct 20 23:39:04 2017 -0700
     1.3 @@ -70,8 +70,8 @@
     1.4      /* Set the volume */
     1.5      void (*SetVolume)(void *music, int volume);
     1.6  
     1.7 -    /* Start playing music */
     1.8 -    int (*Play)(void *music);
     1.9 +    /* Start playing music from the beginning with an optional loop count */
    1.10 +    int (*Play)(void *music, int play_count);
    1.11  
    1.12      /* Returns SDL_TRUE if music is still playing */
    1.13      SDL_bool (*IsPlaying)(void *music);
    1.14 @@ -109,14 +109,13 @@
    1.15  extern Mix_MusicInterface *get_music_interface(int index);
    1.16  extern SDL_bool has_music(Mix_MusicType type);
    1.17  extern int open_music(const SDL_AudioSpec *spec);
    1.18 +extern int music_pcm_getaudio(void *context, void *data, int bytes, int volume,
    1.19 +                              int (*GetSome)(void *context, void *data, int bytes, SDL_bool *done));
    1.20  extern void music_mixer(void *udata, Uint8 *stream, int len);
    1.21  extern void close_music(void);
    1.22  extern void unload_music(void);
    1.23  
    1.24  extern char *music_cmd;
    1.25 -extern int volatile music_active;
    1.26 -extern int music_loops;
    1.27 -extern int music_volume;
    1.28  extern SDL_AudioSpec music_spec;
    1.29  extern char *soundfont_paths;
    1.30