|
Copyright © 2001-2008 MultiMedia Soft
Return to Table of contents
|
|
[Visual Basic]
control.LoadSoundFromRawFile (
nPlayer as Integer,
strFileName as String,
nEncodeMode as enumRAWEncodeModes,
bIsBigEndian as enumBoolean,
nFrequency as Long,
nChannels as Long
) as enumErrorCodes
|
|
[C++]
short control.LoadSoundFromRawFile (
short nPlayer,
LPCTSTR strFileName,
short nEncodeMode,
short bIsBigEndian,
long nFrequency,
long nChannels
);
|
|
Parameter
|
Description
|
|
|
|
|
nPlayer
|
Number representing the zero-based index of the player that will load the sound
|
|
strFilename
|
String containing the name of the song file to load. It can be a full path name (ex. c:\mysounds\sound.mp3) or a filename (ex: sound.mp3) if the SoundsDirectory property has already been specified.
|
|
nEncodeMode
|
Encode mode used to encode the RAW file.
Supported values are the following:
| |||||||||||||||||||||||||||||||||
|
bIsBigEndian
|
Boolean flag that tells if bits order inside the RAW file are little-endian or big-endian
Supported values are the following:
| |||||||||||||||||||||||||||||||||
|
nFrequency
|
Sample rate of the RAW file (e.g. 44100)
| |||||||||||||||||||||||||||||||||
|
nChannels
|
Number of channels of the RAW file: 1 for Mono or 2 for Stereo
|
|
Value
|
Meaning
|
|
|
|
|
enumErrorCodes.NOERROR (0)
|
The song file has been loaded successfully.
|
|
Negative value
|
An error occurred: see the LastError property for further error details or for a list of the possible error values.
|