mirror of
https://github.com/k4zmu2a/SpaceCadetPinball.git
synced 2025-09-06 00:10:15 +02:00
SDL port v1, Windows only for now.
Working: graphics, sound, music (3dpb only). Not working: GUI, user settings.
This commit is contained in:
parent
10c83e8bf5
commit
a09ea75d80
30 changed files with 872 additions and 4172 deletions
|
@ -1,28 +1,18 @@
|
|||
#pragma once
|
||||
#include "WaveMix.h"
|
||||
|
||||
|
||||
class Sound
|
||||
{
|
||||
public:
|
||||
static int Init(HINSTANCE hInstance, int voices, void (* someFuncPtr)(int, MIXWAVE*, int));
|
||||
static int Init(int voices);
|
||||
static void Enable(int channelFrom, int channelTo, int enableFlag);
|
||||
static void Idle();
|
||||
static void Activate();
|
||||
static void Deactivate();
|
||||
static void Close();
|
||||
static void PlaySound(MIXWAVE* wavePtr, int minChannel, int maxChannel, unsigned int dwFlags, int16_t loops);
|
||||
static MIXWAVE* LoadWaveFile(LPCSTR lpName);
|
||||
static void FreeSound(MIXWAVE* wave);
|
||||
static void Flush(int channelFrom, int channelTo);
|
||||
static void NullCallback(int a1, MIXWAVE* a2, int a3);
|
||||
static LRESULT __stdcall SoundCallBackWndProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam);
|
||||
static void PlaySound(Mix_Chunk* wavePtr, int minChannel, int maxChannel, unsigned int dwFlags, int16_t loops);
|
||||
static Mix_Chunk* LoadWaveFile(LPCSTR lpName);
|
||||
static void FreeSound(Mix_Chunk* wave);
|
||||
private:
|
||||
static int num_channels;
|
||||
static HWND wavemix_window;
|
||||
static HANDLE pMem;
|
||||
static unsigned int enabled_flag;
|
||||
static int channel_time[8];
|
||||
static MIXWAVE* channel_wavePtr[8];
|
||||
static void (* callback_ptr)(int, MIXWAVE*, int);
|
||||
static HMODULE HInstance;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue