File: mp3_control.h

package info (click to toggle)
gnomp3 0.1.7-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 488 kB
  • ctags: 342
  • sloc: ansic: 3,285; makefile: 74; awk: 33
file content (39 lines) | stat: -rw-r--r-- 1,245 bytes parent folder | download | duplicates (3)
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
#ifndef MP3_CONTROL_H
#define MP3_CONTROL_H

#include "gnomp3.h"
#include "mp3list.h"

struct mp3_control{
    MP3 *mp3;
    GList *next_playlist_song; /* may not be equal to mp3->next if the
				* currently playing mp3 is not from the
				* song list. */
    char *time;
    double progress; /* the amount of song played [ from 0.0 to 1.0 ] */
    int playing; /* flag to indicate of the next song should be loaded when the
		  * current one finishes */
    int paused;
    int bitrate, freq;
    int update_seek; /* flag to indicate if the seek/progress bar of the
		      * mp3player should be updated. It is not to be up
		      * when the user holds down a mouse button on it */
};

extern struct mp3_control mp3_control_state;

void mp3_control_play(MP3 *mp3, float pos);
void mp3_control_update_display();
void mp3_control_play_next();
void mp3_control_play_prev();
void mp3_control_stop();
void mp3_control_play_nth(int num);
void mp3_control_play_selected();
void mp3_control_play_selected_song(GtkWidget *w, gpointer data);
void mp3_control_play_cb();
void mp3_control_next_cb();
void mp3_control_seek_press(GtkWidget *w, gpointer data);
void mp3_control_seek_release(GtkWidget *w, gpointer data);
void mp3_control_pause_cb();

#endif