summaryrefslogtreecommitdiff
path: root/gtkplaylist.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-08-05 23:23:44 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-08-05 23:23:44 +0200
commit337d90098cf48c6e3600f321081492e33cc48229 (patch)
treeef0d26f051f02cfcf1b96a10fffbd92976c52990 /gtkplaylist.c
parent8f749dbc5721172d1e5cf9742955fb429fa0062a (diff)
alsa playback WIP
Diffstat (limited to 'gtkplaylist.c')
-rw-r--r--gtkplaylist.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gtkplaylist.c b/gtkplaylist.c
index ebc802f6..99e94462 100644
--- a/gtkplaylist.c
+++ b/gtkplaylist.c
@@ -14,7 +14,7 @@
#include "interface.h"
#include "support.h"
#include "playlist.h"
-#include "psdl.h"
+#include "playback.h"
#include "codec.h"
#include "common.h"
#include "messagepump.h"
@@ -461,9 +461,9 @@ gtkps_scroll (int newscroll) {
void
gtkps_playsong (void) {
- if (psdl_ispaused ()) {
+ if (p_ispaused ()) {
printf ("unpause\n");
- psdl_unpause ();
+ p_unpause ();
}
else if (playlist_current_ptr) {
printf ("restart\n");
@@ -573,16 +573,16 @@ gtkps_randomsong (void) {
void
gtkps_stopsong (void) {
- psdl_stop ();
+ p_stop ();
}
void
gtkps_pausesong (void) {
- if (psdl_ispaused ()) {
- psdl_unpause ();
+ if (p_ispaused ()) {
+ p_unpause ();
}
else {
- psdl_pause ();
+ p_pause ();
}
}
@@ -620,7 +620,7 @@ gtkps_update_songinfo (void) {
}
char sbtext_new[512] = "-";
int songpos = 0;
- if (psdl_ispaused ()) {
+ if (p_ispaused ()) {
strcpy (sbtext_new, "Paused");
songpos = 0;
}