2009-07-15, 15:06
I have an annoying problem with my setup, and it's related to audio sample rates.
My music is always 44100Hz, and most of my movies are in 48000Hz.
Appearantly, when XBMC plays, the soundcard is unable to resample the audio itself. If I play music with 44100Hz in XBMC and the soundcard is supposed to resample the audio to 48000, 96000 or anything other than 44100 (44100 is not supported by the card ...), the sound simply plays faster, while not being resampled. This goes for videos too.
Now, there's a possibility to use the internal resampler of XBMC, which works, although with noticable quality loss (possible to adjust the quality libsamplerate works on?). If I etc. set the samplerate of my sound card at 96000Hz, and the resample rate internally in XBMC at 96000Hz, the music plays fine, however, the videos are not affected by this, and play pretty much double speed. It is not affected by the resample tag in advancedsettings. Should I file a bug report on this?
A semi-good solution is to set the resample rate to 48000Hz. The music takes a noticable hit to the quality being resampled to 48000Hz, while most of my videos can play at native speed.
Any way to adjust the quality of the resampling done by XBMC when playing music? If there's any compilation option or a small patch or something, that's fine too. Also, is there any way to resample internally the audio played by videos?
And ye:
Card: Audigy 2 SE
Alsa-lib: 1.0.20
OS: Arch Linux i686
My music is always 44100Hz, and most of my movies are in 48000Hz.
Appearantly, when XBMC plays, the soundcard is unable to resample the audio itself. If I play music with 44100Hz in XBMC and the soundcard is supposed to resample the audio to 48000, 96000 or anything other than 44100 (44100 is not supported by the card ...), the sound simply plays faster, while not being resampled. This goes for videos too.
Now, there's a possibility to use the internal resampler of XBMC, which works, although with noticable quality loss (possible to adjust the quality libsamplerate works on?). If I etc. set the samplerate of my sound card at 96000Hz, and the resample rate internally in XBMC at 96000Hz, the music plays fine, however, the videos are not affected by this, and play pretty much double speed. It is not affected by the resample tag in advancedsettings. Should I file a bug report on this?
A semi-good solution is to set the resample rate to 48000Hz. The music takes a noticable hit to the quality being resampled to 48000Hz, while most of my videos can play at native speed.
Any way to adjust the quality of the resampling done by XBMC when playing music? If there's any compilation option or a small patch or something, that's fine too. Also, is there any way to resample internally the audio played by videos?
And ye:
Card: Audigy 2 SE
Alsa-lib: 1.0.20
OS: Arch Linux i686