#include <RainMusic.h>
Public Methods | |||
| RainDMPerf8 (void) | |||
| ~RainDMPerf8 (void) | |||
| HRESULT | Initialize (char **p_szSongNameArray, UINT uMaxSizeOfArray, IDirectMusicLoader8 **ppLoader) | ||
| HRESULT | SetTrackFile (char *szFile, UINT uIdx, IDirectMusicLoader8 **ppLoader) | ||
| HRESULT | PlayTrack (UINT uIdx, DWORD dwRepeats) | ||
  | |||
| HRESULT | Stop (void) | ||
Protected Attributes | |||
| IDirectMusicPerformance8 * | m_pPerformance | ||
| IDirectMusicSegment8 ** | m_ppSegment | ||
| bool | m_bHavePrimarySegment | ||
Friends | |||
| class | AllAudio | ||
      
  | 
  
| 
 Default Constructor.  | 
  
      
  | 
  
| 
 Default Destructor. Must be called to avoid memory leak.  | 
  
      
  | 
  ||||||||||||||||
| 
 Creates an array of DirectMusic Segements and loads a file into each one. The pPerfMusic object should only have one Segment at a time.  | 
  
      
  | 
  ||||||||||||
| 
 
 
 Plays a sound file from a DirectMusic Segment in the array based off the uIdx paramiter. Make sure to initialze the Segment prior to calling this function by either the RainPerf8::Initialize function by setting it specifically with RainPerf8::SetTrackFile.  | 
  
      
  | 
  ||||||||||||||||
| 
 loads a file into one DirectMusic Segment in the array. Isn't noramally needed as all Segments are initialized in the RainPerf8::Initialize function.  | 
  
      
  | 
  
| 
 Stops all playing Segments.  | 
  
      
  | 
  
| 
 
  | 
  
      
  | 
  
| 
 
  | 
  
      
  | 
  
| 
 
  | 
  
      
  | 
  
| 
 
  | 
  
1.2.11.1 written by Dimitri van Heesch,
 © 1997-2001