Home » Community » Forums » » Streaming Wave Files with DirectSound
  Intel sponsors gamedev.net search:   
[Control Panel] [Register] [Bookmarks] [Who's Online] [Active Topics] [Stats] [FAQ] [Search]

Add Forum to Favorites |  Send Topic To a Friend | View Forum FAQ | Track this topic


 Last Thread Next Thread 
 Streaming Wave Files with DirectSound
Post Reply 
So... would you just keep the entire (large) wav file in application memory, and then just put little pieces of it at a time into the sound buffer? Can't you just specify that you want the sound buffer to reside in system memory?

 User Rating: 1019   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

So... would you just keep the entire (large) wav file in application memory, and then just put little pieces of it at a time into the sound buffer? Can't you just specify that you want the sound buffer to reside in system memory?

 User Rating: 1019   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

The DirectSound documentation provides the information you need.
MSDN
The SDK also contains a streaming sample ->(DXSDK_ROOT)/samples/multimedia/DirectSound/StreamData

Hope this helps,
Pat

PS: you should always try MSDN and Google first. The DX SDK also has numerous samples that you can always check out first.

 User Rating: 1710   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

Hi, I can't see how do you write simultaneously multiple secondary buffers in order to play different waves at once.

De - Fre -> f.fehner@vikingsound.com

 User Rating: 1015    Report this Post to a Moderator | Link

Hi,
My name is Michael. I am trying to find a place where I can download a Visual C++ Source Code example of a program capable of playing 2 or more different wav files at the same time using IDirectSound. Do you know of any coding examples I could get (where all the dll and header files are available and have no errors)?

Thank you,
Michael S. Lowe


 User Rating: 1015   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

Anybody got a "plain C" ( #define CINTERFACE ) source example for directsound streaming ?

I'm only able to find C++ examples, but not C ones...

I found some, but not regarding (audio)data streaming.
Infact the audio engine is basically done, but has not streaming capability yet.

Thanks in advance.


 User Rating: 1015   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

in plain c we have to use the vtable to get the function pointers

example in c++
ThisSound->DS83Dbuffer->GetCurrentPosition(&readcursor,&writecursor);

example in c
ThisSound->DS83Dbuffer->lpVtbl->GetCurrentPosition(ThisSound->DS83Dbuffer,&readcursor,&writecursor);

or use the dx macros (the entire "IDirectSoundBuffer_GetCurrentPosition" is the function (really a macro) name, a macro for the line above)
IDirectSoundBuffer_GetCurrentPosition(ThisSound->DS83Dbuffer,&readcursor,&writecursor);

As long as your browser supports com, you can use dsound.



 User Rating: 1015    Report this Post to a Moderator | Link

All times are ET (US)

Post Reply
 Last Thread Next Thread 
Forum Rules:
You may not post new threads
You may post replies
You may not edit your posts
You may not use HTML in your posts
Jump To:
Administrative Options: