Diff for /np2/macosx/soundmng.cpp between versions 1.7 and 1.9

version 1.7, 2003/11/14 07:37:29 version 1.9, 2004/01/23 17:37:39
Line 6 Line 6
 #include        "soundmng.h"  #include        "soundmng.h"
 #include        "sound.h"  #include        "sound.h"
 #if defined(VERMOUTH_LIB)  #if defined(VERMOUTH_LIB)
 #include        "vermouth.h"  #include        "commng.h"
   #include        "cmver.h"
 #endif  #endif
   
 #include        "soundrecording.h"  #include        "soundrecording.h"
Line 33  static BOOL  QS_Avail = FALSE; Line 34  static BOOL  QS_Avail = FALSE;
 static  _QSOUND         QSound;  static  _QSOUND         QSound;
 static  BOOL            QSound_Playing = FALSE;  static  BOOL            QSound_Playing = FALSE;
   
 #if defined(VERMOUTH_LIB)  
                 MIDIMOD         vermouth_module = NULL;  
 #endif  
   
 static  void                            (PARTSCALL *fnmix)(SINT16 *dst,  static  void                            (PARTSCALL *fnmix)(SINT16 *dst,
                                                                                                 const SINT32 *src, UINT size);                                                                                                  const SINT32 *src, UINT size);
   
Line 201  static void SoundBuffer_Term(void) { Line 198  static void SoundBuffer_Term(void) {
 UINT soundmng_create(UINT rate, UINT ms) {  UINT soundmng_create(UINT rate, UINT ms) {
   
         UINT    samples;          UINT    samples;
 #if defined(VERMOUTH_LIB)  
         UINT    num;  
 #endif  
   
         QSound_Playing = FALSE;          QSound_Playing = FALSE;
   
Line 228  UINT soundmng_create(UINT rate, UINT ms) Line 222  UINT soundmng_create(UINT rate, UINT ms)
                 goto qsinit_err;                  goto qsinit_err;
         }          }
 #if defined(VERMOUTH_LIB)  #if defined(VERMOUTH_LIB)
         vermouth_module = midimod_create(rate);          cmvermouth_load(rate);
         for (num=0; num<128; num++) {  
                 midimod_loadprogram(vermouth_module, num);  
                 midimod_loadrhythm(vermouth_module, num);  
         }  
 #endif  #endif
         return(samples);          return(samples);
   
Line 248  void soundmng_destroy(void) { Line 238  void soundmng_destroy(void) {
                 SoundBuffer_Term();                  SoundBuffer_Term();
                 SoundChannel_Term();                  SoundChannel_Term();
 #if defined(VERMOUTH_LIB)  #if defined(VERMOUTH_LIB)
                 midimod_destroy(vermouth_module);                  cmvermouth_unload();
                 vermouth_module = NULL;  
 #endif  #endif
         }          }
 }  }
Line 294  const SINT32 *src; Line 283  const SINT32 *src;
 }  }
 #endif  #endif
   
   #ifndef SUPPORT_WAVEMIX
 // --------------------------------------------------------------------------  // --------------------------------------------------------------------------
 #include <QuickTime/Movies.h>  #include <QuickTime/Movies.h>
 #include "np2.h"  #include "np2.h"
Line 363  void soundmng_pcmstop(UINT num) { Line 353  void soundmng_pcmstop(UINT num) {
     }      }
 }  }
   
   #endif

Removed from v.1.7  
changed lines
  Added in v.1.9


RetroPC.NET-CVS <cvs@retropc.net>