Documentation de la bibliothèque MLV-0.5

MLV_playlist.h

00001 /*
00002  *   This file is part of the MLV Library.
00003  *
00004  *   Copyright (C) 2010 Adrien Boussicault, Marc Zipstein
00005  *
00006  *
00007  *    This Library is free software: you can redistribute it and/or modify
00008  *    it under the terms of the GNU General Public License as published by
00009  *    the Free Software Foundation, either version 3 of the License, or
00010  *    (at your option) any later version.
00011  *
00012  *    This Library is distributed in the hope that it will be useful,
00013  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  *    GNU General Public License for more details.
00016  *
00017  *    You should have received a copy of the GNU General Public License
00018  *    along with this Library.  If not, see <http://www.gnu.org/licenses/>.
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