Clean-up Organya.cpp
This commit is contained in:
parent
e04d3b8592
commit
5987a5a8d7
2 changed files with 18 additions and 13 deletions
|
@ -456,7 +456,7 @@ void PlayDramObject(unsigned char key, int mode, signed char track)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
OrgData::OrgData()
|
OrgData::OrgData(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
@ -773,7 +773,7 @@ static BOOL nameless_flag;
|
||||||
// タイマー精度を設定する。 (Set timer accuracy.)
|
// タイマー精度を設定する。 (Set timer accuracy.)
|
||||||
// この関数はアプリケーション初期化時に一度呼び出す。 (This function is called once when the application is initialized.)
|
// この関数はアプリケーション初期化時に一度呼び出す。 (This function is called once when the application is initialized.)
|
||||||
/*■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
|
/*■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
|
||||||
BOOL InitMMTimer()
|
BOOL InitMMTimer(void)
|
||||||
{
|
{
|
||||||
TIMECAPS tc;
|
TIMECAPS tc;
|
||||||
MMRESULT ret;
|
MMRESULT ret;
|
||||||
|
@ -846,7 +846,7 @@ VOID CALLBACK TimerProc(UINT uTID,UINT uMsg,DWORD_PTR dwUser,DWORD_PTR dwParam1,
|
||||||
// タイマーリソースを開放する。 (Release timer resources.)
|
// タイマーリソースを開放する。 (Release timer resources.)
|
||||||
// アプリケーション終了時に一度呼び出す。 (Call once when the application ends.)
|
// アプリケーション終了時に一度呼び出す。 (Call once when the application ends.)
|
||||||
/*■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
|
/*■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
|
||||||
BOOL QuitMMTimer()
|
BOOL QuitMMTimer(void)
|
||||||
{
|
{
|
||||||
MMRESULT ret;
|
MMRESULT ret;
|
||||||
|
|
||||||
|
@ -876,7 +876,7 @@ long play_p;
|
||||||
NOTELIST *play_np[MAXTRACK];
|
NOTELIST *play_np[MAXTRACK];
|
||||||
long now_leng[MAXMELODY];
|
long now_leng[MAXMELODY];
|
||||||
|
|
||||||
void OrgData::PlayData()
|
void OrgData::PlayData(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
@ -1029,7 +1029,7 @@ BOOL ChangeOrganyaVolume(signed int volume)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void StopOrganyaMusic()
|
void StopOrganyaMusic(void)
|
||||||
{
|
{
|
||||||
if (lpDS == NULL)
|
if (lpDS == NULL)
|
||||||
return;
|
return;
|
||||||
|
@ -1048,12 +1048,12 @@ void StopOrganyaMusic()
|
||||||
Sleep(100);
|
Sleep(100);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetOrganyaFadeout()
|
void SetOrganyaFadeout(void)
|
||||||
{
|
{
|
||||||
bFadeout = TRUE;
|
bFadeout = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void EndOrganya()
|
void EndOrganya(void)
|
||||||
{
|
{
|
||||||
if (lpDS == NULL)
|
if (lpDS == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#ifdef FIX_BUGS
|
||||||
|
// The original source code forgot to set this (you can tell because, in the original EXE,
|
||||||
|
// the DSBUFFERDESC structs in Organya.cpp have a different size to the ones in Sound.cpp)
|
||||||
|
#define DIRECTSOUND_VERSION 0x500
|
||||||
|
#endif
|
||||||
#include <dsound.h>
|
#include <dsound.h>
|
||||||
|
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
@ -11,14 +16,14 @@
|
||||||
extern BOOL g_mute[MAXTRACK]; // Used by the debug Mute menu
|
extern BOOL g_mute[MAXTRACK]; // Used by the debug Mute menu
|
||||||
|
|
||||||
BOOL MakeOrganyaWave(signed char track, signed char wave_no, signed char pipi);
|
BOOL MakeOrganyaWave(signed char track, signed char wave_no, signed char pipi);
|
||||||
void OrganyaPlayData();
|
void OrganyaPlayData(void);
|
||||||
void SetPlayPointer(long x);
|
void SetPlayPointer(long x);
|
||||||
BOOL LoadOrganya(const char *name);
|
BOOL LoadOrganya(const char *name);
|
||||||
void SetOrganyaPosition(unsigned int x);
|
void SetOrganyaPosition(unsigned int x);
|
||||||
unsigned int GetOrganyaPosition();
|
unsigned int GetOrganyaPosition(void);
|
||||||
void PlayOrganyaMusic();
|
void PlayOrganyaMusic(void);
|
||||||
BOOL ChangeOrganyaVolume(signed int volume);
|
BOOL ChangeOrganyaVolume(signed int volume);
|
||||||
void StopOrganyaMusic();
|
void StopOrganyaMusic(void);
|
||||||
void SetOrganyaFadeout();
|
void SetOrganyaFadeout(void);
|
||||||
BOOL StartOrganya(LPDIRECTSOUND lpDS, const char *wave_filename);
|
BOOL StartOrganya(LPDIRECTSOUND lpDS, const char *wave_filename);
|
||||||
void EndOrganya();
|
void EndOrganya(void);
|
||||||
|
|
Loading…
Add table
Reference in a new issue