* alsa-lib/test/pcm.c: -b option
@ 2002-10-17 17:38 karsten wiese
2002-10-17 17:49 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: karsten wiese @ 2002-10-17 17:38 UTC (permalink / raw)
To: Jaroslav Kysela; +Cc: Devel Alsa
[-- Attachment #1: Type: text/plain, Size: 277 bytes --]
hallo jaroslav,
please aply the attached patch.
it enables the -b option.
thanks, karsten
__________________________________________________________________
Gesendet von Yahoo! Mail - http://mail.yahoo.de
Möchten Sie mit einem Gruß antworten? http://grusskarten.yahoo.de
[-- Attachment #2: alsalibtestpcm_patch --]
[-- Type: application/octet-stream, Size: 851 bytes --]
--- alsacvs/alsa-lib/test/pcm.c Thu Oct 17 19:23:49 2002
+++ alsacvsp/alsa-lib/test/pcm.c Thu Oct 17 19:04:20 2002
@@ -563,7 +563,7 @@
-r,--rate stream rate in Hz
-c,--channels count of channels in stream
-f,--frequency sine wave frequency in Hz
--b,--buffer ring buffer size in samples
+-b,--buffer ring buffer size in us
-p,--period period size in us
-m,--method transfer method
@@ -635,9 +635,9 @@
freq = freq > 5000 ? 5000 : freq;
break;
case 'b':
- buffer_size = atoi(optarg);
- buffer_size = buffer_size < 64 ? 64 : buffer_size;
- buffer_size = buffer_size > 64*1024 ? 64*1024 : buffer_size;
+ buffer_time = atoi(optarg);
+ buffer_time = buffer_time < 1000 ? 1000 : buffer_time;
+ buffer_time = buffer_time > 1000000 ? 1000000 : buffer_time;
break;
case 'p':
period_time = atoi(optarg);
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: alsa-lib/test/pcm.c: -b option
2002-10-17 17:38 alsa-lib/test/pcm.c: -b option karsten wiese
@ 2002-10-17 17:49 ` Takashi Iwai
0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2002-10-17 17:49 UTC (permalink / raw)
To: karsten wiese; +Cc: Jaroslav Kysela, Devel Alsa
At Thu, 17 Oct 2002 19:38:51 +0200 (CEST),
karsten wiese wrote:
>
> please aply the attached patch.
> it enables the -b option.
i committed it. thanks.
Takashi
-------------------------------------------------------
This sf.net email is sponsored by: viaVerio will pay you up to
$1,000 for every account that you consolidate with us.
http://ad.doubleclick.net/clk;4749864;7604308;v?
http://www.viaverio.com/consolidator/osdn.cfm
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-10-17 17:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-17 17:38 alsa-lib/test/pcm.c: -b option karsten wiese
2002-10-17 17:49 ` Takashi Iwai
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.