In Progress

Convert C++ DirectSound 3D sample

Convert C++ DirectSound 3D sample

We need to have a nice interface for the DirectX 3d-Sound sample of the DirectX9 SDK. This should result into a DLL. The Idea is to play four streams simultaneously, on each stream I like to say where the stream should come from. There are four directions: front-left, front-right, back-left, back-right. I like to set the direction of each stream.

The DLL has to be compatible with Windows XP, 2003 Server and Vista.

There is one little interface that starts the four streams and gets the steaming data from a callback-function.

The DLL should work with 16 Bit PCM data.

The DLL should work with 8000, 160000, and 44100 kHz sample frequency.

The DLL-Interface should be made as follows:

// enum soundcards

int WINAPI S3DGetNumSoundcards();

void WINAPI S3DGetSoundcardName( int cardIdx, char* buf, int bufSize );

// init soundcard

int WINAPI S3DInitSoundCard( LPCSTR sndCardName, LPFNS3D pfnDataCB );

void WINAPI S3DExit( );

// start operation

void WINAPI S3DStart( int sampleFreq, int frameSize );

void WINAPI S3DStop ( );

// callback function

typedef BOOL (CALLBACK * LPFNS3D)(int, short*, int );

Example:

// sound callback, will be called from the dll to get data

BOOL MySoundCallback( int channel, short* spkBuf, int numSamples )

{

// prepare some white noise

short randBuf[1024];

for( int i=0; i<1024; i++ ) {

randBuf[i] = (short)rand();

}

// copy the noise to speaker

memcpy( spkBuf, randBuf, bufSize*2 );

return 0;

}

Budget: Max. 1000,- US$

Timeframe: Very urgend!

Skills: Audio Services, C Programming

See more: directsound example, directsound sample, directsound, directsound winapi, directx sound sample, sample directsound, directx sound, directsound examples, directsound sound, directsound 8000 example, csound directsound, directsound dll, directx directsound, directsound frequency 8000, int i, idea sdk, bit operation, bit frequency, max services, max left, directsound example winapi, winapi channel sound, directsound convert pcm, sample front left right, directsound enum soundcards

About the Employer:
( 13 reviews ) Mannheim, Germany

Project ID: #227788

Awarded to:

mswiczar

Hi, i could do it. I am the right person to complete this job. I have a deep understand of directsound, winmm.dll

$850 USD in 10 days
(6 Reviews)
5.9

3 freelancers are bidding on average $883 for this job

bigdragonfly

hi, I am familiar with directx sdk, I can accomplish it.

$800 USD in 30 days
(2 Reviews)
2.5
aldenml

I have experience working with DirectShow and DirectSound. We can discuss implementation details.

$1000 USD in 15 days
(0 Reviews)
0.0