Re: Realtime synthesis and low latency with Java
Re: Realtime synthesis and low latency with Java
- Subject: Re: Realtime synthesis and low latency with Java
- From: Peter Salomonsen <email@hidden>
- Date: Thu, 24 Nov 2005 10:44:18 +0100
Hi Bob,
and thanks for your response.
> lineOut.open (audioFormat, outBuffer.length);
>
> while (isRunning) {
> computeAudioHere ();
> lineOut.write (outBuffer, 0, outBuffer.length);
> }
And you're right about the above. This is correct after the book, and the
javadocs for SourceDataLine - but I cannot get it working equally across
platforms (especially on Windows), neither the methods getLongFramePosition
and available - hence why I choose to write my own blocking mechanism.
Maybe though, this (the "correct" way) works better on mac, I'll check this
approach on a G5 I can borrow.
Best,
Peter
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden