alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: James Courtier-Dutton <James@superbug.co.uk>
To: Alan Horstmann <gineera@aspect135.co.uk>
Cc: Takashi Iwai <tiwai@suse.de>,
	ALSA devel <alsa-devel@alsa-project.org>, stan <stanl@cox.net>,
	Jaroslav Kysela <perex@suse.cz>
Subject: Re: Hidden rate conversion, and Alsa configuration
Date: Fri, 03 Aug 2007 15:29:48 +0100	[thread overview]
Message-ID: <46B33BDC.80408@superbug.co.uk> (raw)
In-Reply-To: <200708031503.16318.gineera@aspect135.co.uk>

Alan Horstmann wrote:
> On Friday 27 July 2007 21:16, Jaroslav Kysela wrote:
>   
>> On Fri, 27 Jul 2007, stan wrote:
>>     
>>> I really want to avoid rate resampling if I can, while format
>>> conversion has to occur somewhere in order to match the hardware in
>>> most cases.  I assume that any format conversion alsa does
>>> is at least as good as one I would do myself.  While the rate
>>>       
>
>   
>> I answered this numerous times on this list. We have a function to notify
>> the plugins that resampling should be avoided - it's
>> snd_pcm_hw_params_set_rate_resample().
>>     
>
> Can this function be built into an ALSA configuration file in some way, or can 
> it only be called from an app?
>
> Alan
>   
It is only really sensible to have the app do the call, and not a config 
file.
Reason being, if the app does the call, it must also be able to handle 
the resampling itself.
If the config file did it, the app might not be able to do the 
resampling itself and therefore fail to play anything.
Generally, the app is the best place to do the resampling, as it can 
handle the quality issues better.
The resampler in ALSA is only really there to let other apps that don't 
do resampling limp along ok.

James

  reply	other threads:[~2007-08-03 14:30 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-16 12:40 SALSA and aplay Alan Horstmann
2007-07-16 12:30 ` Takashi Iwai
2007-07-17 11:33   ` Alan Horstmann
2007-07-17 11:58     ` Takashi Iwai
2007-07-17 14:38       ` Alan Horstmann
2007-07-17 15:09         ` Takashi Iwai
2007-07-18 15:01           ` Alan Horstmann
2007-07-18 16:20             ` Alan Horstmann
2007-07-19  9:33               ` Takashi Iwai
2007-07-19 14:24                 ` John Rigg
2007-07-19 14:27                   ` Takashi Iwai
2007-07-19 15:40                     ` John Rigg
2007-07-20 12:33                   ` Hidden rate conversion, and Alsa configuration Alan Horstmann
2007-07-22 19:56                     ` stan
2007-07-23  8:15                       ` Jaroslav Kysela
2007-07-23 13:37                         ` stan
2007-07-27 16:20                     ` Alan Horstmann
2007-07-27 15:59                       ` Lee Revell
2007-07-27 17:37                         ` stan
2007-07-27 19:38                           ` Lee Revell
2007-07-27 20:03                             ` stan
2007-07-27 20:16                               ` Jaroslav Kysela
2007-07-27 20:48                                 ` stan
2007-08-03 14:03                                 ` Alan Horstmann
2007-08-03 14:29                                   ` James Courtier-Dutton [this message]
2007-08-03 15:11                                     ` Takashi Iwai
2007-08-03 21:56                                       ` Alan Horstmann
2007-07-27 17:53                         ` stan
2007-07-27 18:29                           ` stan
2007-07-27 16:18                       ` Takashi Iwai
2007-07-19  9:30             ` SALSA and aplay Takashi Iwai
2007-07-20 11:57               ` Alan Horstmann
2007-07-20 12:10                 ` Takashi Iwai
2007-07-20 15:20                   ` Alan Horstmann
2007-07-20 15:06                     ` Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46B33BDC.80408@superbug.co.uk \
    --to=james@superbug.co.uk \
    --cc=alsa-devel@alsa-project.org \
    --cc=gineera@aspect135.co.uk \
    --cc=perex@suse.cz \
    --cc=stanl@cox.net \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).