homepage Welcome to WebmasterWorld Guest from 184.73.87.85
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
How to restart audio device
mpg123 restart audio device
rubenbla




msg:3636822
 4:21 pm on Apr 28, 2008 (gmt 0)

Hi:

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.

 

jezra




msg:3638822
 6:03 pm on Apr 30, 2008 (gmt 0)

Is it possible to use a flag to set the mpg123 output to use ALSA instead of OSS? If that isn't possible, I would suggest using mplayer in interactive mode which will allow you to quit mplayer gracefully. It isn't a solution to your mpg123 issue but it should should solve the audio issue.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved