Post

 Resources 

Console

Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VBGamer
 VBGamer
 Playing the same sound over itself in DX8
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Threshold
Squire

USA
44 Posts

Posted - Apr 16 2005 :  7:30:50 PM  Show Profile  Reply with Quote
With DirectSound7 and DirectAudio (DirectX 8), sound buffers can be loaded and then played. However, what if I want to play that same sound buffer on top of itself? I certainly don't want to load it into two separate buffers as that would be extremely inefficient and bulky.

Does anyone know how to do this?

EDIT: I believe this may have something to do with secondary buffers...?

Life is short. They say "don't waste it, have fun." They're right, don't waste it...but DO redefine "fun."

Edited by - Threshold on Apr 16 2005 7:41:47 PM

Almar
Moderator

Netherlands
192 Posts

Posted - Apr 18 2005 :  3:22:24 PM  Show Profile  Visit Almar's Homepage  Send Almar an ICQ Message  Reply with Quote
You'll need a second buffer for it. One sound, one buffer. But you can make a copy (I beleive) using a secondary buffer, or using clonebuffer or something. Just think as a buffer of an isntance of soundrecorder.. multiple instances can play, but one instance can only play one file :)

Go to Top of Page

Threshold
Squire

USA
44 Posts

Posted - Apr 19 2005 :  01:03:18 AM  Show Profile  Reply with Quote
Haha...even though the news wasn't exactly what I wanted to hear , thanks for the info!

Life is short. They say "don't waste it, have fun." They're right, don't waste it...but DO redefine "fun."
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
VBGamer © Go To Top Of Page
This page was generated in 0.11 seconds. Snitz Forums 2000

Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.