Originally Posted by Misconstruction
thanks for a nice guide:
When i add the hw:0,1 to gmusicplayer, i get an error when trying to play files. (line 135)
Any ideas why?
i'm using a USB dac
First, have you made sure, using the command: aplay -l that hw:0,1 is the correct setting for the sound device you are trying to use? If you can't playing anything, then I'm guessing you have the wrong setting. If it plays some tracks and then randomly stops then read on.
I have 3 sound devices on my system: onboard sound (BIOS disabled); Xonar STX (hw:0,1) and a USB to Spdif Audiophilleo 2 (hw:2,0). My primary sound device, the Audiophilleo 2, gives me the same occasional error (the error message is a little more verbose than just "135", but right now I can't recall the exact wording). I believe this is a bug in gmusicbrowser. Usually, for me, just clicking through the error message starts the next track playing. I posted this bug on the gmusicbrowser forum quite some time ago. As I recall, the author of gmusicbrowser (a very nice and helpful individual) had no idea why it happens and felt it was a gstreamer error. I tend to disagree, since no other player I use exhibits a similar problem (Quod Libet or Deadbeef). It also seems that the error only happens when you enable gmusicbrowser's gstreamer "Advanced settings" > ALSA device = hw:x,x.
If you are using a recent version of Ubuntu or Mint, the error should not prevent you from using gmusicbrowser, provided you are not trying to play another audio stream at the same time. For example, trying to play a YouTube audio/video file while gmusicbrowser is in "Play" or "Pause" mode. "Stop" would be OK, as this mode temporarilly releases the exclusive ALSA hardware connection between gmusicbrowser and ALSA freeing you to temporarilly play another stream in your browser. I do this occasionally when surfing the web. However, I've found that it can also lead to the error you encountered when resuming gmusicbrowser audio playback (pressing "play" after a "stop").
If the error is causing you too much grief, I suggest removing the ALSA direct hardware setting (hw:x,x) and using gmusicbrowser via PulseAudio. Or, you can switch to Quod Libet for similar functionality and not get the error. Same for Deadbeef.
Edited by Rizlaw - 9/28/12 at 11:09am