Forum Moderators: bakedjake
I use mpg123 to play Shoutcast music from the command line, with something like this:
mpg123 -C -b 4096 -@ "http://www.shoutcast.com/sbin/shoutcast-playlist.pls?rn=526&file=filename.pls"# [Pop Top 40 Dance Rock]
When I stop the program with CTRL-C, I'm unable to run it again, I get this error:
[root@ran ruben]# mpg123 -C -b 4096 -@ "http://www.shoutcast.com/sbin/shoutcast-playlist.pls?rn=526&file=filename.pls"# [Pop Top 40 Dance Rock] &
[root@ran ruben]# [oss.c:182] error: Can't open default sound device!
[audio.c:561] error: failed to open audio device
[audio.c:179] error: Unable to find a working output module in this list: oss
[audio.c:430] error: Failed to open audio output module.
[audio.c:474] error: Buffer process didn't initialize!
[mpg123.c:757] error: Failed to initialize output, goodbye.
How can I reinit the audio device?
What is the correct way to stop playback?
Many thanks.