[Pianod] Music doesn't start when launched at startup
Peter Li
chinasaurli at gmail.com
Sat Apr 6 10:29:48 PDT 2013
Yes, I've seen this behavior on RasPi when there was some other process
already trying to output audio in a way that didn't share the device.
I'm not sure what determines whether two things can share an ALSA
device/subdevice. But on Linux you can at least check whether something
is open using procfs:
pi at raspberrypi ~ $ cat /proc/asound/card0/pcm0p/sub0/status
closed
pi at raspberrypi ~ $ mpc -q play
pi at raspberrypi ~ $ cat /proc/asound/card0/pcm0p/sub0/status
state: RUNNING
pi at raspberrypi ~ $ mpc -q stop
pi at raspberrypi ~ $ cat /proc/asound/card0/pcm0p/sub0/status
closed
I believe card 0, playback device 0, subdevice 0 (as above) is the one
to check, but for a quick and dirty check of all possible playback
subdevices:
pi at raspberrypi ~ $ head -qn1 /proc/asound/card*/pcm*p/sub*/status
closed
closed
closed
closed
closed
closed
closed
closed
Hope that helps,
P
On 04/06/2013 07:10 AM, Perette Barella wrote:
> <Snip> Lastly, I've seen some software that locks the audio device. mserv does this on OS X, the Linux guys have mentioned that pianod does this itself on some Linuxes. If you have some other media player that might have it open, make sure that's shut down and try again.
>
> On 2013年04月06日, at 8:55, Andrew Shilliday wrote:
>> <Snip> The daemon starts up correctly. I can start a session via telnet, and I can see the correct station list associated with my Pandora account. When I go to play a station, however, nothing happens and the status stays at STOPPED. Here's the log of one such command:
>>
>> PLAY STATION "My Pandora Station"
>> 132 admin selected the station: My Pandora Station
>> 109 SelectedStation: station My Pandora Station
>> 200 Success
>> 133 Retrieved new playlist
>> 105 Track playback complete
>> 108 No station selected
>> 103 Stopped
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.deviousfish.com/pipermail/pianod-deviousfish.com/attachments/20130406/83f80dac/attachment-0003.htm>
More information about the Pianod
mailing list