Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DirectSound, SencondaryBuffer->Read(...) problem

Status
Not open for further replies.

frante

Programmer
Jul 24, 2006
1
0
0
PL
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!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top