Tim Bunnell | 26 May 2012 21:54
Picon

Re: timing issue on mac os x (10.6.8)

On a possibly related issue, we had an exchange a bit over a year ago 
(early March 2011) about blocking reads. I had a small test app that 
demonstrated that blocking I/O on OS X failed while non-blocking I/O 
with the same latency, SR, etc. worked fine.

At the time, I dug through the code, but not really being familiar with 
the low lever OSX audio functions, could not see anything obvious. Since 
we are able to do what we need to do with the non-blocking I/O, it 
became a moot issue.

FWIW, the error returned is: error -9981 - Input overflowed

I have just checked that the latest patest_write_sine runs on my Mac 
(10.7.4), but the read code from last year still fails.

t

On 5/25/12 9:25 PM, Bjorn Roche wrote:
>
> On May 24, 2012, at 9:56 PM, Ross Bencina wrote:
>
>> On 24/05/2012 11:47 PM, Bjorn Roche wrote:
>>> I was going to ask if you were able to run patest_write_sine, but I
>>> figured I'd try it myself first and it's not working (output immediately
>>> underflowed). patest_read_write_wire seg faults.
>>>
>>> My checkout is a little dated, so I'll have to update and try again, but
>>> in the meantime, Ross maybe you should take a look since you've worked
>>> on this code most recently and I haven't touched it in ages.
>>
>> As far as I know I havn't touched anything related to blocking i/o.
>
> ok.
>
>> I'm afraid I won't have time to look at this for at least 3 weeks. You and Phil will need to work it out, sorry.
>
> ok.
>
>> Regarding the move of some files to /examples: Phil and I decided that given that pa_qa is now the point of
truth for tests, the files in /tests are really just non-essential dev tests (if you consider anything
essential it should be in pa_qa. and afaik there are blocking i/o tests in pa_qa.
>
> I see no good tests of blocking in tests.
>
> 	bjorn
>
> -----------------------------
> Bjorn Roche
> http://www.xonami.com
> Audio Collaboration
> http://blog.bjornroche.com
>
>
>
>
> _______________________________________________
> Portaudio mailing list
> Portaudio <at> music.columbia.edu
> http://music.columbia.edu/mailman/listinfo/portaudio

--

-- 
Director, Center for Pediatric Auditory and Speech Sciences (CPASS)
Head, Speech Research Lab    | Adjunct Associate Professor
duPont Hospital for Children | Comp. and Info. Sciences / Linguistics
Voice: 1+302+651-6835        | University of Delaware
Fax:   1+302+651-6895        | URL: www.asel.udel.edu/speech/

Gmane