EasyManua.ls Logo

Creative AWE32 - Page 82

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 81
Copyright Creative Technology Ltd., 1994-1996 Version 3.00
}
}
void SetEffects( void )
//
// Configure the hardware with current effects.
//
{
CParamObject param;
LRESULT lResult;
param.m_TypeIndex = m_CurEfxType;
param.m_VariIndex[0] = m_CurTypeVari[0];
param.m_VariIndex[1] = m_CurTypeVari[1];
param.m_VariIndex[2] = m_CurTypeVari[2];
param.m_VariIndex[3] = m_CurTypeVari[3];
param.m_VariIndex[4] = m_CurTypeVari[4];
param.m_VariIndex[5] = m_CurTypeVari[5];
// TO DO: Display HOUR GLASS
lResult = AWEManager(hID, AWE_SELECT_EFX_EX,
(LPARAM)(LPPARAMOBJECT) &param, 0L);
if (lResult != AWE_NO_ERR)
{
// TO DO:
// DisplayErrorMsg( lResult );
}
// TO DO: Restore normal arrow cursor
}
void SetUserBank( int nUBNum, char *filename, int nStrlen )
//
// Configure the User Bank.
//
{
CBufferObject buffer;
LRESULT lResult;
// validate the range first!
m_CurUserBank = min( MAX_USER_BANK, max( nUBNum, 1 ) );
// TO DO: Display HOUR GLASS
buffer.m_Size = nStrlen;
buffer.m_Flag = OPER_FILE;
buffer.m_Buffer = (LPSTR)filename;
lResult = AWEManager(hID,AWE_LOAD_USER_BANK,(LPARAM)(WORD)nUBNum,
(LPARAM)(LPBUFFEROBJECT)&buffer);
if (lResult != AWE_NO_ERR)
{
// TO DO:
// DisplayErrorMsg( lResult );
}
else
{
// Update the global user bank descriptor buffer!
GetUBankDescriptor( nUBNum );
}
// TO DO: Restore normal arrow cursor
}
void SetInstr( int nUBNum, int nINum, int nFINum, char *filename,
int nStrlen )
//
// Download an instrument from a bank file.
// nFINum - Instrument number from the SBK file to download from.
// nINum - Instrument number in the nUBNum bank to download to.
//
{
char scratch[BUF_SIZE];

Table of Contents