|
||||||||||||||||||
Add Forum to Favorites | Send Topic To a Friend | View Forum FAQ | Track this topic |
Last Thread Next Thread ![]() |
| Streaming Wave Files with DirectSound |
|
![]() Mafian Member since: 3/5/2002 |
||||
|
|
||||
| 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? |
||||
|
||||
![]() Mafian Member since: 3/5/2002 |
||||
|
|
||||
| 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? |
||||
|
||||
![]() darookie Member since: 9/17/2001 From: Mannheim, Germany |
||||
|
|
||||
| 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. |
||||
|
||||
![]() Anonymous Poster |
||||
|
||||
| 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 |
||||
|
||||
![]() VCProgrammer Member since: 2/20/2005 From: USA |
||||
|
|
||||
| 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 |
||||
|
||||
![]() Litobyte Member since: 6/30/2006 From: Milano, Italy |
||||
|
|
||||
| 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. |
||||
|
||||
![]() Anonymous Poster |
||||
|
||||
| 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. |
||||
|
||||
All times are ET (US)![]() |
Last Thread Next Thread ![]() |
|