00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __MLV__MLV_PLAYLIST_H__
00022 #define __MLV__MLV_PLAYLIST_H__
00023
00024
00025 #include "MLV_audio.h"
00026
00027 #ifdef __cplusplus
00028 extern "C" {
00029 #endif
00030
00031 typedef struct _MLV_Playlist MLV_Playlist;
00032
00033 void MLV_init_playlists();
00034 void MLV_close_playlists();
00035
00036 MLV_Playlist* MLV_create_playlist( int loop );
00037 void MLV_close_playlist( MLV_Playlist* playlist );
00038
00039 void MLV_playlist_add( MLV_Playlist* playlist, const char* file_music );
00040 void MLV_playlist_add_sheet_music( MLV_Playlist* playlist, MLV_Music* );
00041 void MLV_playlist_remove( MLV_Playlist* playlist, int index );
00042 void MLV_playlist_clear( MLV_Playlist* playlist );
00043
00044 void MLV_playlist_volume( MLV_Playlist* playlist, double volume );
00045 void MLV_playlist_play( MLV_Playlist* playlist );
00046 void MLV_playlist_pause( MLV_Playlist* playlist );
00047 void MLV_playlist_stop( MLV_Playlist* playlist );
00048 void MLV_playlist_next( MLV_Playlist* playlist );
00049 void MLV_playlist_previous( MLV_Playlist* playlist );
00050 void MLV_playlist_first( MLV_Playlist* playlist );
00051 void MLV_playlist_last( MLV_Playlist* playlist );
00052 void MLV_playlist_index( MLV_Playlist* playlist, int index);
00053
00054 #ifdef __cplusplus
00055 }
00056 #endif
00057
00058 #endif