2009-06-10, 22:49
How can I configure at runtime (command-line switch or configuration directive) which sound-backend xbmc uses on linux?
I want to use alsa as the sound backend, but paplayer first tries pulseaudio, no matter what I try... This gives a 5 second delay before it switches to alsa (as I do not have pulseaudio installed, it is not installed and not running). After the switch to alsa, audio is fine. This delay happens on every new play of a song or album.
I did try to to search the forum, read all threads on pulseaudio, searched the xbmc wiki, faq, googled etc., but still no clue...
I found some people that used
but after that xbmc still tries pulseaudio first. I understand that I can compile xbmc from source and use --disable-pulse there, but I prefer to use the packaged build as this works fine otherwise. In the GUI configuration I only could select " default" for analog audio. Did I miss something or do I ask for the impossible?
My system:
Build: 9.04.1 Atlantis (SVN:20654) PPA on Debian Lenny.
Hardware: Asus EEE box B202 (Intel Atom, etc.)
Complete log: http://www.pastebin.ca/1455804
I want to use alsa as the sound backend, but paplayer first tries pulseaudio, no matter what I try... This gives a 5 second delay before it switches to alsa (as I do not have pulseaudio installed, it is not installed and not running). After the switch to alsa, audio is fine. This delay happens on every new play of a song or album.
I did try to to search the forum, read all threads on pulseaudio, searched the xbmc wiki, faq, googled etc., but still no clue...
Code:
22:17:05 T:3065481024 M:700002304 DEBUG: PulseAudio: Opening Channels: 2 - SampleRate: 44100 - SampleBit: 16 - R
22:17:05 T:2804882320 M:700018688 INFO: CFileCache::Process - Hit eof.
22:17:10 T:3065481024 M:699957248 DEBUG: PulseAudio: Context failed
22:17:10 T:3065481024 M:699957248 ERROR: PulseAudio: Waited for the Context but it failed
22:17:11 T:3065481024 M:699990016 DEBUG: CALSADirectSound::CALSADirectSound - Channels: 2 - SampleRate: 44100 -
22:17:11 T:3065481024 M:699990016 DEBUG: Initialize - using alsa device default
I found some people that used
Code:
SDL_AUDIODRIVER=alsa xbmc
but after that xbmc still tries pulseaudio first. I understand that I can compile xbmc from source and use --disable-pulse there, but I prefer to use the packaged build as this works fine otherwise. In the GUI configuration I only could select " default" for analog audio. Did I miss something or do I ask for the impossible?
My system:
Build: 9.04.1 Atlantis (SVN:20654) PPA on Debian Lenny.
Hardware: Asus EEE box B202 (Intel Atom, etc.)
Complete log: http://www.pastebin.ca/1455804