Re: Fading audio in NSMovieView
Re: Fading audio in NSMovieView
- Subject: Re: Fading audio in NSMovieView
- From: "Alastair J.Houghton" <email@hidden>
- Date: Sat, 4 Oct 2003 23:38:47 +0100
On Saturday, October 4, 2003, at 08:35 pm, Dave Rosborough wrote:
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)?
NSTimer probably isn't designed to provide high accuracy when the
system is under load; generally in event-driven systems, timers are
designed so that they guarantee that they won't fire early, and will
fire soon after the specified time (depending on system load).
If you want accurate timing, you might be able to use a real-time
thread, but you'll have to make some Mach calls to set it up... see
http://developer.apple.com/documentation/Darwin/Conceptual/
KernelProgramming/scheduler/chapter_8_section_4.html#//apple_ref/doc/
uid/DontLinkBookID_119-DontLinkChapterID_9-BABHGEFA
for more information.
I'm sure there are other possible ways of approaching the problem as
well, but I'm no QuickTime expert so I wouldn't like to speculate too
much.
Kind regards,
Alastair.
_______________________________________________
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.