All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Courtier-Dutton <James@superbug.co.uk>
To: Takashi Iwai <tiwai@suse.de>
Cc: Juan Antonio Zapatero Campo <jazc@gmvsistemas.es>,
	alsa-devel@lists.sourceforge.net
Subject: Re: Mix audio at different frequencies
Date: Mon, 15 May 2006 14:16:56 +0100	[thread overview]
Message-ID: <44687F48.7080204@superbug.co.uk> (raw)
In-Reply-To: <s5hu07r1q0o.wl%tiwai@suse.de>

Takashi Iwai wrote:
> At Mon, 15 May 2006 13:25:39 +0200,
> Juan Antonio Zapatero Campo wrote:
>   
>> No, it returns wrong buffer sizes. Instead of 160 samples, which is what I 
>> am expecting at 8000Hz, it returns a value of 341, which I do not 
>> understand.
>>     
>
> You cannot get always the exactly same buffer size you requested.
> Especially dmix limits the buffer size to its own and rate plugin
> rescales the size according to the rate conversion.
>
>
> Takashi
>   
I would argue that maybe we should modify the way alsa behaves, and 
somehow get dmix to work with user(application) defined buffer and 
period sizes.
I.e. Let alsa handle whatever buffer and period size the user 
application wants, and get ALSA to translate it into the sized needed 
for the hardware.
Maybe implement the use of the system timer in order to trigger the 
buffer events we need.

James



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

  reply	other threads:[~2006-05-15 13:16 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-12 10:25 Mix audio at different frequencies Juan Zapatero
2006-05-12 12:10 ` Takashi Iwai
2006-05-15  7:06   ` Juan Zapatero
2006-05-15 10:03     ` Takashi Iwai
2006-05-15 11:25       ` Juan Antonio Zapatero Campo
2006-05-15 11:33         ` Takashi Iwai
2006-05-15 13:16           ` James Courtier-Dutton [this message]
2006-05-15 13:31             ` Takashi Iwai
2006-05-16 20:49     ` Lee Revell
2006-05-17 18:12       ` Thierry Vignaud
2006-05-17 19:04         ` Lee Revell
2006-05-26  8:22           ` Raise and lower volume through Alsa Api Juan Zapatero
2006-05-26  8:25             ` Benoit Fouet
2006-05-26  8:31               ` Juan Zapatero
2006-05-26  8:36                 ` Benoit Fouet
2006-05-26 17:16                 ` Lee Revell
2006-05-26 18:54                   ` 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=44687F48.7080204@superbug.co.uk \
    --to=james@superbug.co.uk \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=jazc@gmvsistemas.es \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.