merge mappers from FCEU-mm
[fceu.git] / mappers / 24and26.c
index 3368856..71fb139 100644 (file)
@@ -16,6 +16,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ *
+ * VRC-6
+ *
  */
 
 #include "mapinc.h"
@@ -222,7 +225,6 @@ static void DoSawV(void)
    }
 }
 
-#if 0
 static INLINE void DoSQVHQ(int x)
 {
  int32 V;
@@ -292,7 +294,6 @@ static void DoSawVHQ(void)
  }
  CVBC[2]=SOUNDTS;
 }
-#endif
 
 
 void VRC6Sound(int Count)
@@ -306,7 +307,6 @@ void VRC6Sound(int Count)
      CVBC[x]=Count;
 }
 
-#if 0
 void VRC6SoundHQ(void)
 {
     DoSQV1HQ();
@@ -319,21 +319,19 @@ void VRC6SyncHQ(int32 ts)
  int x;
  for(x=0;x<3;x++) CVBC[x]=ts;
 }
-#endif
 
 static void VRC6_ESI(void)
 {
         GameExpSound.RChange=VRC6_ESI;
         GameExpSound.Fill=VRC6Sound;
-        GameExpSound.HiFill=0;//VRC6SoundHQ;
-        GameExpSound.HiSync=0;//VRC6SyncHQ;
+        GameExpSound.HiFill=VRC6SoundHQ;
+        GameExpSound.HiSync=VRC6SyncHQ;
 
         memset(CVBC,0,sizeof(CVBC));
         memset(vcount,0,sizeof(vcount));
         memset(dcount,0,sizeof(dcount));
         if(FSettings.SndRate)
         {
-#if 0
          if(FSettings.soundq>=1)
          {
           sfun[0]=DoSQV1HQ;
@@ -341,7 +339,6 @@ static void VRC6_ESI(void)
           sfun[2]=DoSawVHQ;
          }
          else
-#endif
          {
           sfun[0]=DoSQV1;
           sfun[1]=DoSQV2;