Re: While setting the volume of a QuickTimeFile the sound gets distorted
Re: While setting the volume of a QuickTimeFile the sound gets distorted
- Subject: Re: While setting the volume of a QuickTimeFile the sound gets distorted
- From: "I. Savant" <email@hidden>
- Date: Tue, 2 Jan 2007 08:15:12 -0500
On Jan 2, 2007, at 3:33 AM, email@hidden wrote:
This is triggered, when I use the (continiously sending) slider:
- (IBAction)setVolume:(id)sender
{
float musicVolume = [musicSlider floatValue];
SetMovieVolume([gameMusic QTMovie], musicVolume);
}
Did you read the manual?
http://developer.apple.com/documentation/QuickTime/Reference/
QTRef_MovieManager/Reference/reference.html#//apple_ref/c/func/
SetMovieVolume
"The current volume setting of the movie represented as a 16-bit,
fixed-point number. The high-order 8 bits contain the integer part of
the value; the low-order 8 bits contain the fractional part. Volume
values range from -1.0 to 1.0. Negative values play no sound but
preserve the absolute value of the volume setting."
What are you actually passing with from the slider? Maybe you're
doing something wrong there? The debugger should tell you if you set
a breakpoint ...
PS: When I use the [[backgroundMusic QTMovie]
setVolume:musicVolume]; always the debugger comes up with errors...
Pposting the actual error itself might be helpful ... At a glance,
you're creating an NSMovie instance, which does not respond to -
setVolume: so sending such a message is begging for a 'selector not
recognized' response. A *QTMovie* instance, on the other hand, does
respond to -setVolume: ...
--
I.S.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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