Hi, I just got an extra USB soundcard for my PC that has better quality than the on-motherboard card. I have gnome, and other apps working with it but can't get the lastfm player to select the extra card, the drop down list of devices only shows stuff from the on-board card 9which has been playing just fine).
and I can play an mp3 by specifying the extra card on the command line using alsaplayer:
alsaplayer -o alsa -d hw:1 theme.mp3
Just the lastfm player doesn't seem to know about this extra card.
For the curious, the card is a Behringer UCA202, and does provide a noticable improvement in sound quality over the built in sound card on my Gigabyte motherboard.
using second sound card (linux, alsa driver) more info, progress
got it kind of working using OSS - although it shows the ALSA sound card IDs in the OSS drop down, and took a few tried to get it working. Sound is a bit more glitchy using OSS though it seems. I poked around and it seems to be how the RtAudio code in the player enumerates the devices available, it doesn't want to know about any extra sound cards in ALSA it seems.
also, this is using Debian/Testing, 2.6.15 kernel, tried with the static last.fm binary and the "official" debian binary.
Re: using second sound card (linux, alsa driver) more info, progress
I delved a bit further and found the problem is that the last.fm player (at least the binary in Debian) doesnt use the sound card number that is configged.. but this is fixed in the SVN version. Also it won't enumerate and list all the sound devices (off by one error) - this code not fixed in SVN.
The fix is, in src/settingsdialog.cpp, line 58
change: for ( int i = 1; i < audio->getDeviceCount(); i++ ) to: for ( int i = 1; i <= audio->getDeviceCount(); i++ )
Now I have nice crystal clear alsa driver USB audio goodness with my last.fm
Quoth zog666: got it kind of working using OSS - although it shows the ALSA sound card IDs in the OSS drop down, and took a few tried to get it working. Sound is a bit more glitchy using OSS though it seems. I poked around and it seems to be how the RtAudio code in the player enumerates the devices available, it doesn't want to know about any extra sound cards in ALSA it seems.
also, this is using Debian/Testing, 2.6.15 kernel, tried with the static last.fm binary and the "official" debian binary.
using second sound card (linux, alsa driver)