新しいAPI
QuickTime 3.0.2では Movie
Exportコンポーネントに新たなAPIをひとつ追加しました。
ComponentResult MovieExportSetGetMoviePropertyProc
(MovieExportComponent ci,
MovieExportGetPropertyUPP getPropertyProc,
void* refCon);
ci component instance
getPropertyProc Specifies a callback function that provides
information about processing source samples.
refcon Passed to the procedure specified in the
getPropertyProc parameter.
|
このルーチンは、Movie Exportコンポーネントに対する
GetPropertyProc を指定します。MovieExportAddDataSource
の呼び出し時に指定される GetPropertyProc
と同じです。このルーチンで "property proc"
を指定することによって、"data proc" から export
を行うことなく、property
のプログラムからの制御を可能とします。
QuickTime 3.0.2では、Data Handler
コンポーネントにもひとつ新たなAPIを追加しました。
ComponentResult DataHGetInfoFlags
(DataHandler dh, UInt32* flags);
dh component instance
flags pointer to the long integer to receive the current flags
|
このルーチンは、data handler
コンポーネントに関する情報を返します。現在以下のフラグがあります。
- kDataHInfoFlagNeverStreams - この data handler
は、streaming をサポートしていません。
インストールされているバージョンの識別
相変わらず、インストールされている
QuickTimeのバージョンを知るには Gesutalt
をつかいます。以下に
QuickTimeのバージョンを得るコードを示します。
{
// check the version of QuickTime installed
long version;
result = Gestalt(gestaltQuickTime,&version);
if (!result && version >= 0x03028000)
{
// we have version 3.0.2!
}
}
|
|