EasyManua.ls Logo

Creative AWE32 - PART IV MIDI NRPN Implementation

Creative AWE32
110 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
SB AWE32 Developer's Information Pack PART III Windows Driver API 82
Copyright Creative Technology Ltd., 1994-1996 Version 3.00
CBufferObject buffer;
CParamObject param;
LRESULT lResult;
// validate the range first!
nINum= min( MAX_USER_BANK, max( nUBNum, 0 ) );
nINum= min( MAX_INSTR, max( nINum, 0 ) );
// TO DO: Display HOUR GLASS
param.m_UBankIndex = nUBNum;
param.m_InstrIndex = nINum;
buffer.m_SizeUsed = nFINum;
buffer.m_Size = nStrlen;
buffer.m_Flag = OPER_FILE;
buffer.m_Buffer = (LPSTR)filename;
lResult = AWEManager(hID,AWE_LOAD_USER_INSTR,(LPARAM)(LPPARAMOBJECT)
&param,(LPARAM)(LPBUFFEROBJECT)&buffer);
if (lResult != AWE_NO_ERR)
{
// TO DO:
// DisplayErrorMsg( lResult );
}
else
{
// TO DO: Update the instrument descriptor if necessary!
}
// TO DO: Restore normal arrow cursor
}

Table of Contents