Merge branch 'accurate' into accurateAddStddefWhenNeeded

# Conflicts:
#	src/Sound.cpp
This commit is contained in:
Gabriel Ravier 2020-06-30 23:47:23 +02:00
commit 08062e9823
7 changed files with 3 additions and 13 deletions

View file

@ -7,11 +7,7 @@
#include "CommonDefines.h" #include "CommonDefines.h"
#include "Draw.h" #include "Draw.h"
#include "Frame.h"
#include "Game.h"
#include "Main.h" #include "Main.h"
#include "Map.h"
#include "Stage.h"
BACK gBack; BACK gBack;
int gWaterY; int gWaterY;

View file

@ -2,7 +2,6 @@
#include <stddef.h> #include <stddef.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h>
#include <string.h> #include <string.h>
#include <ddraw.h> #include <ddraw.h>

View file

@ -2,7 +2,6 @@
#include <stddef.h> #include <stddef.h>
#include <stdio.h> #include <stdio.h>
#include <string.h>
#if defined(_MSC_VER) && _MSC_VER >= 1500 // Newer versions of Visual Studio don't support anything earlier than DirectInput8 #if defined(_MSC_VER) && _MSC_VER >= 1500 // Newer versions of Visual Studio don't support anything earlier than DirectInput8
#define DIRECTINPUT_VERSION 0x800 #define DIRECTINPUT_VERSION 0x800

View file

@ -1,6 +1,5 @@
#pragma once #pragma once
#include "CommonDefines.h"
#include "WindowsWrapper.h" #include "WindowsWrapper.h"
#include "Draw.h" #include "Draw.h"

View file

@ -7,7 +7,6 @@
#include "Organya.h" #include "Organya.h"
#include <stddef.h> #include <stddef.h>
#include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
@ -256,7 +255,7 @@ void ChangeOrganPan(unsigned char key, unsigned char pan, signed char track) //
if (lpDS == NULL) if (lpDS == NULL)
return; return;
if (old_key[track] != PANDUMMY) if (old_key[track] != KEYDUMMY)
lpORGANBUFFER[track][old_key[track] / 12][key_twin[track]]->SetPan((pan_tbl[pan] - 0x100) * 10); lpORGANBUFFER[track][old_key[track] / 12][key_twin[track]]->SetPan((pan_tbl[pan] - 0x100) * 10);
} }
@ -265,7 +264,7 @@ void ChangeOrganVolume(int no, long volume, signed char track) // 300がMAXで30
if (lpDS == NULL) if (lpDS == NULL)
return; return;
if (old_key[track] != VOLDUMMY) if (old_key[track] != KEYDUMMY)
lpORGANBUFFER[track][old_key[track] / 12][key_twin[track]]->SetVolume((volume - 0xFF) * 8); lpORGANBUFFER[track][old_key[track] / 12][key_twin[track]]->SetVolume((volume - 0xFF) * 8);
} }

View file

@ -12,7 +12,7 @@ equivalents.
#include "Sound.h" #include "Sound.h"
#include <math.h> #include <stddef.h>
#include <stddef.h> #include <stddef.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View file

@ -1,7 +1,5 @@
#pragma once #pragma once
#include <stddef.h>
#ifndef DIRECTSOUND_VERSION #ifndef DIRECTSOUND_VERSION
#define DIRECTSOUND_VERSION 0x500 #define DIRECTSOUND_VERSION 0x500
#endif #endif