Mercurial > audlegacy
annotate audacious/playback.c @ 2263:052ce3b52d04 trunk
[svn] - given some decent namespacing to playlist menus (part 2, the end)
author | giacomo |
---|---|
date | Thu, 04 Jan 2007 05:45:38 -0800 |
parents | 329fb2453c87 |
children | 64a9db251832 |
rev | line source |
---|---|
2253 | 1 /* Audacious - Cross-platform multimedia player |
2 * Copyright (C) 2005-2007 Audacious development team | |
3 * | |
4 * Based on BMP: | |
283 | 5 * Copyright (C) 2003-2004 BMP development team. |
6 * | |
7 * Based on XMMS: | |
8 * Copyright (C) 1998-2003 XMMS development team. | |
9 * | |
10 * This program is free software; you can redistribute it and/or modify | |
1460 | 11 * it under the terms of the GNU General Public License as published by |
2105
f18a5b617c34
[svn] - move to GPLv2-only. Based on my interpretation of the license, we are
nenolod
parents:
2092
diff
changeset
|
12 * the Free Software Foundation; under version 2 of the License. |
283 | 13 * |
14 * This program is distributed in the hope that it will be useful, | |
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 * GNU General Public License for more details. | |
18 * | |
19 * You should have received a copy of the GNU General Public License | |
20 * along with this program; if not, write to the Free Software | |
1459 | 21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
283 | 22 */ |
23 | |
24 #ifdef HAVE_CONFIG_H | |
25 # include "config.h" | |
26 #endif | |
27 | |
28 #include <glib.h> | |
29 #include <glib/gi18n.h> | |
30 #include <glib/gprintf.h> | |
31 #include <stdlib.h> | |
32 #include <string.h> | |
33 #include <time.h> | |
34 | |
35 #include <unistd.h> | |
36 #include <sys/types.h> | |
37 #include <sys/stat.h> | |
38 #include <dirent.h> | |
39 | |
40 #include "libaudacious/util.h" | |
41 #include "libaudacious/configdb.h" | |
42 | |
43 #include "input.h" | |
44 #include "main.h" | |
2237 | 45 #include "ui_main.h" |
2236 | 46 #include "ui_equalizer.h" |
283 | 47 #include "output.h" |
48 #include "playlist.h" | |
1653 | 49 #include "ui_playlist.h" |
2244 | 50 #include "ui_skinselector.h" |
2073 | 51 #include "libaudacious/urldecode.h" |
283 | 52 #include "util.h" |
53 | |
54 | |
55 #include "playback.h" | |
1653 | 56 |
57 | |
58 /* FIXME: yuck!! this shouldn't be here... */ | |
59 void | |
2228
894f7aa46f83
[svn] - bmp_playback_* -> playback_* -- i knew something smelled rotten here, hmm.
nenolod
parents:
2160
diff
changeset
|
60 playback_set_random_skin(void) |
1653 | 61 { |
62 SkinNode *node; | |
63 guint32 randval; | |
64 | |
65 /* Get a random value to select the skin to use */ | |
66 randval = g_random_int_range(0, g_list_length(skinlist)); | |
67 node = g_list_nth(skinlist, randval)->data; | |
68 bmp_active_skin_load(node->path); | |
69 } | |
283 | 70 |
71 gint | |
2228
894f7aa46f83
[svn] - bmp_playback_* -> playback_* -- i knew something smelled rotten here, hmm.
nenolod
parents:
2160
diff
changeset
|
72 playback_get_time(void) |
283 | 73 { |
2228
894f7aa46f83
[svn] - bmp_playback_* -> playback_* -- i knew something smelled rotten here, hmm.
nenolod
parents:
2160
diff
changeset
|
74 if (!playback_get_playing()) |
283 | 75 return -1; |
76 | |
77 if (!get_current_input_plugin()) | |
78 return -1; | |
79 | |
80 return get_current_input_plugin()->get_time(); | |
81 } | |
82 | |
83 void | |
2228
894f7aa46f83
[svn] - bmp_playback_* -> playback_* -- i knew something smelled rotten here, hmm.
nenolod
parents:
2160
diff
changeset
|
84 playback_initiate(void) |
283 | 85 { |
1913
30d40252862d
[svn] - this should fix #592. somebody please check.
nenolod
parents:
1672
diff
changeset
|
86 PlaylistEntry *entry = NULL; |
2092 | 87 Playlist *playlist = playlist_get_active(); |
2128
a414866b32bc
[svn] - bail after 15 failures to find an acceptable playback candidate
nenolod
parents:
2105
diff
changeset
|
88 int penalty; |
283 | 89 |
2092 | 90 if (playlist_get_length(playlist) == 0) |
283 | 91 return; |
92 | |
2228
894f7aa46f83
[svn] - bmp_playback_* -> playback_* -- i knew something smelled rotten here, hmm.
nenolod
parents:
2160
diff
changeset
|
93 if (playback_get_playing()) |
894f7aa46f83
[svn] - bmp_playback_* -> playback_* -- i knew something smelled rotten here, hmm.
nenolod
parents:
2160
diff
changeset
|
94 playback_stop(); |
283 | 95 |
96 vis_clear_data(mainwin_vis); | |
97 svis_clear_data(mainwin_svis); | |
98 mainwin_disable_seekbar(); | |
99 | |
2092 | 100 entry = playlist_get_entry_to_play(playlist); |
283 | 101 |
2092 | 102 if (entry == NULL) |
283 | 103 return; |
104 | |
1913
30d40252862d
[svn] - this should fix #592. somebody please check.
nenolod
parents:
1672
diff
changeset
|
105 /* |
30d40252862d
[svn] - this should fix #592. somebody please check.
nenolod
parents:
1672
diff
changeset
|
106 * If the playlist entry cannot be played, try to pick another one. |
30d40252862d
[svn] - this should fix #592. somebody please check.
nenolod
parents:
1672
diff
changeset
|
107 * If that does not work, e.g. entry == NULL, then bail. |
30d40252862d
[svn] - this should fix #592. somebody please check.
nenolod
parents:
1672
diff
changeset
|
108 * |
30d40252862d
[svn] - this should fix #592. somebody please check.
nenolod
parents:
1672
diff
changeset
|
109 * - nenolod |
30d40252862d
[svn] - this should fix #592. somebody please check.
nenolod
parents:
1672
diff
changeset
|
110 */ |
2228
894f7aa46f83
[svn] - bmp_playback_* -> playback_* -- i knew something smelled rotten here, hmm.
nenolod
parents:
2160
diff
changeset
|
111 while (entry != NULL && !playback_play_file(entry)) |
1913
30d40252862d
[svn] - this should fix #592. somebody please check.
nenolod
parents:
1672
diff
changeset
|
112 { |
2092 | 113 playlist_next(playlist); |
1913
30d40252862d
[svn] - this should fix #592. somebody please check.
nenolod
parents:
1672
diff
changeset
|
114 |
2092 | 115 entry = playlist_get_entry_to_play(playlist); |
1913
30d40252862d
[svn] - this should fix #592. somebody please check.
nenolod
parents:
1672
diff
changeset
|
116 |
2128
a414866b32bc
[svn] - bail after 15 failures to find an acceptable playback candidate
nenolod
parents:
2105
diff
changeset
|
117 /* XXX ew. workaround for a stupid bug where audacious will keep |
a414866b32bc
[svn] - bail after 15 failures to find an acceptable playback candidate
nenolod
parents:
2105
diff
changeset
|
118 * trying to play a file with no valid decoder. |
a414866b32bc
[svn] - bail after 15 failures to find an acceptable playback candidate
nenolod
parents:
2105
diff
changeset
|
119 */ |
1913
30d40252862d
[svn] - this should fix #592. somebody please check.
nenolod
parents:
1672
diff
changeset
|
120 if (entry == NULL) |
30d40252862d
[svn] - this should fix #592. somebody please check.
nenolod
parents:
1672
diff
changeset
|
121 return; |
2128
a414866b32bc
[svn] - bail after 15 failures to find an acceptable playback candidate
nenolod
parents:
2105
diff
changeset
|
122 |
a414866b32bc
[svn] - bail after 15 failures to find an acceptable playback candidate
nenolod
parents:
2105
diff
changeset
|
123 if (entry->decoder == NULL && |
a414866b32bc
[svn] - bail after 15 failures to find an acceptable playback candidate
nenolod
parents:
2105
diff
changeset
|
124 (entry->decoder = input_check_file(entry->filename, FALSE)) == NULL) |
a414866b32bc
[svn] - bail after 15 failures to find an acceptable playback candidate
nenolod
parents:
2105
diff
changeset
|
125 penalty++; |
a414866b32bc
[svn] - bail after 15 failures to find an acceptable playback candidate
nenolod
parents:
2105
diff
changeset
|
126 |
a414866b32bc
[svn] - bail after 15 failures to find an acceptable playback candidate
nenolod
parents:
2105
diff
changeset
|
127 /* if we hit 15 entries in a row with no valid decoder, just |
a414866b32bc
[svn] - bail after 15 failures to find an acceptable playback candidate
nenolod
parents:
2105
diff
changeset
|
128 * bail due to confusion |
a414866b32bc
[svn] - bail after 15 failures to find an acceptable playback candidate
nenolod
parents:
2105
diff
changeset
|
129 */ |
a414866b32bc
[svn] - bail after 15 failures to find an acceptable playback candidate
nenolod
parents:
2105
diff
changeset
|
130 if (penalty > 15) |
a414866b32bc
[svn] - bail after 15 failures to find an acceptable playback candidate
nenolod
parents:
2105
diff
changeset
|
131 return; |
1913
30d40252862d
[svn] - this should fix #592. somebody please check.
nenolod
parents:
1672
diff
changeset
|
132 } |
283 | 133 |
2228
894f7aa46f83
[svn] - bmp_playback_* -> playback_* -- i knew something smelled rotten here, hmm.
nenolod
parents:
2160
diff
changeset
|
134 if (playback_get_time() != -1) { |
356
99928e1275a1
[svn] This commit reduces the amount of times we probe a source down to ONE
nenolod
parents:
283
diff
changeset
|
135 equalizerwin_load_auto_preset(entry->filename); |
283 | 136 input_set_eq(cfg.equalizer_active, cfg.equalizer_preamp, |
137 cfg.equalizer_bands); | |
138 output_set_eq(cfg.equalizer_active, cfg.equalizer_preamp, | |
139 cfg.equalizer_bands); | |
140 } | |
141 | |
2092 | 142 playlist_check_pos_current(playlist); |
283 | 143 mainwin_set_info_text(); |
144 } | |
145 | |
146 void | |
2228
894f7aa46f83
[svn] - bmp_playback_* -> playback_* -- i knew something smelled rotten here, hmm.
nenolod
parents:
2160
diff
changeset
|
147 playback_pause(void) |
283 | 148 { |
2228
894f7aa46f83
[svn] - bmp_playback_* -> playback_* -- i knew something smelled rotten here, hmm.
nenolod
parents:
2160
diff
changeset
|
149 if (!playback_get_playing()) |
283 | 150 return; |
151 | |
152 if (!get_current_input_plugin()) | |
153 return; | |
154 | |
155 ip_data.paused = !ip_data.paused; | |
156 | |
1672
600efc52c645
[svn] - be careful about referencing a NULL widget (e.g. headless/serveronly mode crashes on streams, bug #562)
nenolod
parents:
1653
diff
changeset
|
157 if (get_current_input_plugin()->pause) |
600efc52c645
[svn] - be careful about referencing a NULL widget (e.g. headless/serveronly mode crashes on streams, bug #562)
nenolod
parents:
1653
diff
changeset
|
158 get_current_input_plugin()->pause(ip_data.paused); |
600efc52c645
[svn] - be careful about referencing a NULL widget (e.g. headless/serveronly mode crashes on streams, bug #562)
nenolod
parents:
1653
diff
changeset
|
159 |
600efc52c645
[svn] - be careful about referencing a NULL widget (e.g. headless/serveronly mode crashes on streams, bug #562)
nenolod
parents:
1653
diff
changeset
|
160 g_return_if_fail(mainwin_playstatus != NULL); |
600efc52c645
[svn] - be careful about referencing a NULL widget (e.g. headless/serveronly mode crashes on streams, bug #562)
nenolod
parents:
1653
diff
changeset
|
161 |
283 | 162 if (ip_data.paused) |
163 playstatus_set_status(mainwin_playstatus, STATUS_PAUSE); | |
164 else | |
165 playstatus_set_status(mainwin_playstatus, STATUS_PLAY); | |
166 } | |
167 | |
168 void | |
2228
894f7aa46f83
[svn] - bmp_playback_* -> playback_* -- i knew something smelled rotten here, hmm.
nenolod
parents:
2160
diff
changeset
|
169 playback_stop(void) |
283 | 170 { |
171 if (ip_data.playing && get_current_input_plugin()) { | |
172 | |
2228
894f7aa46f83
[svn] - bmp_playback_* -> playback_* -- i knew something smelled rotten here, hmm.
nenolod
parents:
2160
diff
changeset
|
173 if (playback_get_paused()) { |
2160
fe6e7b9b4aac
[svn] - suppress noise on transition from pause to stop.
yaz
parents:
2155
diff
changeset
|
174 output_flush(get_written_time()); /* to avoid noise */ |
2228
894f7aa46f83
[svn] - bmp_playback_* -> playback_* -- i knew something smelled rotten here, hmm.
nenolod
parents:
2160
diff
changeset
|
175 playback_pause(); |
2160
fe6e7b9b4aac
[svn] - suppress noise on transition from pause to stop.
yaz
parents:
2155
diff
changeset
|
176 } |
283 | 177 |
2155
840263ee3a5c
[svn] - fix the logic of bmp_playback_stop(). now JTF works well even if the playing is paused.
yaz
parents:
2128
diff
changeset
|
178 ip_data.playing = FALSE; |
840263ee3a5c
[svn] - fix the logic of bmp_playback_stop(). now JTF works well even if the playing is paused.
yaz
parents:
2128
diff
changeset
|
179 |
283 | 180 if (get_current_input_plugin()->stop) |
181 get_current_input_plugin()->stop(); | |
182 | |
183 free_vis_data(); | |
184 ip_data.paused = FALSE; | |
185 | |
186 if (input_info_text) { | |
187 g_free(input_info_text); | |
188 input_info_text = NULL; | |
189 mainwin_set_info_text(); | |
190 } | |
191 } | |
192 | |
1273
3b990c26fc46
[svn] - Support for the buffer indicator in playpaus.png that was apparently
nhjm449
parents:
890
diff
changeset
|
193 ip_data.buffering = FALSE; |
1672
600efc52c645
[svn] - be careful about referencing a NULL widget (e.g. headless/serveronly mode crashes on streams, bug #562)
nenolod
parents:
1653
diff
changeset
|
194 ip_data.playing = FALSE; |
2160
fe6e7b9b4aac
[svn] - suppress noise on transition from pause to stop.
yaz
parents:
2155
diff
changeset
|
195 |
1672
600efc52c645
[svn] - be careful about referencing a NULL widget (e.g. headless/serveronly mode crashes on streams, bug #562)
nenolod
parents:
1653
diff
changeset
|
196 g_return_if_fail(mainwin_playstatus != NULL); |
1653 | 197 playstatus_set_status_buffering(mainwin_playstatus, FALSE); |
283 | 198 } |
199 | |
200 void | |
2228
894f7aa46f83
[svn] - bmp_playback_* -> playback_* -- i knew something smelled rotten here, hmm.
nenolod
parents:
2160
diff
changeset
|
201 playback_stop_reentrant(void) |
283 | 202 { |
203 if (ip_data.playing && get_current_input_plugin()) { | |
204 | |
2228
894f7aa46f83
[svn] - bmp_playback_* -> playback_* -- i knew something smelled rotten here, hmm.
nenolod
parents:
2160
diff
changeset
|
205 if (playback_get_paused()) |
894f7aa46f83
[svn] - bmp_playback_* -> playback_* -- i knew something smelled rotten here, hmm.
nenolod
parents:
2160
diff
changeset
|
206 playback_pause(); |
283 | 207 |
2160
fe6e7b9b4aac
[svn] - suppress noise on transition from pause to stop.
yaz
parents:
2155
diff
changeset
|
208 ip_data.playing = FALSE; |
fe6e7b9b4aac
[svn] - suppress noise on transition from pause to stop.
yaz
parents:
2155
diff
changeset
|
209 |
283 | 210 free_vis_data(); |
211 ip_data.paused = FALSE; | |
212 | |
213 if (input_info_text) { | |
214 g_free(input_info_text); | |
215 input_info_text = NULL; | |
216 mainwin_set_info_text(); | |
217 } | |
218 } | |
219 | |
1273
3b990c26fc46
[svn] - Support for the buffer indicator in playpaus.png that was apparently
nhjm449
parents:
890
diff
changeset
|
220 ip_data.buffering = FALSE; |
283 | 221 ip_data.playing = FALSE; |
222 } | |
223 | |
224 static void | |
225 run_no_output_plugin_dialog(void) | |
226 { | |
227 const gchar *markup = | |
228 N_("<b><big>No output plugin selected.</big></b>\n" | |
229 "You have not selected an output plugin."); | |
230 | |
231 GtkWidget *dialog = | |
1653 | 232 gtk_message_dialog_new_with_markup(GTK_WINDOW(mainwin), |
283 | 233 GTK_DIALOG_DESTROY_WITH_PARENT, |
234 GTK_MESSAGE_ERROR, | |
235 GTK_BUTTONS_OK, | |
236 _(markup)); | |
237 gtk_dialog_run(GTK_DIALOG(dialog)); | |
238 gtk_widget_destroy(dialog); | |
239 } | |
240 | |
241 gboolean | |
2228
894f7aa46f83
[svn] - bmp_playback_* -> playback_* -- i knew something smelled rotten here, hmm.
nenolod
parents:
2160
diff
changeset
|
242 playback_play_file(PlaylistEntry *entry) |
283 | 243 { |
356
99928e1275a1
[svn] This commit reduces the amount of times we probe a source down to ONE
nenolod
parents:
283
diff
changeset
|
244 g_return_val_if_fail(entry != NULL, FALSE); |
283 | 245 |
246 if (!get_current_output_plugin()) { | |
247 run_no_output_plugin_dialog(); | |
248 mainwin_stop_pushed(); | |
249 return FALSE; | |
250 } | |
251 | |
252 if (cfg.random_skin_on_play) | |
2228
894f7aa46f83
[svn] - bmp_playback_* -> playback_* -- i knew something smelled rotten here, hmm.
nenolod
parents:
2160
diff
changeset
|
253 playback_set_random_skin(); |
283 | 254 |
677
f52f596dc0d8
[svn] - Working exception handling at no extra charge. Closes bugs #408, #409.
nenolod
parents:
561
diff
changeset
|
255 /* |
f52f596dc0d8
[svn] - Working exception handling at no extra charge. Closes bugs #408, #409.
nenolod
parents:
561
diff
changeset
|
256 * This is slightly uglier than the original version, but should |
f52f596dc0d8
[svn] - Working exception handling at no extra charge. Closes bugs #408, #409.
nenolod
parents:
561
diff
changeset
|
257 * fix the "crash" issues as seen in 0.2 when dealing with this situation. |
f52f596dc0d8
[svn] - Working exception handling at no extra charge. Closes bugs #408, #409.
nenolod
parents:
561
diff
changeset
|
258 * - nenolod |
f52f596dc0d8
[svn] - Working exception handling at no extra charge. Closes bugs #408, #409.
nenolod
parents:
561
diff
changeset
|
259 */ |
f52f596dc0d8
[svn] - Working exception handling at no extra charge. Closes bugs #408, #409.
nenolod
parents:
561
diff
changeset
|
260 if (!entry->decoder && |
678 | 261 (((entry->decoder = input_check_file(entry->filename, FALSE)) == NULL) || |
262 !input_is_enabled(entry->decoder->filename))) | |
356
99928e1275a1
[svn] This commit reduces the amount of times we probe a source down to ONE
nenolod
parents:
283
diff
changeset
|
263 { |
99928e1275a1
[svn] This commit reduces the amount of times we probe a source down to ONE
nenolod
parents:
283
diff
changeset
|
264 input_file_not_playable(entry->filename); |
283 | 265 |
356
99928e1275a1
[svn] This commit reduces the amount of times we probe a source down to ONE
nenolod
parents:
283
diff
changeset
|
266 set_current_input_plugin(NULL); |
99928e1275a1
[svn] This commit reduces the amount of times we probe a source down to ONE
nenolod
parents:
283
diff
changeset
|
267 mainwin_set_info_text(); |
283 | 268 |
356
99928e1275a1
[svn] This commit reduces the amount of times we probe a source down to ONE
nenolod
parents:
283
diff
changeset
|
269 return FALSE; |
283 | 270 } |
271 | |
356
99928e1275a1
[svn] This commit reduces the amount of times we probe a source down to ONE
nenolod
parents:
283
diff
changeset
|
272 set_current_input_plugin(entry->decoder); |
890
ed26947bbf57
[svn] Gapless support. This comes with a few caveats, that I will mention here:
nenolod
parents:
678
diff
changeset
|
273 entry->decoder->output = &psuedo_output_plugin; |
356
99928e1275a1
[svn] This commit reduces the amount of times we probe a source down to ONE
nenolod
parents:
283
diff
changeset
|
274 entry->decoder->play_file(entry->filename); |
283 | 275 |
356
99928e1275a1
[svn] This commit reduces the amount of times we probe a source down to ONE
nenolod
parents:
283
diff
changeset
|
276 ip_data.playing = TRUE; |
283 | 277 |
356
99928e1275a1
[svn] This commit reduces the amount of times we probe a source down to ONE
nenolod
parents:
283
diff
changeset
|
278 return TRUE; |
283 | 279 } |
280 | |
281 gboolean | |
2228
894f7aa46f83
[svn] - bmp_playback_* -> playback_* -- i knew something smelled rotten here, hmm.
nenolod
parents:
2160
diff
changeset
|
282 playback_get_playing(void) |
283 | 283 { |
284 return ip_data.playing; | |
285 } | |
286 | |
287 gboolean | |
2228
894f7aa46f83
[svn] - bmp_playback_* -> playback_* -- i knew something smelled rotten here, hmm.
nenolod
parents:
2160
diff
changeset
|
288 playback_get_paused(void) |
283 | 289 { |
290 return ip_data.paused; | |
291 } | |
292 | |
293 void | |
2228
894f7aa46f83
[svn] - bmp_playback_* -> playback_* -- i knew something smelled rotten here, hmm.
nenolod
parents:
2160
diff
changeset
|
294 playback_seek(gint time) |
283 | 295 { |
296 gboolean restore_pause = FALSE; | |
297 gint l=0, r=0; | |
298 | |
299 if (!ip_data.playing) | |
300 return; | |
301 | |
302 if (!get_current_input_plugin()) | |
303 return; | |
304 | |
305 /* FIXME WORKAROUND...that should work with all plugins | |
306 * mute the volume, start playback again, do the seek, then pause again | |
677
f52f596dc0d8
[svn] - Working exception handling at no extra charge. Closes bugs #408, #409.
nenolod
parents:
561
diff
changeset
|
307 * -Patrick Sudowe |
f52f596dc0d8
[svn] - Working exception handling at no extra charge. Closes bugs #408, #409.
nenolod
parents:
561
diff
changeset
|
308 */ |
283 | 309 if(ip_data.paused) |
310 { | |
311 restore_pause = TRUE; | |
312 output_get_volume(&l, &r); | |
313 output_set_volume(0,0); | |
2228
894f7aa46f83
[svn] - bmp_playback_* -> playback_* -- i knew something smelled rotten here, hmm.
nenolod
parents:
2160
diff
changeset
|
314 playback_pause(); |
283 | 315 } |
316 | |
317 free_vis_data(); | |
318 get_current_input_plugin()->seek(time); | |
319 | |
320 if(restore_pause) | |
321 { | |
2228
894f7aa46f83
[svn] - bmp_playback_* -> playback_* -- i knew something smelled rotten here, hmm.
nenolod
parents:
2160
diff
changeset
|
322 playback_pause(); |
283 | 323 output_set_volume(l, r); |
324 } | |
325 } | |
326 | |
327 void | |
2228
894f7aa46f83
[svn] - bmp_playback_* -> playback_* -- i knew something smelled rotten here, hmm.
nenolod
parents:
2160
diff
changeset
|
328 playback_seek_relative(gint offset) |
283 | 329 { |
2228
894f7aa46f83
[svn] - bmp_playback_* -> playback_* -- i knew something smelled rotten here, hmm.
nenolod
parents:
2160
diff
changeset
|
330 gint time = CLAMP(playback_get_time() / 1000 + offset, |
2092 | 331 0, playlist_get_current_length(playlist_get_active()) / 1000 - 1); |
2228
894f7aa46f83
[svn] - bmp_playback_* -> playback_* -- i knew something smelled rotten here, hmm.
nenolod
parents:
2160
diff
changeset
|
332 playback_seek(time); |
283 | 333 } |