Re: Timedelay between NAPlayNote and Sound
Re: Timedelay between NAPlayNote and Sound
- Subject: Re: Timedelay between NAPlayNote and Sound
- From: Bill Stewart <email@hidden>
- Date: Fri, 03 Aug 2001 16:53:57 -0700
Project Builder has a VERY big effect between the efficiency of its code get
based on the Optimisation settings in the Project. You should try
re-compiling with Optimisation set to O-3
If you're already writing to OS X APIs, then you might consider using the
MusicDeviceComponent on X - it gives you standard MIDI APIs to the software
synthesizer, ability to configure DLS or SoundFont banks for the synth to
use, and other niceties. Look for the API in AudioUnit framework and there
are some minimal docs on the web developer.apple.com/audio
Bill
on 3/8/01 3:00 AM, email@hidden wrote:
>
Hello again,
>
>
I ported my app from 9 to X by using Carbon and MIDIServices. Another
>
strange effect occurs: When compiling my app with CodeWarrior under OS 9 and
>
run it in OS X there is "no" delay between NAPlayNote and its response
>
(Sound). If the app is compiled with the Project Builder (Carbon Framework
>
and Quicktime Framework) there is a delay of about 200ms between NANotePlay
>
and the Sound. I would like to use the Quicktime Instruments as an
>
alternative sound source for people without (expensive) MIDI sound module.
>
Does anybody know the reason for this difference?
>
>
Have a nice day,
>
Helga
mailto:email@hidden
tel: +1 408 974 4056
__________________________________________________________________________
Cat: "Leave me alone, I'm trying to nap... Ah, What's that clicking noise?"
__________________________________________________________________________