<div class="gmail_quote">On Thu, Feb 18, 2010 at 1:59 PM, Nick Rout <span dir="ltr"><<a href="mailto:nick.rout@gmail.com">nick.rout@gmail.com</a>></span> wrote:
<div> </div>
<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 Thu, Feb 18, 2010 at 3:53 PM, Steve Hodge <<a href="mailto:stevehodge@gmail.com">stevehodge@gmail.com</a>> wrote:
<div>> On Thu, Feb 18, 2010 at 1:40 PM, Robin Gilks <<a href="mailto:g8ecj@gilks.org">g8ecj@gilks.org</a>> wrote:</div>
<div>>></div>
<div>>> > On Wed, 17 Feb 2010 19:17:55 +1300, you wrote:</div>
<div>>> > Next problem: One of the files I want to be able to play has 24 kHz</div>
<div>>> > audio, and that still does not play. I am guessing that means that</div>
<div>>> > the sound chip on the motherboard does not work below 32 kHz. So does</div>
<div>>> > anyone know how to tell Alsa to upsample anything below 32 kHz? I</div>
<div>>> > imagine what is needed is:</div>
<div>>> ></div>
<div>>> > 24 kHz => 48 kHz</div>
<div>>> > 22.5 kHz => 44.1 kHz</div>
<div>>> ></div>
<div>>></div>
<div>>> Create (if you don't already have one) a file called .asoundrc in the home</div>
<div>>> account of the user running mythtv with the following</div>
<div>>></div>
<div>>> pcm.!default {</div>
<div>>> type plug</div>
<div>>> slave.pcm "spdif"</div>
<div>>> slave.rate 48000</div>
<div>>> }</div>
<div>>></div>
<div>>> Works for me....</div>
<div>></div>
<div>> I've done it that way as well, but it's not quite ideal as it resamples</div>
<div>> everything to 48kHz, regardless of what the hardware can actually take. Most</div>
<div>> S/PDIF inputs take 32, 44.1, and 48kHz so ideally you don't want to resample</div>
<div>> if the source is one of those rates. Anyone know if/how ALSA can be</div>
<div>> instructed to leave 32kHz and 44.1kHz data alone and resample everything</div>
<div>> else to 48kHz?</div>
<div> </div>
<div> </div></div></div>Yes the standard says spdif should take a number of sample rates,
<div>however commonly the audio hardware in soundcards will only pass</div>
<div>48kHz. At least that's the way I understand it. So leaving 44.1 as</div>
<div>44.1 may not work, hardware dependent.</div>
<div> </div></blockquote>
<div> </div>
<div>I believe almost all PC sound hardware will pass 44.1kHz - it's the standard for CDs after all. I know the hardware I have certainly does. Many do not support 32kHz though. The point is that if your hardware can do it, it's desirable to pass 44.1kHz audio in particular with resampling so it'd be great if ALSA could do that while resampling everything else to 48kHz.</div>
<div> </div>
<div>Cheers,</div>
<div>Steve</div></div><br>