Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Dev

audio resampling

 

 

MythTV dev RSS feed   Index | Next | Previous | View Threaded


cal at graggrag

Nov 6, 2009, 9:00 AM

Post #1 of 2 (162 views)
Permalink
audio resampling

In futzing about with jack audio, I've encountered a little oddity. Jack works
to a single samplerate, so GetSupportedRates() returns a vector with just one
element. Resampling doesn't happen. With this it does...

--- mythtv.orig/libs/libmyth/audiooutputbase.cpp
+++ mythtv/libs/libmyth/audiooutputbase.cpp
@@ -303,7 +303,7 @@
if (resample && src_quality >= 0)
{
int error;
- audio_samplerate = *(rates.end());
+ audio_samplerate = rates.back();
VERBOSE(VB_GENERAL, LOC + QString("Using resampler. From: %1 to %2")
.arg(settings.samplerate).arg(audio_samplerate));
src_ctx = src_new(2-src_quality, source_audio_channels, &error);


cheers, Cal
_______________________________________________
mythtv-dev mailing list
mythtv-dev[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


danielk at cuymedia

Nov 6, 2009, 5:25 PM

Post #2 of 2 (139 views)
Permalink
Re: audio resampling [In reply to]

On Sat, 2009-11-07 at 04:00 +1100, cal wrote:
> In futzing about with jack audio, I've encountered a little oddity. Jack works
> to a single samplerate, so GetSupportedRates() returns a vector with just one
> element. Resampling doesn't happen. With this it does...
> - audio_samplerate = *(rates.end());
> + audio_samplerate = rates.back();

It's a bug, fixed in svn.

-- Daniel

_______________________________________________
mythtv-dev mailing list
mythtv-dev[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

MythTV dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.