The QTPlgCompressSound class provides QTPlugin developers with services to manage sequence compression process. This class uses the standard sound–compression dialog component to control the process of compressing a movie or a track.
Because the standard sound–compression dialog is a component, the class uses the Component Manager to open and close a connection to the component; QTPlugin developers do not worry about it, cause the QTPlgCompressSound class takes care about the details of opening and closing a connection to the standard sound–compression dialog component.
You can use the class to obtain sound compression parameters from the user (or set them by yourself) and to manage the process of compressing the sound. You can follow several ways to control the different steps involved into the compression process.
The simplest way is to use the standard sound–compression dialog component dialog box. The dialog box presents a consistent interface to the user; the QTPlgCompressSound eliminates the need for you to worry about the details of managing this dialog box. Also, provided that the requirements are met, this class features the class method as well. Once you have collected the parameter information from the user, you can use the class to instruct the Sound Compression Manager to perform the compression of sound. Again, the class manages the details for you.
Alternatively, you can use the methods the class provides you with to examine or modify the parameters
to be used during the compression process. This way allows you to perform the process of compressing
the sound without using any user interface.
Whatever way you follow, the class allows you to store the compression parameters you have set into
files and restore them later.
Since version 6.0 of the QTPlugin, this class has been modified to take advantage of the new QuickTime APIs, introduced in QuickTime 7.1, that allow direct audio export with incorporated mixer and encoding, decoding, transcoding capabilitites
→ →
The QTPlgCompressSound class constructors are called when you create a new instance of the class, while the ˜QTPlgCompressSound class destructor, is called automatically when the class is no more in use. Also, you can invoke the class destructor by setting the instance of the class to nil.
Once a new class instance is returned, it is good practice to check the class property to be sure that the new object can be used. See the validity requirements for more details.
The class provides you with the following initializer methods: