| ThresholdSquire
 
  
 
                USA44 Posts
 | 
                    
                      |  Posted - Apr 16 2005 :  7:30:50 PM     
 |  
                      | 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
 |  | 
              
                | AlmarModerator
 
    
 
                Netherlands192 Posts
 | 
                    
                      |  Posted - Apr 18 2005 :  3:22:24 PM         
 |  
                      | 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 :) 
 
 |  
                      |  |  | 
              
                | ThresholdSquire
 
  
 
                USA44 Posts
 | 
                    
                      |  Posted - Apr 19 2005 :  01:03:18 AM     
 |  
                      | 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."
 |  
                      |  |  |