fix warnings
This commit is contained in:
parent
19665caead
commit
4f96ec47cd
@ -74,8 +74,7 @@ ALInputDevice::ALInputDevice(
|
|||||||
uint bitsPerSample,
|
uint bitsPerSample,
|
||||||
uint sampleRate
|
uint sampleRate
|
||||||
)
|
)
|
||||||
: al(al),
|
: device(device),
|
||||||
device(device),
|
|
||||||
channels(channels),
|
channels(channels),
|
||||||
bitsPerSample(bitsPerSample),
|
bitsPerSample(bitsPerSample),
|
||||||
sampleRate(sampleRate) {
|
sampleRate(sampleRate) {
|
||||||
|
|||||||
@ -108,7 +108,6 @@ namespace audio {
|
|||||||
|
|
||||||
size_t read(char* buffer, size_t bufferSize) override;
|
size_t read(char* buffer, size_t bufferSize) override;
|
||||||
private:
|
private:
|
||||||
ALAudio* al;
|
|
||||||
ALCdevice* device;
|
ALCdevice* device;
|
||||||
uint channels;
|
uint channels;
|
||||||
uint bitsPerSample;
|
uint bitsPerSample;
|
||||||
|
|||||||
@ -27,8 +27,7 @@ LevelController::LevelController(
|
|||||||
: settings(engine->getSettings()),
|
: settings(engine->getSettings()),
|
||||||
level(std::move(levelPtr)),
|
level(std::move(levelPtr)),
|
||||||
chunks(std::make_unique<ChunksController>(*level)),
|
chunks(std::make_unique<ChunksController>(*level)),
|
||||||
playerTickClock(20, 3),
|
playerTickClock(20, 3) {
|
||||||
localPlayer(clientPlayer) {
|
|
||||||
|
|
||||||
level->events->listen(LevelEventType::CHUNK_PRESENT, [](auto, Chunk* chunk) {
|
level->events->listen(LevelEventType::CHUNK_PRESENT, [](auto, Chunk* chunk) {
|
||||||
scripting::on_chunk_present(*chunk, chunk->flags.loaded);
|
scripting::on_chunk_present(*chunk, chunk->flags.loaded);
|
||||||
|
|||||||
@ -20,7 +20,6 @@ class LevelController {
|
|||||||
std::unique_ptr<ChunksController> chunks;
|
std::unique_ptr<ChunksController> chunks;
|
||||||
|
|
||||||
util::Clock playerTickClock;
|
util::Clock playerTickClock;
|
||||||
Player* localPlayer;
|
|
||||||
public:
|
public:
|
||||||
LevelController(Engine* engine, std::unique_ptr<Level> level, Player* clientPlayer);
|
LevelController(Engine* engine, std::unique_ptr<Level> level, Player* clientPlayer);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user