[mythtv-users] Nice sounds on clicks, startup, etc.
Roo
roo.watt at gmail.com
Wed Aug 22 09:19:50 UTC 2007
On 22/08/07, Mitch Gore <mitchell.gore at gmail.com> wrote:
> after doing some more digging this strange behavior is found.
>
> When i test aplay with
>
> aplay -D spdif /usr/share/sounds/startup3.wav
>
> it works great. But with the tivo sounds downloaded from above i get...
>
> [myth at mythtv export]$ aplay -D spdif /usr/share/sounds/startup3.wav
> Playing WAVE '/usr/share/sounds/startup3.wav' : Signed 16
> bit Little Endian, Rate 44100 Hz, Stereo
> Warning: rate is not accurate (requested = 44100Hz, got = 48000Hz)
> please, try the plug plugin
>
> [myth at mythtv export]$ aplay -D spdif select.wav
> Playing WAVE 'select.wav' : Signed 16 bit Little Endian, Rate 44100 Hz,
> Stereo
> Warning: rate is not accurate (requested = 44100Hz, got = 48000Hz)
> please, try the plug plugin
>
Hi Mitch,
The problem is that you are outputting to spdif which has a sample
rate of 48kHz only. The warning is because the sample rate of the
second file was 44.1kHz and the spdif doesn't support this sample
rate. You will have the same problem if using spdif in mythmusic (cds
are 44.1kHz).
The "plugin" mentioned is a method for sample rate conversion, my
~/.asoundrc is as below, you need to tweak it for your sound card.
HTH,
Roo.
#### Start .asoundrc ####
pcm.via82xx {
type hw
card 0
}
ctl.via82xx {
type hw
card 0
}
pcm.!default {
type plug
slave.pcm "spdif"
slave.rate 48000
}
#### End .asoundrc ####
More information about the mythtv-users
mailing list