Re: Fading audio in NSMovieView
Re: Fading audio in NSMovieView
- Subject: Re: Fading audio in NSMovieView
- From: "Douglas A. Welton" <email@hidden>
- Date: Sun, 05 Oct 2003 19:58:14 -0400
Dave,
Have you tried the Core Audio API? I'll not sure if it will get you what
you want, but my initial poking around in the Core Audio archives showed me
a few hits that might be of some value to you.
later,
douglas
on 10/4/03 3:35 PM, Dave Rosborough at email@hidden wrote:
>
Hello all.
>
>
I'm trying to fade audio while an NSMovieView is playing a movie. The
>
approach I've taken is to create an NSTimer that calls a method in the
>
movie view to reduce the volume by a fixed increment. Generally, the
>
timer's interval will end up being somewhere in the range of 0.1
>
seconds. My problem is that the timer isn't firing anywhere near often
>
enough, since the CPU is too busy playing the (rather large) movie
>
files. It works fine on movies that are very small in size, but as
>
soon as my movies hit 40-50 MB's the results are unsatisfactory.
>
>
Is there an obvious solution I'm missing? I've looked through the
>
Quicktime API and tried a variety of things like prerolling the movie,
>
calling the SetMovieVolume() function rather than the -setVolume method
>
of NSMovieView, etc. Would placing the timer in a separate thread help
>
(I'm a little uncertain when it comes to multithreading)? Is there a
>
better way to do this altogether (using some sort of QuickTime plugin
>
perhaps)?
>
>
Thanks,
>
DaveR
_______________________________________________
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.