All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lee Revell <rlrevell@joe-job.com>
To: Jaroslav Kysela <perex@suse.cz>
Cc: alsa-devel <alsa-devel@lists.sourceforge.net>
Subject: Re: latency.c: some feature requests
Date: Sun, 28 Nov 2004 16:32:13 -0500	[thread overview]
Message-ID: <1101677534.18348.84.camel@krustophenia.net> (raw)
In-Reply-To: <Pine.LNX.4.58.0411281942520.6878@pnote.perex-int.cz>

On Sun, 2004-11-28 at 19:44 +0100, Jaroslav Kysela wrote:
> -P plughw:0,3 -C plughw:0,2

Thanks.  Here are the results.  Does this look OK to you?

It looks like the playback runs 64 frames ahead of the capture.  Do you
think this would be a problem from the application's perspective?

rlrevell@mindpipe:~/cvs/alsa-cvs-T3/alsa-lib/test$ ./latency -P plughw:0,3 -C plughw:0,2 -c 16 -r 48000
Scheduler set to Round Robin with priority 99...
Playback device is plughw:0,3
Capture device is plughw:0,2
Parameters are 48000Hz, S16_LE, 16 channels, non-blocking mode
Wanted tick time: 0us, poll mode: no
Loop limit is 1440000 frames, minimum latency = 64, maximum latency = 4096
Plug PCM: Copy conversion PCM
Its setup is:
stream       : PLAYBACK
access       : RW_INTERLEAVED
format       : S16_LE
subformat    : STDI still have not implemented synced start so it looks like the capture and playback are a little out of sync.  
channels     : 16
rate         : 48000
exact rate   : 48000 (48000/1)
msbits       : 16
buffer_size  : 64
period_size  : 32
period_time  : 666
tick_time    : 1000
tstamp_mode  : NONE
period_step  : 1
sleep_min    : 0
avail_min    : 4
xfer_align   : 4
start_threshold  : 2147483647
stop_threshold   : 64
silence_threshold: 0
silence_size : 0
boundary     : 1073741824
Slave: Hardware PCM card 0 'Sound Blaster Audigy2' device 3 subdevice 0

Its setup is:
stream       : PLAYBACK
access       : MMAP_NONINTERLEAVED
format       : S16_LE
subformat    : STD
channels     : 16
rate         : 48000
exact rate   : 48000 (48000/1)
msbits       : 16
buffer_size  : 64
period_size  : 32
period_time  : 666
tick_time    : 1000
tstamp_mode  : NONE
period_step  : 1
sleep_min    : 0
avail_min    : 4
xfer_align   : 4
start_threshold  : 2147483647
stop_threshold   : 64
silence_threshold: 0
silence_size : 0
boundary     : 1073741824
Plug PCM: Hardware PCM card 0 'Sound Blaster Audigy2' device 2 subdevice 0

Its setup is:
stream       : CAPTURE
access       : RW_INTERLEAVED
format       : S16_LE
subformat    : STD
channels     : 16
rate         : 48000
exact rate   : 48000 (48000/1)
msbits       : 16
buffer_size  : 64
period_size  : 32
period_time  : 666
tick_time    : 1000
tstamp_mode  : NONE
period_step  : 1
sleep_min    : 0
avail_min    : 4
xfer_align   : 4
start_threshold  : 2147483647
stop_threshold   : 64
silence_threshold: 0
silence_size : 0
boundary     : 1073741824
Trying latency 64 frames, 1333.333us, 1.333333ms (750.0000Hz)
Success
Playback:
*** frames = 1440080 ***
state       : RUNNING
trigger_time: 1101676443.293035000
tstamp      : 1101676473.295128000
delay       : 59
avail       : 5
avail_max   : 15
Capture:
*** frames = 1440016 ***
state       : RUNNING
trigger_time: 1101676443.293030000
tstamp      : 1101676473.295506000
delay       : 52
avail       : 52
avail_max   : 52
Maximum read: 32 frames
Maximum read latency: 666.667us, 0.666667ms (1500.0000Hz)
Playback time = 1101676443.293035, Record time = 1101676443.293030, diff = 5

Lee



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/

  parent reply	other threads:[~2004-11-28 21:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-28  4:58 latency.c: some feature requests Lee Revell
2004-11-28 11:37 ` Jaroslav Kysela
2004-11-28 18:37   ` Lee Revell
2004-11-28 18:44     ` Jaroslav Kysela
2004-11-28 18:49       ` Lee Revell
2004-11-28 18:57         ` Jaroslav Kysela
2004-11-28 21:32       ` Lee Revell [this message]
2004-11-29 12:23         ` 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=1101677534.18348.84.camel@krustophenia.net \
    --to=rlrevell@joe-job.com \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=perex@suse.cz \
    /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.