| Miles Sound System SDK 7.2a |
The basic type MILES_LENGTHY_STATE indicates the current stage of the lengthy operation.
| Value | Description |
|---|---|
| AIL_LENGTHY_INIT | This state means that the process is about to begin. This let's you set up any persistent variables that you might need. |
| AIL_LENGTHY_SET_PROPERTY | This state is called to allow you to set codec properties. The value parameter contains an address of a function of the AILCODECSETPROP type. So, to set a property, you cast the value parameter to AILCODECSETPROP and then perform the function call. You would use code something like this: ((AILCODECSETPROP)value) ( "Requested Bit Rate", 64 ); The Miles MPEG properties that you can use are listed with the AILCODECSETPROP definition. |
| AIL_LENGTHY_UPDATE | Your callback will be called many times with this state during a long operation. The value parameter is the percentage of completion. The percentage is an F32, so you must cast the value to get the correct percentage - use something like: F32 percent=*(F32*)&value; You will usually cancel a long operation by returning a zero from this callback. |
| AIL_LENGTHY_DONE | This state means that the process is completed and you can free any persistent variables. The value parameter isn't used and the return value from this callback is ignored. |
Group:
Utility Services
Related Functions:
AILCODECSETPROP, AILLENGTHYCB
For technical support, e-mail Miles3@radgametools.com
© Copyright 1991-2007 RAD Game Tools, Inc. All Rights Reserved.