Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mp3 from command line, stopping alsa?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
goanuj
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jul 2002
Posts: 125
Location: California

PostPosted: Thu Jun 26, 2003 12:32 am    Post subject: mp3 from command line, stopping alsa? Reply with quote

couple questions:

Are there any programs that allow one to play a mp3 from the command line? (I do not use X, only consoles)


Can I stop my computer from making any sounds whatsoever using ALSA?

no midi, no annoying beeps, no mp3, nothing :)

--Anuj
Back to top
View user's profile Send private message
nadamsieee
Guru
Guru


Joined: 30 May 2003
Posts: 340
Location: Atlanta, GA, USA

PostPosted: Thu Jun 26, 2003 1:35 am    Post subject: Reply with quote

To unmute your soundcard you would do this (as root):
Code:
# amixer set Master 100 unmute
# amixer set PCM 100 unmute


So to mute it you would do this (again, as root):
Code:
# amixer set Master 0
# amixer set PCM 0


You can also run alsamixer to tweek the sound:
Code:
# alsamixer

_________________
nadams (at) ieee (dot) org
Back to top
View user's profile Send private message
PowerFactor
Veteran
Veteran


Joined: 30 Jan 2003
Posts: 1693
Location: out of it

PostPosted: Thu Jun 26, 2003 5:12 am    Post subject: Re: mp3 from command line, stopping alsa? Reply with quote

goanuj wrote:
Are there any programs that allow one to play a mp3 from the command line? (I do not use X, only consoles)

Well, there's the classic mpg123. As well as mpg321, I don't know if one is better than the other. There are also some ncurses based mp3 players but I can't remember the names of any right now.

To silence alsa you can just fire up alsamixer and mute master. Alsa doesn't have anything to do with your pc speaker though, not sure how you shut that one up, short of unpluging it from the mb.
Back to top
View user's profile Send private message
Woody
Guru
Guru


Joined: 30 Nov 2002
Posts: 592
Location: Milwaukee

PostPosted: Thu Jun 26, 2003 6:19 am    Post subject: Reply with quote

mp3blaster, alsaplayer has a text interface, xmms-shell...
To shut down the drivers:
Code:
# /etc/init.d/alsasound stop

That doesn't solve the beeping tho...that would be in the kernel.
You could always unplug the speaker :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum