Re: Bernie - mixedlib question
Hi
Sorry Bernie, more questions
The AUDIOENVELOPE structure has now been created, in two contiguous parts, with
a pointer to the first part (an array of AUDIOPOINTS structures), and a pointer
to the second part (the new AUDIO_PARAMS record).
Now I have (including the original c structure)
--/* audio patch structure */
--typedef struct {
-- CHAR szPatchName[32]; /* patch name */
-- UCHAR aSampleNumber[AUDIO_MAX_NOTES]; /* multi-sample table */
-- USHORT nSamples; /* number of samples */
-- UCHAR nVibratoType; /* vibrato type */
-- UCHAR nVibratoSweep; /* vibrato sweep */
-- UCHAR nVibratoDepth; /* vibrato depth */
-- UCHAR nVibratoRate; /* vibrato rate */
-- USHORT nVolumeFadeout; /* volume fadeout */
-- AUDIOENVELOPE Volume; /* volume envelope */
-- AUDIOENVELOPE Panning; /* panning envelope */
-- PAUDIOSAMPLE aSampleTable; /* sample table */
--} AUDIOPATCH, *PAUDIOPATCH;
record("AUDIOPATCH",
"szPatchName : char : 32 " &
"aSampleNumber : uchar : 96 " & --AUDIO_MAX_NOTES
"nSamples : ushort : 1 " &
"nVibratoType : uchar : 1 " &
"nVibratoSweep : uchar : 1 " &
"nVibratoDepth : uchar : 1 " &
"nVibratoRate : uchar : 1 " &
"nVolumeFadeout : ushort : 1 " &
"Volume : STRUCT : AUDIOENVELOPE " &
"Panning : STRUCT : AUDIOENVELOPE " &
"aSampleTable : pointer : 1 " ) --careful here - its actually
specified a pointer to a structure!
--the handle to a created
AUDIOSAMPLE structure?
As you can see, it requires an AUDIENVELOPE structure, and the question is,
do I have to build it by hand again, as you did before?
Cheers
Chris
|
Not Categorized, Please Help
|
|