mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-04 19:36:43 +03:00
47 lines
1.1 KiB
C++
47 lines
1.1 KiB
C++
/********************************************************************
|
|
Minecraft: Pocket Edition - Decompilation Project
|
|
Copyright (C) 2023 iProgramInCpp
|
|
|
|
The following code is licensed under the BSD 1 clause license.
|
|
SPDX-License-Identifier: BSD-1-Clause
|
|
********************************************************************/
|
|
|
|
#pragma once
|
|
|
|
#include "SoundSystem.hpp"
|
|
#include "SoundRepository.hpp"
|
|
#include "Options.hpp"
|
|
#include "Random.hpp"
|
|
|
|
// Platform specific type for the sound system.
|
|
|
|
#ifdef _WIN32
|
|
#include "../../platforms/windows/SoundSystem_windows.hpp"
|
|
#define SOUND_SYSTEM_TYPE SoundSystemWindows
|
|
#else
|
|
#define SOUND_SYSTEM_TYPE SoundSystem
|
|
#endif
|
|
|
|
//#define SOUND_SYSTEM_TYPE SoundSystemSL
|
|
|
|
// @TODO: SoundSystemSL - Use this for the Android port
|
|
|
|
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;
|
|
};
|
|
|