-
Notifications
You must be signed in to change notification settings - Fork 3
/
play_list.h
62 lines (43 loc) · 1.1 KB
/
play_list.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
* =====================================================================================
*
* Filename: play_list.h
*
* Description:
*
* Version: 1.0
* Created: 2014/07/24 12时24分59秒
* Revision: none
* Compiler: gcc
*
* Author: YangBing
* Organization:
*
* =====================================================================================
*/
#ifndef PLAY_LIST_H
#define PLAY_LIST_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#include "arraylist.h"
struct _music_file
{
char *filename;
char *path;
};
typedef struct _music_file music_file;
int init_play_list();
int load_library_music(char *library);
void clear_play_list();
int add_music_to_play_list(char *filename, char *path);
music_file* get_first_music();
void print_library_music(int *cursor, int page_size, int columns, int rows);
void free_play_list();
void play_music_file(music_file *file);
void add_play_volume();
void decre_play_volume();
music_file* get_index_music_path(int index);
music_file* get_current_music();
#endif