music_nativemidi.c
changeset 784 5cb894f15335
parent 777 92882ef2ab81
child 797 b4b6adff699a
equal deleted inserted replaced
783:2b559c85819d 784:5cb894f15335
    51 static SDL_bool NATIVEMIDI_IsPlaying(void *context)
    51 static SDL_bool NATIVEMIDI_IsPlaying(void *context)
    52 {
    52 {
    53     return native_midi_active() ? SDL_TRUE : SDL_FALSE;
    53     return native_midi_active() ? SDL_TRUE : SDL_FALSE;
    54 }
    54 }
    55 
    55 
       
    56 static void NATIVEMIDI_Pause(void *context)
       
    57 {
       
    58     native_midi_pause();
       
    59 }
       
    60 
       
    61 static void NATIVEMIDI_Resume(void *context)
       
    62 {
       
    63     native_midi_resume();
       
    64 }
       
    65 
    56 static void NATIVEMIDI_Stop(void *context)
    66 static void NATIVEMIDI_Stop(void *context)
    57 {
    67 {
    58     native_midi_stop();
    68     native_midi_stop();
    59 }
    69 }
    60 
    70 
    79     NATIVEMIDI_SetVolume,
    89     NATIVEMIDI_SetVolume,
    80     NATIVEMIDI_Play,
    90     NATIVEMIDI_Play,
    81     NATIVEMIDI_IsPlaying,
    91     NATIVEMIDI_IsPlaying,
    82     NULL,   /* GetAudio */
    92     NULL,   /* GetAudio */
    83     NULL,   /* Seek */
    93     NULL,   /* Seek */
    84     NULL,   /* Pause */
    94     NATIVEMIDI_Pause,
    85     NULL,   /* Resume */
    95     NATIVEMIDI_Resume,
    86     NATIVEMIDI_Stop,
    96     NATIVEMIDI_Stop,
    87     NATIVEMIDI_Delete,
    97     NATIVEMIDI_Delete,
    88     NULL,   /* Close */
    98     NULL,   /* Close */
    89     NULL,   /* Unload */
    99     NULL,   /* Unload */
    90 };
   100 };