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