I know about that article. I do agree with the basic premise of it, but let's not get into that discussion now, it is in a way beside the point of this conversation.
I reproduced the problem with debugging enabled, and this time paid attention to xbmc.log.
Here it is.
When playing audio, CAESinkALSA fails to open hw sound device ("Device or resource busy") and falls back to PA sink with 44.1 kHz sample rate.
Code:
03:36:21 T:140145728784128 INFO: CAESinkALSA::Initialize - Attempting to open device "iec958:CARD=C20,DEV=0"
03:36:21 T:140145728784128 INFO: CAESinkALSA - ALSA: pcm_hw.c:1557:(snd_pcm_hw_open) open '/dev/snd/pcmC1D0p' failed (-16): Device or resource busy
03:36:21 T:140145728784128 INFO: CAESinkALSA - Unable to open device "iec958:CARD=C20,DEV=0,AES0=0x04,AES1=0x82,AES2=0x00,AES3=0x00" for playback
03:36:21 T:140145728784128 INFO: CAESinkALSA - ALSA: pcm_hw.c:1557:(snd_pcm_hw_open) open '/dev/snd/pcmC1D0p' failed (-16): Device or resource busy
03:36:21 T:140145728784128 INFO: CAESinkALSA - Unable to open device "iec958:CARD=C20,DEV=0" for playback
03:36:21 T:140145728784128 ERROR: CAESinkALSA::Initialize - failed to initialize device "iec958:CARD=C20,DEV=0"
03:36:21 T:140145728784128 DEBUG: CActiveAESink::OpenSink - trying to open device ALSA:default
03:36:21 T:140145728784128 DEBUG: CAESinkALSA::GetChannelLayout - Input Channel Count: 2 Output Channel Count: 2
03:36:21 T:140145728784128 DEBUG: CAESinkALSA::GetChannelLayout - Requested Layout: FL,FR
03:36:21 T:140145728784128 DEBUG: CAESinkALSA::GetChannelLayout - Got Layout: FL,FR
03:36:21 T:140145728784128 INFO: CAESinkALSA::Initialize - Attempting to open device "default"
03:36:21 T:140145728784128 INFO: CAESinkALSA::Initialize - Opened device "default"
03:36:21 T:140145728784128 DEBUG: CAESinkALSA::InitializeHW - Request: periodSize 2205, bufferSize 8820
03:36:21 T:140145728784128 DEBUG: CAESinkALSA::InitializeHW - Got: periodSize 2205, bufferSize 8820
03:36:21 T:140145728784128 DEBUG: CAESinkALSA::InitializeHW - Setting timeout to 200 ms
03:36:21 T:140145728784128 DEBUG: CAESinkALSA::GetChannelLayout - Input Channel Count: 2 Output Channel Count: 2
03:36:21 T:140145728784128 DEBUG: CAESinkALSA::GetChannelLayout - Requested Layout: FL,FR
03:36:21 T:140145728784128 DEBUG: CAESinkALSA::GetChannelLayout - Got Layout: FL,FR
03:36:21 T:140145728784128 DEBUG: CActiveAESink::OpenSink - ALSA Initialized:
03:36:21 T:140145728784128 DEBUG: Output Device : Playback/recording through the PulseAudio sound server
03:36:21 T:140145728784128 DEBUG: Sample Rate : 44100
03:36:21 T:140145728784128 DEBUG: Sample Format : AE_FMT_FLOAT
03:36:21 T:140145728784128 DEBUG: Channel Count : 2
03:36:21 T:140145728784128 DEBUG: Channel Layout: FL,FR
I thought about this a little, and then realized that I inadvertently left the following in advancedsettings.xml:
Code:
<streamsilence>1</streamsilence>
Problem disappeared when I removed that.
This is fixed now, thanks for looking!
-- Stanislav