cave-story-solaris/src/Sound.h
Clownacy 5a9492166d Restored the new SDL2 audio system
While I was at it, I overhauled the thing and found a bunch of
optimisations,
2019-09-03 22:29:57 +01:00

20 lines
585 B
C

#pragma once
#include <stddef.h>
#include "WindowsWrapper.h"
#include "Backends/Audio.h"
#include "PixTone.h"
#define SE_MAX 160 // According to the Organya source code release, this is the real name for this constant
extern AudioBackend_Sound *lpSECONDARYBUFFER[SE_MAX];
BOOL InitDirectSound(void);
void EndDirectSound(void);
void PlaySoundObject(int no, int mode);
void ChangeSoundFrequency(int no, unsigned long rate);
void ChangeSoundVolume(int no, long volume);
void ChangeSoundPan(int no, long pan);
int MakePixToneObject(const PIXTONEPARAMETER *ptp, int ptp_num, int no);