homepage Welcome to WebmasterWorld Guest from 54.167.174.90
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
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

10+ Year Member



 
Msg#: 3636820 posted 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

10+ Year Member



 
Msg#: 3636820 posted 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.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved