From: Takashi Iwai <tiwai@suse.de>
To: James Wright <james@jigsawdezign.com>
Cc: ALSA Dev <alsa-devel@alsa-project.org>
Subject: Re: SND_PCM_ASYNC - why???
Date: Mon, 19 Jan 2004 20:07:51 +0100 [thread overview]
Message-ID: <s5hisj792pk.wl@alsa2.suse.de> (raw)
In-Reply-To: <20040117112645.1c9dce19.james@jigsawdezign.com>
At Sat, 17 Jan 2004 11:26:45 +0000,
James Wright wrote:
>
> Hello,
>
> I'm doing much better with ALSA now that i spent a coule of days messing with code. I've got both direct
> MMAP PCM playback and a fallback using normal write access with no problems. However, i've
> just written in asyncronous notification support and found that if i use the SND_PCM_ASYNC flag in snd_pcm_open()
> and then setup my callback function with snd_async_add_pcm_handler(), then the callback function is not called!
> When i remove the SND_PCM_ASYNC flag it works fine, so is this flag/mode redundant?
snd_async_add_pcm_handler() sets/resets the O_ASYNC flag by itself, so
basically you don't need to open the pcm with SND_PCM_ASYNC.
Takashi
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
next prev parent reply other threads:[~2004-01-19 19:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-17 11:26 SND_PCM_ASYNC - why??? James Wright
2004-01-19 19:07 ` Takashi Iwai [this message]
2004-01-19 20:47 ` James Wright
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=s5hisj792pk.wl@alsa2.suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=james@jigsawdezign.com \
/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