Re: Sound Level
Re: Sound Level
- Subject: Re: Sound Level
- From: Esteban Uribe <email@hidden>
- Date: Mon, 7 Apr 2003 08:41:15 -0700
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.
References: | |
| >Sound Level (From: Lorenzo <email@hidden>) |