|
-
Jan 8th, 2000, 02:59 AM
#1
Thread Starter
Member
I have a 60 meg wav file that I need to play using Direct Sound. All goes well except that it takes 5 minutes for the sound to load. I have 128 megs of ram. My question is how would I make it so that Direct Sound doesn't try loading the entire file at once?
The cooperative level is set to: DSSCL_NORMAL
Then for my buffer description I have:
bufferDesc.lFlags = DSBCAPS_CTRLFREQUENCY Or DSBCAPS_CTRLPAN Or DSBCAPS_CTRLVOLUME Or DSBCAPS_STATIC
This is my code for the creation of the actual buffer:
Set m_dsBuffer(i) = m_ds.CreateSoundBufferFromFile(sfile, bufferDesc, waveFormat)
In the SDK I read that the flag DSBCAPS_STATIC tells Direct Sound to load the entire file into memory so I took it out but it still took 5 minutes for the program to start while the sound was being loaded.
I would prefer to do everything in Direct Sound because I need to mix multiple sounds.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|