shithub: cstory

ref: 34d3b8e664b3bc1a8e922526c2ac4459d4b552ba
dir: /src/PixTone.h/

View raw version
#pragma once

#include "WindowsWrapper.h"

typedef struct PIXTONEPARAMETER2
{
	int model;
	double num;
	int top;
	int offset;
} PIXTONEPARAMETER2;

typedef struct PIXTONEPARAMETER
{
	int use;
	int size;
	PIXTONEPARAMETER2 oMain;
	PIXTONEPARAMETER2 oPitch;
	PIXTONEPARAMETER2 oVolume;
	int initial;
	int pointAx;
	int pointAy;
	int pointBx;
	int pointBy;
	int pointCx;
	int pointCy;
} PIXTONEPARAMETER;

extern signed char gWaveModelTable[6][0x100];

void MakeWaveTables(void);
BOOL MakePixelWaveData(const PIXTONEPARAMETER *ptp, unsigned char *pData);