Re: Cocoa Sounds
Re: Cocoa Sounds
- Subject: Re: Cocoa Sounds
- From: Chunk 1978 <email@hidden>
- Date: Mon, 9 Nov 2009 13:37:39 -0500
i'm using Cocoa's NSSound. here's is how i play sounds:
-=-=-=-=-
if ([[soundRadioGroup cellWithTag:1] state] == NSOnState)
{
NSSound *theSound = [NSSound soundNamed:@"mySound.m4a"];
if ([theSound isPlaying])
[theSound stop];
[theSound play];
}
-=-=-=-=-
the first sound is always lagged. for example, if i press a button to play
a sound, the button's pressed state will remain until the sound is loaded
and played. after the first sound plays, all other sounds will play without
lag.
On Mon, Nov 9, 2009 at 1:30 PM, Shawn Erickson <email@hidden> wrote:
>
>
> On Mon, Nov 9, 2009 at 10:25 AM, Chunk 1978 <email@hidden> wrote:
>>
>> humm... i'm running 10.5.8 on 2008 iMac C2D, but i never though it
>> could have been the computer. would like to hear from others.
>
> What sound API are you using?
> -Shawn
_______________________________________________
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