Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Got Broadcast API working on OSX! -- More Q's.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Got Broadcast API working on OSX! -- More Q's.



OK, so I did figure out some things, and have been making progress with
the Broadcast API's under OSX.

First, you crash if you have no video input, and you try to start a
presentation including video. This is probably a bug, and I'll try to
get my own code in a state where I can report this.

Second, there's those bugs with the QTJ stuff with drawing windows.

Anyway, now I'm trying to put together a simple IB/Carbon/Project
Builder program initially for Audio broadcasting, and later for video as
well.

My question relates to QTSPresIdle: How often do I need to call this?
At first, I figured that the Presentation stuff would just start it's
own threads to do it's work (and indeed, gdb seems to show a bunch of
threads there), but I don't see packets coming out unless I call
QTSPresIdle.

So, I used the Carbon Event Manager timer stuff, and I have a Timer
callback which calls QTSPresIdle, and I have it set to run every 0.1
seconds (10/second). Is this enough? Too much? I thought that OSX was
supposed to get rid of all this legacy polling stuff, and I would expect
that these functions would just start a thread, and have that thread
block waiting for data from the underlying sourcers, etc. Is there
something I'm missing?

Thanks.

-SteveK

--
Steve Kann - Chief Engineer - 520 8th Ave #2300 NY 10018 - (212) 533-1775
HorizonLive.com - collaborate . interact . learn
"The box said 'Requires Windows 95, NT, or better,' so I installed Linux."




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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.