Hi
I'm using Visual C++ 2005 express with Microsoft Platform SDK and DirectX SDK. What I need is to read a .wav file into an array or a table. I've created a SecondaryBuffer and found out that Read(...) method would be helpful, but i have no clue how to use it. Below is it's description from MS help:
----------------------------------------
C++ public:
Array^ Read(
int bufferStartingLocation,
Type^ returnedDataType,
LockFlag flag,
array<int>^ ranks
);
Parameters
bufferStartingLocation: System.Int32
An integer that represents the offet, in bytes, of where to begin reading from the buffer. This parameter is ignored if LockFlag.FromWriteCursor is specified in the flag parameter.
returnedDataType: System.Type
Value that indicates the Type of the returned array.
flag: Microsoft.DirectX.DirectSound.LockFlag
A LockFlag enumerated value that describes the type of lock to perform.
ranks: System.Int32[]
Array of one to three Int32 values that indicate the dimensions of the returning Array. The maximum number of ranks allowed is three.
----------------------------------------
I've switched to VS from Borland recently and I Would be grateful for help. Some example perhaps ;]
Peace!
I'm using Visual C++ 2005 express with Microsoft Platform SDK and DirectX SDK. What I need is to read a .wav file into an array or a table. I've created a SecondaryBuffer and found out that Read(...) method would be helpful, but i have no clue how to use it. Below is it's description from MS help:
----------------------------------------
C++ public:
Array^ Read(
int bufferStartingLocation,
Type^ returnedDataType,
LockFlag flag,
array<int>^ ranks
);
Parameters
bufferStartingLocation: System.Int32
An integer that represents the offet, in bytes, of where to begin reading from the buffer. This parameter is ignored if LockFlag.FromWriteCursor is specified in the flag parameter.
returnedDataType: System.Type
Value that indicates the Type of the returned array.
flag: Microsoft.DirectX.DirectSound.LockFlag
A LockFlag enumerated value that describes the type of lock to perform.
ranks: System.Int32[]
Array of one to three Int32 values that indicate the dimensions of the returning Array. The maximum number of ranks allowed is three.
----------------------------------------
I've switched to VS from Borland recently and I Would be grateful for help. Some example perhaps ;]
Peace!