Documentation de la bibliothèque MLV-3.1.0

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
28extern "C" {
29#endif
30
31typedef struct _MLV_Playlist MLV_Playlist;
32
33void MLV_init_playlists();
34void MLV_close_playlists();
35
36MLV_Playlist* MLV_create_playlist( int loop );
37void MLV_close_playlist( MLV_Playlist* playlist );
38
39void MLV_playlist_add( MLV_Playlist* playlist, const char* file_music );
40void MLV_playlist_add_sheet_music( MLV_Playlist* playlist, MLV_Music* );
41void MLV_playlist_remove( MLV_Playlist* playlist, int index );
42void MLV_playlist_clear( MLV_Playlist* playlist );
43
44void MLV_playlist_volume( MLV_Playlist* playlist, double volume );
45void MLV_playlist_play( MLV_Playlist* playlist );
46void MLV_playlist_pause( MLV_Playlist* playlist );
47void MLV_playlist_stop( MLV_Playlist* playlist );
48void MLV_playlist_next( MLV_Playlist* playlist );
49void MLV_playlist_previous( MLV_Playlist* playlist );
50void MLV_playlist_first( MLV_Playlist* playlist );
51void MLV_playlist_last( MLV_Playlist* playlist );
52void MLV_playlist_index( MLV_Playlist* playlist, int index);
53
54#ifdef __cplusplus
55}
56#endif
57
58#endif
Ce fichier définit les prototypes des fonctions permettant de faire jouer de la musique et des échant...
struct _MLV_Music MLV_Music
Ce type code un morceau de musique.
Definition MLV_audio.h:48