Mercurial > audlegacy
annotate src/audacious/playback.h @ 4784:68f38592d757
pre-codechange indentation
author | mf0102 <0102@gmx.at> |
---|---|
date | Mon, 29 Sep 2008 20:45:37 +0200 |
parents | 2eee464379dc |
children |
rev | line source |
---|---|
2313 | 1 /* Audacious - Cross-platform multimedia player |
2 * Copyright (C) 2005-2007 Audacious development team | |
3 * | |
4 * Based on BMP: | |
5 * Copyright (C) 2003-2004 BMP development team | |
6 * | |
7 * This program is free software; you can redistribute it and/or modify | |
8 * it under the terms of the GNU General Public License as published by | |
3121
3b6d316f8b09
GPL3 relicensing.
William Pitcock <nenolod@atheme-project.org>
parents:
2443
diff
changeset
|
9 * the Free Software Foundation; under version 3 of the License. |
2313 | 10 * |
11 * This program is distributed in the hope that it will be useful, | |
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 * GNU General Public License for more details. | |
15 * | |
16 * You should have received a copy of the GNU General Public License | |
3121
3b6d316f8b09
GPL3 relicensing.
William Pitcock <nenolod@atheme-project.org>
parents:
2443
diff
changeset
|
17 * along with this program. If not, see <http://www.gnu.org/licenses>. |
3123
f1c756f39e6c
Invoke "Plugins are not derived work" clause provided by GPL3.
William Pitcock <nenolod@atheme-project.org>
parents:
3121
diff
changeset
|
18 * |
f1c756f39e6c
Invoke "Plugins are not derived work" clause provided by GPL3.
William Pitcock <nenolod@atheme-project.org>
parents:
3121
diff
changeset
|
19 * The Audacious team does not consider modular code linking to |
f1c756f39e6c
Invoke "Plugins are not derived work" clause provided by GPL3.
William Pitcock <nenolod@atheme-project.org>
parents:
3121
diff
changeset
|
20 * Audacious or using our public API to be a derived work. |
2313 | 21 */ |
22 | |
4557
2eee464379dc
Clean up header multiple inclusion guards (e.g. #ifndef FOO_H/#define FOO_H)
Matti Hamalainen <ccr@tnsp.org>
parents:
4505
diff
changeset
|
23 #ifndef AUDACIOUS_PLAYBACK_H |
2eee464379dc
Clean up header multiple inclusion guards (e.g. #ifndef FOO_H/#define FOO_H)
Matti Hamalainen <ccr@tnsp.org>
parents:
4505
diff
changeset
|
24 #define AUDACIOUS_PLAYBACK_H |
2313 | 25 |
26 #include <glib.h> | |
27 | |
2443
93686e8815a4
[svn] - Changed playback_set_random_skin() to skin_set_random_skin()
mf0102
parents:
2366
diff
changeset
|
28 #include "playlist.h" |
3710
602002306969
generic playback control API
William Pitcock <nenolod@atheme.org>
parents:
3158
diff
changeset
|
29 #include "plugin.h" |
2313 | 30 |
4505 | 31 typedef struct _PlaybackInfo PlaybackInfo; |
32 | |
33 struct _PlaybackInfo { | |
34 gint bitrate; | |
35 gint frequency; | |
36 gint n_channels; | |
37 }; | |
38 | |
2313 | 39 gint playback_get_time(void); |
3716
9489aae0d872
introduce playback_get_length()
Tomasz Mon <desowin@gmail.com>
parents:
3710
diff
changeset
|
40 gint playback_get_length(void); |
2313 | 41 void playback_initiate(void); |
42 void playback_pause(void); | |
43 void playback_stop(void); | |
44 gboolean playback_play_file(PlaylistEntry *entry); | |
45 gboolean playback_get_playing(void); | |
46 gboolean playback_get_paused(void); | |
47 void playback_seek(gint time); | |
48 void playback_seek_relative(gint offset); | |
3152
c9471f83944c
Add playback_eof(). Plugins should use this instead of playback->eof = 1.
William Pitcock <nenolod@atheme-project.org>
parents:
3123
diff
changeset
|
49 void playback_eof(void); |
3158
92717dcb09f6
Send a message from the monitor thread to the main thread for audio errors, like we do with eof condition.
William Pitcock <nenolod@atheme-project.org>
parents:
3152
diff
changeset
|
50 void playback_error(void); |
3710
602002306969
generic playback control API
William Pitcock <nenolod@atheme.org>
parents:
3158
diff
changeset
|
51 InputPlayback *playback_new(void); |
4109
2d6fd3f630f0
Adds playback_free() function to fix memory leak in playback_stop(). (Bugzilla #42)
Jussi Judin <jjudin+audacious@iki.fi>
parents:
3716
diff
changeset
|
52 void playback_free(InputPlayback *); |
3710
602002306969
generic playback control API
William Pitcock <nenolod@atheme.org>
parents:
3158
diff
changeset
|
53 void playback_run(InputPlayback *); |
4505 | 54 void playback_get_sample_params(gint *bitrate, gint *frequency, gint *n_channels); |
55 void playback_set_sample_params(gint bitrate, gint frequency, gint n_channels); | |
2313 | 56 |
4557
2eee464379dc
Clean up header multiple inclusion guards (e.g. #ifndef FOO_H/#define FOO_H)
Matti Hamalainen <ccr@tnsp.org>
parents:
4505
diff
changeset
|
57 #endif /* AUDACIOUS_PLAYBACK_H */ |