2012-04-23, 17:47
resampling issues...
I installed the xbmc.bin with the dual output but I have sync issues. Specifically
When I see a video in youtube with 44100hz audio it plays correctly in the first output (hdmi) but in the second output it plays faster. The speed difference is even worst in videos at 22000hz. They play coorectly in the hdmi output (first) but twice the speed in the digital output (second). Off course they can't play correctly at the second output so they play with clicks and stops. Reversing the outputs (making first the optical and second the hdmi in the xbmc settings did not correct the problem).
I also made the following change to the advancedsettings.xml file
<audio>
<resample>48000<resample>
</audio>
It seems that the patch does not apply the same resampling settings at both outputs. They are being applied to the first output thus playing the hdmi stream correctly but it does not apply them in the second output thus resulting in corrupted audio in the second output every time it needs resampling.
Can anybody confirm this by doing the following check...
1. play a video of 44100 or 22000hz audio
2. check if it plays correctly (resampled) from both outputs
EDIT:
Found a solution...
I created this file
~/.asoundrc
pcm.dmixer {
type dmix
ipc_key 1024
slave {
pcm "hw:1,0"
period_time 0
period_size 1024
buffer_size 8192
#periods 128
#rate 44100
rate 48000
}
bindings {
0 0
1 1
}
}
and selected as audio device plug:dmixer instead of hw:1,0.( hw:1,0 was card1,subdevice 0 - my creative x-fi for digital). That made the digital output to resample everything to 48000.
I installed the xbmc.bin with the dual output but I have sync issues. Specifically
When I see a video in youtube with 44100hz audio it plays correctly in the first output (hdmi) but in the second output it plays faster. The speed difference is even worst in videos at 22000hz. They play coorectly in the hdmi output (first) but twice the speed in the digital output (second). Off course they can't play correctly at the second output so they play with clicks and stops. Reversing the outputs (making first the optical and second the hdmi in the xbmc settings did not correct the problem).
I also made the following change to the advancedsettings.xml file
<audio>
<resample>48000<resample>
</audio>
It seems that the patch does not apply the same resampling settings at both outputs. They are being applied to the first output thus playing the hdmi stream correctly but it does not apply them in the second output thus resulting in corrupted audio in the second output every time it needs resampling.
Can anybody confirm this by doing the following check...
1. play a video of 44100 or 22000hz audio
2. check if it plays correctly (resampled) from both outputs
EDIT:
Found a solution...
I created this file
~/.asoundrc
pcm.dmixer {
type dmix
ipc_key 1024
slave {
pcm "hw:1,0"
period_time 0
period_size 1024
buffer_size 8192
#periods 128
#rate 44100
rate 48000
}
bindings {
0 0
1 1
}
}
and selected as audio device plug:dmixer instead of hw:1,0.( hw:1,0 was card1,subdevice 0 - my creative x-fi for digital). That made the digital output to resample everything to 48000.