
It was likely a race condition between the game thread writing to 'organya_timer', and the audio thread reading it. ...I really need to rethink the API for this Organya-synchronisation thing.
23 lines
645 B
C
23 lines
645 B
C
#pragma once
|
|
|
|
#include "WindowsWrapper.h"
|
|
|
|
#define MAXTRACK 16
|
|
#define MAXMELODY 8
|
|
#define MAXDRAM 8
|
|
|
|
extern BOOL g_mute[MAXTRACK]; // Used by the debug Mute menu
|
|
|
|
BOOL MakeOrganyaWave(signed char track, signed char wave_no, signed char pipi);
|
|
void OrganyaPlayData(void);
|
|
void SetPlayPointer(long x);
|
|
BOOL LoadOrganya(const char *name);
|
|
void SetOrganyaPosition(unsigned int x);
|
|
unsigned int GetOrganyaPosition(void);
|
|
void PlayOrganyaMusic(void);
|
|
BOOL ChangeOrganyaVolume(signed int volume);
|
|
void StopOrganyaMusic(void);
|
|
void SetOrganyaFadeout(void);
|
|
BOOL StartOrganya(const char *wave_filename);
|
|
void EndOrganya(void);
|
|
void UpdateOrganya(void);
|