version 1.11, 2008/12/28 15:48:32 |
version 1.12, 2009/04/10 18:19:41 |
|
|
int |
int |
play_next_track(struct track_info *info) |
play_next_track(struct track_info *info) |
{ |
{ |
char *dev; |
|
|
|
if (!info->isaudio) |
if (!info->isaudio) |
return (NXTRACK_SKIP); |
return (NXTRACK_SKIP); |
|
|
if (info->hdl != NULL) |
if (info->hdl != NULL) |
return (NXTRACK_OK); |
return (NXTRACK_OK); |
|
|
dev = getenv("AUDIODEVICE"); |
info->hdl = sio_open(NULL, SIO_PLAY, 0); |
|
|
info->hdl = sio_open(dev, SIO_PLAY, 0); |
|
if (info->hdl == NULL) { |
if (info->hdl == NULL) { |
warnx("could not open audio backend"); |
warnx("could not open audio backend"); |
goto bad; |
goto bad; |