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: Bob Lang <email@hidden>
- Date: Thu, 24 Nov 2005 15:29:47 +0000
Hi Peter
You must have a particularly demanding application. I recall using
this automatic blocking technique for my Bezier synthesizer and (to
the best of my recollection) getting good performance on XP with no
particular latency issues. However, since that was at least a year
ago, I may simply be suffering from a case of nostalgia!
Bob
PS: If you're really keen, you can check out the Bezier synthesizer
on my web site at:
http://www.cems.uwe.ac.uk/~lrlang/
--
On 24 Nov 2005, at 09:44, Peter Salomonsen wrote:
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