|
audiofile/afQuery(3d) -- retrieve static parameters associated with the Audio File Library formats
|
querytype is an integer value token representing the type of query being made. arg1,...arg4 are integer value tokens representing the query selectors and/or subtypes. The number of meaningful arguments to the afQuery routines varies with the querytype. |
audiofile/AFreadframes(3d) -- read sample frames from a specified audio track in an audio file
|
file is the AFfilehandle structure for the audio file from which audio sample data will be read. This structure is usually the returned value of a call to afOpenFile(3dm). track is an integer which identifies an audio track in a file. Since all currently supported file formats allow at most one audio track per file, the value AF_DEFAULT_TRACK should always be used for this argument for now. samples is a pointer to a buffer into which you want to transfer the samples read from the audio file. Not... |
audiofile/AFreadmisc(3d) -- read from / write to / move logical read/write pointer for data in a miscellaneous chunk in an audio file
|
file expects the AFfilehandle structure for the audio file from or to which you want to read or write data. This structure is returned by afOpenFile(3dm) call. miscid expects an integer which identifies the miscellaneous data chunk you want to read from or write to. buf expects a pointer to a buffer which will receive a copy of the miscellaneous data from the file, or which contains the data you want to transfer into the file. nbytes is the number of bytes of data you want to read from the file ... |
audiofile/afSaveFilePosition(3d) -- save and retrieve logical audio sample read pointer
|
file is an AFfilehandle structure, previously returned by afOpenFile(3dm) or afOpenFD(3dm). |
audiofile/AFseekframe(3d) -- move logical file read pointer for a specified audio track to a desired sample frame location / retrieve curre
|
file is an AFfilehandle structure, previously returned by afOpenFile(3dm), afOpenFD(3dm), or afOpenNamedFD(3dm). track is an integer which identifies an audio track within a file which is open for read access. Since all currently supported file formats contain one audio track per file, the constant value AF_DEFAULT_TRACK should always be used here for now. frameoffset is a sample frame location of type AFframecount with a value between 0 and the total number of sample frames in the track minus o... |
audiofile/afSetChannelMatrix(3d) -- set the channel mix matrix associated with a given track in an AFfilehandle
|
file is an AFfilehandle structure, previously created by a call to afOpenFile(3dm) or its equivalent. track is an integer which identifies an audio track in handle. Since all currently supported file formats contain only one audio track, the value AF_DEFAULT_TRACK should always be used here for now. matrix is an array of double precision floating point values which specify the manner in which a channel conversion operation should take place. Because the values in this array will be copied into i... |
audiofile/afSetConversionParams(3d) -- set/get the parameters associated with format conversion for a specified audio track via dmParams
|
file is an AFfilehandle structure, previously created by a call to afOpenFile(3dm) or its equivalent. track is an integer which identifies an audio track in file. Since all currently supported file formats contain only one audio track, the value AF_DEFAULT_TRACK should be used here for now. params a DMparams list, previously created by a call to dmParamsCreate(3dm). |
audiofile/AFseterrorhandler(3d) -- supply an alternate error reporting routine to the Audio File Library
|
efunc is a pointer to an error handling routine which is declared as: void errorfunc(long, const char*) |
audiofile/AFsetloopstart(3d) -- set the start/end markers, play mode, and track in an AFfilehandle structure for a specified loop.
|
setup is an AFfilehandle structure, previously created by a call to afOpenFile(3dm) or afOpenFD(3dm), which opened an audio file for write access. instid is a positive integer value which identifies a chunk of instrument parameters. Since the number of supported inst chunks varies with file format, applications should always retrieve this value via afGetInstIDs(3dm). loopid is a positive integer value which identifies a loop stored in the instrument configuration given by instid. markid is a pos... |
audiofile/afSetLoopStartFrame(3d) -- set the start/end frame and loop count from an AFfilehandle structure for a specified loop.
|
file is an AFfilehandle structure, previously created by a call to afOpenFile(3dm). instid is a positive integer value which identifies an instrument configuration in file. instid should be an element from an array of IDs created via a call to afInitInstIDs(3dm). loopid is a positive integer value which identifies a loop structure in an instrument parameter chunk. You create loopid's by calling afInitLoopIDs(3dm).... |
audiofile/afSetTrackPCMMapping(3d) -- override the current PCM mapping values associated with a given track in an AFfilehandle
|
file is an AFfilehandle structure, previously created by a call to afOpenFile(3dm) or its equivalent. track is an integer which identifies an audio track in handle. Since all currently supported file formats contain only one audio track, the value AF_DEFAULT_TRACK should always be used here for now. slope is a double precision floating point value which specifies an amplitude scaling factor for the waveform to be associated with track. intercept is a double precision floating point value indicat... |
audiofile/afSetVirtualFormatParams(3d) -- set/get the virtual audio data format in an AFfilehandle for a specified audio track via dmParams
|
file is an AFfilehandle structure, previously created by a call to afOpenFile(3dm) or its equivalent. track is an integer which identifies an audio track in file. Since all currently supported file formats contain only one audio track, the value AF_DEFAULT_TRACK should be used here for now. params a DMparams list, previously created by a call to dmParamsCreate(3dm). |
audiofile/afSetVirtualSampleFormat(3d) -- set the virtual data format for a specified audio track
|
Parameters for the virtual routines are identical to those for the equivalent afInit routines, except the first argument is an AFfilehandle structure rather than an AFfilesetup. file is an AFfilehandle structure, previously created by a call to afOpenFile(3dm) or its equivalent. track is an integer which identifies an audio track in handle. Since all currently supported file formats contain only one audio track, the value AF_DEFAULT_TRACK should always be used here. sampfmt an integer constant w... |