Reading Audio Item Characteristics
To read the current tag argument values for a sample, envelope, attachment, tuning, or knob item, use this call:
Err GetAudioItemInfo( Item AnyItem, TagArg *tp )
SetAudioItemInfo()
in Audio Folio Calls, of the 3DO Music and Audio Programmer's Reference. They are also described in Setting an Attachment's Attributes.)
When GetAudioItemInfo()
executes, it finds the current value for each of the tag arguments in the list and writes that value to the tag argument. The call returns 0 if successful, or a negative number (an error code) if unsuccessful.
To get the information you asked for, read the values written into your tag argument list. (To make sure that each value is written, it is wise to initially set the tag argument values to NULL. GetAudioItemInfo()
writes over the original values.)
Setting Audio Item Characteristics
To change the characteristics of a sample, envelope, attachment, or tuning item, (but not a knob item), use this call:
Err SetAudioItemInfo( Item AnyItem, TagArg *TagList )
SetAudioItemInfo()
.) You can also use SetAudioItemInfoVA()
. See Audio Folio Calls of the 3DO Music and Audio Programmer's Reference for more information.
When SetAudioItemInfo()
executes, it reads the tag argument values in the tag argument list and applies them to the specified item. It returns 0 if successful, or a negative value (an error code) if unsuccessful.
Note that this call does not work with any audio items other than sample, envelope, attachment, or tuning items.