All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Courtier-Dutton <James@superbug.demon.co.uk>
To: Jaroslav Kysela <perex@suse.cz>
Cc: Paul Davis <paul@linuxaudiosystems.com>,
	Takashi Iwai <tiwai@suse.de>,
	manuel.jander@mat.utfsm.cl, alsa-devel@lists.sourceforge.net
Subject: Re: PCM format restrict dilema
Date: Wed, 17 Sep 2003 15:50:48 +0100	[thread overview]
Message-ID: <3F6874C8.9090103@superbug.demon.co.uk> (raw)
In-Reply-To: <Pine.LNX.4.53.0309171615190.5983@pnote.perex-int.cz>

Jaroslav Kysela wrote:
> On Wed, 17 Sep 2003, Paul Davis wrote:
> 
> 
>>>So, the application does the following: -
>>>1) I want there to be 8 periods or less, with a minimum of 2.
>>>2) I want the buffer to be about 500ms long or less, with a minimum or 100ms
>>>3) I want the period size to have a min value of x, and a max value or y.
>>>4) Now calculate the actual sizes based on all the above information.
>>>(i.e. The buffer_size, and period_size values are not set until stage (4).
>>>At this point, alsa-lib would use the contrains above, and calculate the
>>>best values for buffer_size and period size based on the above, and also
>>>what the hardware can do.
>>>
>>>The reason I think it might help this way, is because period_size and
>>>buffer_size and number of periods are all closely linked, so we should
>>>not have to set them one at a time, but set them as a group.
>>
>>given that buffer_size = period_size * nperiods, why try to set the
>>buffer size at all? i've never set the buffer size in any ALSA app - i
>>always set nperiods first, then the period size.
> 
> 
> Good point. This algorithm sounds robust.

How would that algorithm handle the "dmix" case, when nperiods != integer?

> 
> 						Jaroslav
> 
> -----
> Jaroslav Kysela <perex@suse.cz>
> Linux Kernel Sound Maintainer
> ALSA Project, SuSE Labs
> 
> 




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

  reply	other threads:[~2003-09-17 14:50 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-16 14:19 PCM format restrict dilema Manuel Jander
2003-09-16 16:40 ` Takashi Iwai
2003-09-16 18:10   ` James Courtier-Dutton
2003-09-16 18:47     ` Paul Davis
2003-09-16 19:23       ` James Courtier-Dutton
2003-09-16 20:11         ` Paul Davis
2003-09-17  7:05         ` Jaroslav Kysela
2003-09-17 13:48           ` James Courtier-Dutton
2003-09-17 14:20             ` Jaroslav Kysela
2003-09-17 14:22             ` Paul Davis
2003-09-17 14:16               ` Jaroslav Kysela
2003-09-17 14:50                 ` James Courtier-Dutton [this message]
2003-09-17 14:58                   ` Jaroslav Kysela
2003-09-17 14:48               ` Playback/Record speed mismatch Prince John
2003-09-17  7:03     ` PCM format restrict dilema Jaroslav Kysela

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=3F6874C8.9090103@superbug.demon.co.uk \
    --to=james@superbug.demon.co.uk \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=manuel.jander@mat.utfsm.cl \
    --cc=paul@linuxaudiosystems.com \
    --cc=perex@suse.cz \
    --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.