Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What do I need to playback wav / mp3 (Solved)
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
ts1971
n00b
n00b


Joined: 06 Oct 2012
Posts: 52

PostPosted: Wed Dec 05, 2012 12:20 am    Post subject: What do I need to playback wav / mp3 (Solved) Reply with quote

Hi,

I am brand new to gentoo and linux (at least as a desktop). I have most of what I need for my pretty humble requirements working at this point but there is still no sound. My only audio requirements are that I need to be able to listen to wav / mp3 files. I know nothing about this stuff but from googling around it looks like the first step is ALSA. Is that also a user application or is it just a set of low level libraries and I'll have to install something on top of it? Can someone point me in the right direction to the simplest solution?

Here's my card info:

Code:

t430i jason # lspci | grep -i 'audio'
00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
t430i jason #


Thanks.


Last edited by ts1971 on Mon Dec 10, 2012 7:46 pm; edited 1 time in total
Back to top
View user's profile Send private message
Jaglover
Advocate
Advocate


Joined: 29 May 2005
Posts: 4610
Location: Saint Amant, Acadiana

PostPosted: Wed Dec 05, 2012 12:38 am    Post subject: Reply with quote

ALSA will give you kernel driver, after ALSA is set up user applications can play sound, there is lots of them in portage, like media-sound/audacious.

http://www.gentoo.org/doc/en/alsa-guide.xml
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2867
Location: Omnipresent

PostPosted: Wed Dec 05, 2012 12:42 am    Post subject: Reply with quote

Jaglover wrote:
[...] there is lots of them in portage, like media-sound/audacious.

You have to have the "mp3" USE flag set. More on USE flags here.
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
ts1971
n00b
n00b


Joined: 06 Oct 2012
Posts: 52

PostPosted: Wed Dec 05, 2012 2:54 am    Post subject: Reply with quote

Thanks for taking the time to reply. So I worked my way through the ALSA stuff and then installed audacity. But when I try to play a simple wave file I get an error box with the following:

Code:

No decoder found for file:///home/jason/flotsa01.wav.


I still haven't actually heard any sounds coming from my speakers so I don't know where I stand. Suggestions?

Thanks.
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2867
Location: Omnipresent

PostPosted: Wed Dec 05, 2012 3:03 am    Post subject: Reply with quote

My approach would be:

* emerge alsa-utils (if you haven't already)

* run 'amixer', make sure you see sound devices and that they not muted

* run 'aplay -f cd flotsa01.wav' to test your audio (assuming it's in CD WAV format)
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
ts1971
n00b
n00b


Joined: 06 Oct 2012
Posts: 52

PostPosted: Wed Dec 05, 2012 3:50 am    Post subject: Reply with quote

Hypnos wrote:
My approach would be:

* emerge alsa-utils (if you haven't already)

* run 'amixer', make sure you see sound devices and that they not muted

* run 'aplay -f cd flotsa01.wav' to test your audio (assuming it's in CD WAV format)


So I'm able to play it with that aplay command which is encouraging. I guess that at least I know that my kernel is all set. I'm not sure where this leaves me with audacity though ...

Thanks again.
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 5416

PostPosted: Wed Dec 05, 2012 3:58 am    Post subject: Reply with quote

'audacity'!='audacious'
If we are talking about audacious, post 'emerge -1pv media-plugins/audacious-plugins'.
Back to top
View user's profile Send private message
ts1971
n00b
n00b


Joined: 06 Oct 2012
Posts: 52

PostPosted: Wed Dec 05, 2012 4:05 am    Post subject: Reply with quote

VoidMage wrote:
'audacity'!='audacious'
If we are talking about audacious, post 'emerge -1pv media-plugins/audacious-plugins'.


Yes, you're completely right. I meant 'audacious.' Small brain cramp there. Anyway, here you go:

Code:

t430i jason # emerge -1pv media-plugins/audacious-plugins

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] media-plugins/audacious-plugins-3.2.2-r1  USE="aac alsa cdda flac gnome gtk ipv6 libnotify mp3 nls sdl vorbis -adplug -bs2b -cue -ffmpeg -fluidsynth -gtk3 -jack -lame -libsamplerate -midi -mms -mtp -oss -pulseaudio -scrobbler -sid -sndfile -wavpack" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

 * IMPORTANT: 9 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

t430i jason #


Thanks.
Back to top
View user's profile Send private message
jrussia
Tux's lil' helper
Tux's lil' helper


Joined: 29 Aug 2012
Posts: 89
Location: Chicago

PostPosted: Wed Dec 05, 2012 4:21 am    Post subject: Reply with quote

The sndfile USE flag adds support for libsndfile, which is a library for WAV (and some other) files. Modify /etc/portage/package.use by adding

media-plugins/audacious-plugins sndfile

and let us know if that works.

Edit: oh, sorry, and then emerge audacious-plugins again.
Back to top
View user's profile Send private message
ts1971
n00b
n00b


Joined: 06 Oct 2012
Posts: 52

PostPosted: Mon Dec 10, 2012 7:46 pm    Post subject: Reply with quote

jrussia wrote:
The sndfile USE flag adds support for libsndfile, which is a library for WAV (and some other) files. Modify /etc/portage/package.use by adding

media-plugins/audacious-plugins sndfile

and let us know if that works.

Edit: oh, sorry, and then emerge audacious-plugins again.


After having been away from this issue for a while I finally had a chance to try and that worked like a charm.

Thanks!
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