Mailing Lists: Apple Mailing Lists

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

Re: Why do I need a QTCanvas (JCanvas) for audio?



On Friday, Feb 7, 2003, at 10:04 Australia/Melbourne, Noel Murphy wrote:

Why is it that I need a QTCanvas in order to play an audio only file?? If I
uncomment the 3 lines containing the myQTCanvas variable, I can hear the
whole .wav file playing. If I leave them commented, it plays about 3 seconds
and goes silent.
Is this a bug?

yes, it's a bug - yours ;-)

the canvas "tasks" the movie - that is, gives it some time to find the next batch of samples and arrange for them to play, and then wait until time for the next lot.

that "interval" for audio is about 2-3 seconds - so you are getting the first lot, and then nothing.

either using the QTJ taskable stuff, or your own thread, make sure Movie.task() is called about every half a second or a second - it won't use much time (oh, and you can call it more often, it will just exit if not ready to do anything)

cheers,

dean perry
abstract plane pty. ltd.
_______________________________________________
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.

References: 
 >Why do I need a QTCanvas (JCanvas) for audio? (From: "Noel Murphy" <email@hidden>)



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.