# Documentation de la bibliothèque MLV-0.6.705

- Presentation
- Téléchargement
- Installation
- Compilation
- Exemples
- API
- Liste des fonctions
- bogues
- contacts

# MLV_playlist.h

    00001 /*
    00002  *   This file is part of the MLV Library.
    00003  *
    00004  *   Copyright (C) 2010,2011,2012 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__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