Re: Cocoa Sounds
Re: Cocoa Sounds
- Subject: Re: Cocoa Sounds
- From: Chunk 1978 <email@hidden>
- Date: Mon, 9 Nov 2009 14:00:40 -0500
i dont' believe there are any special processes running, but this iMac has
always had issues since i got it. i've had it "fixed" 3 times for problems
concerning the screen and video card, it's broken again so i'm scheduled to
have it entirely replaced. perhaps there are some other underlying issues
that aren't as obvious that is causing this sound lag problem?
NSSound *theSound = [[NSSound alloc] initWithContentsOfFile:@"mySound.m4a"
byReference:NO];
would loading the sound into memory as above really make the first sound
play on time? the size of my sound files average 40kb, so it doesn't seem
reasonable to me.
On Mon, Nov 9, 2009 at 1:51 PM, Sean McBride <email@hidden>wrote:
> On 11/9/09 12:58 PM, Chunk 1978 said:
>
> >one thing i've always had an issue with is sound lag, which always
> >(yet only) happens during a first sound. after the initial lag,
> >sounds will play on time. at first i though it was my code, but
> >recently i've noticed that it happens in Calculator.
> >
> >if you open Calculator, then choose Speech > Speak Button Pressed,
> >you'll notice a lag when you first press a button.
> >
> >how is it possible to avoid this? are there other 3rd frameworks for
> >sound that would be more ideal to use other than what's available in
> >cocoa?
>
> I have this problem too. It even happens with NSBeep (which someone
> posted about the other day). Maybe you could 'preflight' your sound by
> calling setVolume:0.0 then playing it, then restoring the volume. (Of
> course, the VM system may page out your sound later anyway...). Perhaps
> CoreAudio has a better solution.
>
> --
> ____________________________________________________________
> Sean McBride, B. Eng email@hidden
> Rogue Research www.rogue-research.com
> Mac Software Developer Montréal, Québec, Canada
>
>
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden