# Documentación de la biblioteca MLV-1.2.1

- Presentación
- Descargar
- Instalación
- Compilatción
- Ejemplos
- API
- Lista de las subrutinas
- bugs
- FAQ
- Contactos

MLV_playlist.h
1 /*
2 * This file is part of the MLV Library.
3 *
4 * Copyright (C) 2010,2011,2012 Adrien Boussicault, Marc Zipstein
5 *
6 *
7 * This Library is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This Library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this Library. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21 #ifndef __MLV__MLV_PLAYLIST_H__
22 #define __MLV__MLV_PLAYLIST_H__
23
24
25 #include "MLV_audio.h"
26
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30
31 typedef struct _MLV_Playlist MLV_Playlist;
32
33 void MLV_init_playlists();
34 void MLV_close_playlists();
35
36 MLV_Playlist* MLV_create_playlist( int loop );
37 void MLV_close_playlist( MLV_Playlist* playlist );
38
39 void MLV_playlist_add( MLV_Playlist* playlist, const char* file_music );
40 void MLV_playlist_add_sheet_music( MLV_Playlist* playlist, MLV_Music* );
41 void MLV_playlist_remove( MLV_Playlist* playlist, int index );
42 void MLV_playlist_clear( MLV_Playlist* playlist );
43
44 void MLV_playlist_volume( MLV_Playlist* playlist, double volume );
45 void MLV_playlist_play( MLV_Playlist* playlist );
46 void MLV_playlist_pause( MLV_Playlist* playlist );
47 void MLV_playlist_stop( MLV_Playlist* playlist );
48 void MLV_playlist_next( MLV_Playlist* playlist );
49 void MLV_playlist_previous( MLV_Playlist* playlist );
50 void MLV_playlist_first( MLV_Playlist* playlist );
51 void MLV_playlist_last( MLV_Playlist* playlist );
52 void MLV_playlist_index( MLV_Playlist* playlist, int index);
53
54 #ifdef __cplusplus
55 }
56 #endif
57
58 #endif