Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

channelNotBusy ?



Hi --

I'm trying to write a simple program that goes through a movie and prints
out the audio levels at some arbitrary frame.

So I get an audioMediaHandler from the appropriate track, and I use
getSoundLevelMeterInfo().

When I override drawingComplete() and put this inside, it works fine.

But I don't want to actually render the movie in the MoviePlayer -- I just
want to go to an arbitrary frame and look at the audio level. So I
wrote:

_____________________

public int getLevelAtFrame (int frame_num){
try {
m.setTime (new TimeRecord (m.getTimeScale(), frame_num);
LevelMeterInfo info = audio_handler.getSoundLevelMeterInfo();
return info.getRightMeter();
}
catch (QTException e) { ... }
}

----------------------

The exception that gets thrown looks like this:

-----------------------
quicktime.std.StdQTException[QTJava:6.0.0g2],-211=channelNotBusy,QT.vers:6028000

at quicktime.std.StdQTException.checkError(StdQTException.java:38)
at quicktime.std.movies.media.SoundMediaHandler.getSoundLevelMeterInfo(S
oundMediaHandler.java:86)
at spam.PlayMovie.getLevelAtFrame(PlayMovie.java:145)

-------------------------

I can't find much documentation on this "channelNotBusy" thing. What's
the deal?

Thanks,

Jacob Eisenstein
_______________________________________________
quicktime-java mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/quicktime-java
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.