Re: Sound Level
Re: Sound Level
- Subject: Re: Sound Level
- From: Lorenzo <email@hidden>
- Date: Mon, 07 Apr 2003 18:34:19 +0200
Hi,
thank you. But I don't play movies, I play only NSSounds like:
theSound = [NSSound soundNamed:@"startSound"];
[theSound play];
Best Regards
--
Lorenzo
email: email@hidden
>
From: Esteban Uribe <email@hidden>
>
Date: Mon, 7 Apr 2003 08:41:15 -0700
>
To: Lorenzo <email@hidden>
>
Cc: <email@hidden>
>
Subject: Re: Sound Level
>
>
Hi,
>
>
On Monday, April 7, 2003, at 05:46 AM, Lorenzo wrote:
>
>
> Hi, how to control the sound level of the Mac, and
>
> ho to control the sound level of my Cocoa application?
>
>
>
> NSSound is not the answer. So please, what?
>
>
>
>
I've been using Quicktime and NSMovie to do this.
>
>
Something like the following:
>
>
NSMovie *soundPlayer = [[NSMovie alloc] initWithURL:[NSURL
>
fileURLWithPath:soundAtPath] byReference:YES];
>
>
//kFullVolume is max sound volume at 1.0, mute would be 0.0, anything
>
else is between
>
SetMovieVolume([soundPlayer QTMovie], kFullVolume);
>
StartMovie([soundPlayer QTMovie]);
>
if(IsMovieDone([soundPlayer QTMovie])) {
>
StopMovie([soundPlayer QTMovie]);
>
[soundPlayer release];
>
}
>
>
-Esteban
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.