ronie Wrote:Those settings only apply to the papplayer, which is the default player for audio files.
Video files are played with DVDPlayer.
Your soundcard may not be the problem here, but maybe the device it is connected to (TV, receiver or whatever). If that device can't handle 48KHz audio, it will give you problems.
You could test if this is the case by creating a .asoundrc file which will resample the audio to 44.1KHz:
Code:
pcm.dmixer {
type dmix
ipc_key 1024
ipc_key_add_uid false
ipc_perm 0660
slave {
pcm "hw:0,1"
rate 44100
channels 2
# format S32_LE
period_time 0
period_size 1024
buffer_time 0
buffer_size 4096
}
}
pcm.!default {
type plug
slave.pcm "dmixer"
}
And set the Audio Output Device in XBMC to default (if it's not already), otherwise it will not use the .asoundrc file.
I can't set the Audio Output device to default, no sound will come out. It's set to plug
pdif. The sound card is connected to a Yamaha HTR-5790 receiver.
I looked at the debug log, it seems to be at 48000:
18:50:29 T:2911284112 M:2948087808 INFO: ffmpeg: Input #0, matroska, from '/h
ome/gary/movies/file.s05e05.720p.hdtv.x264-ctu.mkv':
18:50:29 T:2911284112 M:2948087808 INFO: ffmpeg: Duration: 00:41:46.33, sta
rt: 0.000000, bitrate: N/A
18:50:29 T:2911284112 M:2948087808 INFO: ffmpeg: Stream #0.0: Audio: ac3,
48000 Hz, 5:1
18:50:29 T:2911284112 M:2948087808 INFO: ffmpeg: Stream #0.1(eng): Video:
h264, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 23.98 tb®
.
.
19:45:28 T:2756692880 M:2827214848 NOTICE: Creating audio device with codec id:
86020, channels: 2, sample rate: 48000, pass-through
19:45:28 T:2756692880 M:2827214848 DEBUG: CALSADirectSound::CALSADirectSound -
opening alsa device