<div class="gmail_quote">On Thu, Feb 18, 2010 at 1:40 PM, Robin Gilks <span dir="ltr"><<a href="mailto:g8ecj@gilks.org">g8ecj@gilks.org</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>
<div></div>
<div class="h5">> On Wed, 17 Feb 2010 19:17:55 +1300, you wrote:<br>> Next problem: One of the files I want to be able to play has 24 kHz<br>> audio, and that still does not play. I am guessing that means that<br>
> the sound chip on the motherboard does not work below 32 kHz. So does<br>> anyone know how to tell Alsa to upsample anything below 32 kHz? I<br>> imagine what is needed is:<br>><br>> 24 kHz => 48 kHz<br>
> 22.5 kHz => 44.1 kHz<br>><br><br>Create (if you don't already have one) a file called .asoundrc in the home<br>account of the user running mythtv with the following<br><br>pcm.!default {<br> type plug<br>
slave.pcm "spdif"<br> slave.rate 48000<br>}<br><br>Works for me....<br></div></div></blockquote>
<div>I've done it that way as well, but it's not quite ideal as it resamples everything to 48kHz, regardless of what the hardware can actually take. Most S/PDIF inputs take 32, 44.1, and 48kHz so ideally you don't want to resample if the source is one of those rates. Anyone know if/how ALSA can be instructed to leave 32kHz and 44.1kHz data alone and resample everything else to 48kHz?</div>
<div> </div>
<div>Cheers,</div>
<div>Steve</div></div>