Sorry I did not respond to your earlier posts- I don't have personal e-mail
access at work.
I will try your WASAPI patches. To answer your questions, I am using
full-duplex, 44 or 96khz sample rate, specified buffers of 1024. The error
I was getting was being thrown as a System.Exception when I make the call to
Pa_OpenStream, but there was no line number to accompany it. I don't get a
console message, as I am running this in C# and using PortAudio compiled as
a DLL- no way to get debug output from non-managed code.
Regarding the fact that I must use the same sample rate as currently set in
the RealTek setup dialog. I know that if using Shared mode, I must match
this setting. If using exclusive, I should be able to use any sample rate
the card supports, as long as Windows is set up to allowed exclusive access.
I do know that ASIO4ALL can use other sample rates, as I have tested it. On
another note, ASIO4ALL seems to wedge the underlying hardware, as I
discovered in an earlier post regarding not being able to use 96khz properly
(more on that later after I check in with the ASIO4All folks.
I will try your patch, and see what happens. Thanks for your very quick
attention to this!
From: portaudio-bounces at music.columbia.edu
[mailto:portaudio-bounces at music.columbia.edu] On Behalf Of Dmitry
Sent: Thursday, July 08, 2010 3:07 PM
To: Portaudio Mailing List
Subject: Re: [Portaudio] WASAPI exclusive mode- specify latency crashes
I just commited patch to PA WASAPI. It shall be fixing the issues you
described. I did necessary testing of all modes in my application and WASAPI
operates stable and correctly. I do not get any memory corruptions and/or
related errors and etc.
Could you please test from your side as well.
----- Original Message -----
From: Reid Bishop <mailto:rbish at attglobal.net>
To: 'Portaudio <mailto:portaudio at music.columbia.edu> Mailing List'
Sent: Thursday, July 08, 2010 6:01 PM
Subject: [Portaudio] WASAPI exclusive mode- specify latency crashes
I am still trying to fine-tune WASAPI on Windows 7 64 bit, and running into
I am trying to run in exclusive mode now- when I do this I get mixed
1) When I set suggestedLatency to any value between .001 and 0.5, PA
returns the following error: "General Audio Error: Attempted to read or
write protected memory. This is often an indication that other memory is
2) When I set suggestedLatency to 0.5 and greater, PA returns the
following error: "Audio Stream Error: Invalid device".
3) When I set suggestedLatency to 0, no error is thrown. However, I
MUST use the same sampleRate as is set by my Audio control panel (RealTek
This seems very inconsistent with regards to the Latency settings. I should
be able to set my suggestedLatency between the High and Low latency values
provided by the driver, which indicates between .003 and .010. I find it
odd that I get memory corruption errors when I try to set it to any
Portaudio mailing list
Portaudio at music.columbia.edu
-------------- next part --------------
An HTML attachment was scrubbed...