mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-23 20:09:46 +03:00
* Initial commit.
:)
This commit is contained in:
33
source/Sound/SoundEngine.hpp
Normal file
33
source/Sound/SoundEngine.hpp
Normal file
@@ -0,0 +1,33 @@
|
||||
#pragma once
|
||||
|
||||
#include "SoundSystem.hpp"
|
||||
#include "SoundRepository.hpp"
|
||||
#include "Options.hpp"
|
||||
#include "Random.hpp"
|
||||
|
||||
// Platform specific type for the sound system.
|
||||
#define SOUND_SYSTEM_TYPE SoundSystem
|
||||
//#define SOUND_SYSTEM_TYPE SoundSystemSL
|
||||
//#define SOUND_SYSTEM_TYPE SoundSystemWindows
|
||||
|
||||
// @TODO: SoundSystemSL - Use this for the Android port
|
||||
// @TODO: SoundSystemWindows - Sound system for Windows.
|
||||
|
||||
class SoundEngine
|
||||
{
|
||||
public:
|
||||
SoundEngine();
|
||||
void init(Options*);
|
||||
void play(const std::string& name);
|
||||
void play(const std::string& name, float, float, float, float, float);
|
||||
|
||||
public:
|
||||
SOUND_SYSTEM_TYPE m_soundSystem;
|
||||
Options* m_pOptions;
|
||||
int field_40 = 0;
|
||||
Random m_random;
|
||||
SoundRepository m_repository;
|
||||
int field_A1C = 0;
|
||||
int field_A20;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user