Re: While setting the volume of a QuickTimeFile the sound gets distorted
site_archiver@lists.apple.com Delivered-To: cocoa-dev@lists.apple.com Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=mnxAN5KpnIqhrOoCJOZTUmW6SOdXOqA1gYi1t3bhHkgirEtQoCgWQtcrXXcaPseSwE8/poHUWT+osMOuFHWctTQK/el1HbE2Y18VDWaH/G/Kh6JUVhWulrWiW7HtQa85mnhJxt5BJAZF3JeTiq1CpDRDmwVa1R6bLWndX+/3vmE= 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? -- I.S. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/site_archiver%40lists.apple... On Jan 2, 2007, at 3:33 AM, pocahontius@mac.com wrote: 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: ... This email sent to site_archiver@lists.apple.com
participants (1)
-
I. Savant