Re: Direct-to-disk and 10.2?
Re: Direct-to-disk and 10.2?
- Subject: Re: Direct-to-disk and 10.2?
- From: Jeff DuMonthier <email@hidden>
- Date: Sat, 7 Sep 2002 11:08:34 -0400
Hi all,
Sorry for the long post, but I'm getting desperate...
I am having a hard time making direct-to-disk recording work under
Jaguar, using the SoundManager. I am doing the standard thing, i.e.
I have a circular buffer and make calls to SPBRecord with a
completion routine. In the completion routine, I first copy the
content of the recording buffer into the circular buffer (using
BlockMoveData), then call SPBRecord, and finally write the content
of the circular buffer on the disk, using PBWriteForkAsync. What
happens is that everything works fine for 5 minutes (plus minus
about 10-20 seconds). Then suddenly the call to PBWriteForkAsync
seems to have no effect anymore (i.e. the callback I put on the
write command is called only something like 10 seconds(!) after the
call to PBWriteForkAsync is performed, instead of being called
almost immediately). As a result, the circular buffer fills up and
the program interrupts the recording. The phenomenon is 100%
reproducible.
Martin:
That's a nasty one. I don't use those routines, but there was a
thread in the Project Builder email forum recently about a problem
with formatted I/O (i.e. fprintf etc.). As I remember it, the I/O
writes into application memory and grows the application size
indefinitely until every operation causes paging. What you are doing
should be very different, but... You might try monitoring the memory
allocation of the app while it is doing this.
--
-Jeff DuMonthier
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.