From: Steve deRosier <derosier@pianodisc.com>
To: Alsa-Devel <alsa-devel@lists.sourceforge.net>
Subject: How to tell how many frames gone to PCM
Date: Tue, 26 Apr 2005 13:18:18 -0700 [thread overview]
Message-ID: <426EA20A.70403@pianodisc.com> (raw)
All,
I'm having issues w/ synchronizing MIDI and audio data I output via Alsa. I'm working through my program trying to confirm data flow and I need some help.
Is there a particular function (or other method) I can use to tell me the number of frames I have sent to alsa via snd_pcm_writei()?
Either type would be good:
---
open pcm
write all data
get # frames written
close pcm
--- or
open pcm
get current frame count
write all data
get new frame count
print new - old counts
close pcm
---
Any help you could give would be appreciated.
Thanks,
- Steve
-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix
next reply other threads:[~2005-04-26 20:18 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-26 20:18 Steve deRosier [this message]
2005-04-26 20:16 ` How to tell how many frames gone to PCM Lee Revell
2005-04-26 21:07 ` Steve deRosier
2005-04-26 21:17 ` Lee Revell
2005-04-26 21:45 ` Steve deRosier
2005-04-27 14:36 ` Clemens Ladisch
2005-04-27 16:56 ` Steve deRosier
2005-04-27 17:22 ` Clemens Ladisch
2005-04-27 20:31 ` Steve deRosier
2005-04-28 8:25 ` Clemens Ladisch
2005-05-02 18:04 ` Steve deRosier
2005-05-03 8:05 ` Clemens Ladisch
[not found] ` <ad2655cb0504270201165f9859@mail.gmail.com>
2005-04-27 16:43 ` Steve deRosier
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=426EA20A.70403@pianodisc.com \
--to=derosier@pianodisc.com \
--cc=alsa-devel@lists.sourceforge.net \
/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