home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / graphics / directx / dsstream / readme.txt < prev    next >
Text File  |  1997-07-14  |  1KB  |  29 lines

  1. DirectSound Streaming Test (dsstream)
  2. -------------------------------------
  3.  
  4. This sample illustrates how to play a long sound using a streaming
  5. DirectSoundBuffer.  Because of this design, it may not work correctly when
  6. using very short sounds, like only 1 or 2 seconds long.  Those files are 
  7. more appropriate for static buffers; see DirectSound Mixing Test (dsshow)
  8. for examples of how to code such buffers.
  9.  
  10. Open a .wav files using the File.Open dialog.  The UI of the sample only
  11. allows you to open one file at a time; however, this is a limitation of the
  12. sample, not a limitation of DirectSound.
  13.  
  14. There are buttons to Play and Stop the file, and a checkbox to indicate
  15. whether the file should be looped or not.  Regardless of the checkbox,
  16. the DirectSoundBuffer will be played with looping since a streaming buffer
  17. is being used.
  18.  
  19. There are sliders to control the sound's frequency, pan, and volume settings.
  20. In addition, there is a slider indicating the progress through the sound
  21. data.
  22.  
  23. The last thing to know: you can toggle Options.Enumerate Drivers, which
  24. will show you what objects DirectSoundEnumerate will list for you, and allow
  25. you to select one.  This only happens when you start up Dsstream, so to see
  26. the effect, select this menu item, exit Dsstream, and then run Dsstream
  27. again.
  28.  
  29.