SB AWE32 Developer's Information Pack
PART III Windows Driver API
••
65
Copyright
Creative Technology Ltd., 1994-1996
Version 3.00
hUserID
Curerent ID assigned to the application by AWE Manager during
initialization.
Remarks
None.
Return
The return value would be AWE_NO_ERR if the operation is successful, and
an error code otherwise.
See Also
AWE_VIENNA_START
AWE_VIENNA_LOAD_SAMPLE
Actions
Application sends this message to AWE Manager when it need to load user
samples. The samples are streamed in the form of sample packets,
ViSmplObject.
Parameters
lParam1
Specify a far pointer to CViSmplObject, LPVISMPLOBJECT. When the
application calls the manager, the following fields of the CViSmplObject
structure are used,
Member
Remarks
dwcbSize
Size of the stream buffer ( including the header information)
dwFlag
Set to zero
dwSampleHandle
This field will be filled with a handle to the sample after the
first call to stream sample. This handle will be used to
identify the sample when calling other related functions.
dwSampleOffset
Set to zero.
dwFormatTag
Wave format type of the sample. Only
WAVE_FORMAT_PCM is supported.
dwSamplePerSec
Sampling rate of the sample. Support any Windows
supported sampling rate. The Manager will internally convert
to 44100Hz.
dwBitsPerSample
Bits per Sample. Currently only support 16- bit data. For 8-
bit sample, application need to convert it to 16-bit.
dwChannels
Number of channels. Currently only support MONO. The
value of this field is always set to 1
dwSampleSize
Total samples to be streamed, in terms of number of words.
iSample
This is the place holder where the actual samples are stored
starting from here.
lParam2
Unused.
hUserID