mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-12-26 09:02:44 -06:00
3545b144f1
``` In file included from citra/src/audio_core/sink_details.cpp:11: citra/src/./audio_core/sdl2_sink.h:25:10: warning: 'SetDevice' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] void SetDevice(int device_id); ^ citra/src/./audio_core/sink.h:39:18: note: overridden virtual function is here virtual void SetDevice(int device_id) = 0; ^ ```
34 lines
753 B
C++
34 lines
753 B
C++
// Copyright 2016 Citra Emulator Project
|
|
// Licensed under GPLv2 or any later version
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <cstddef>
|
|
#include <memory>
|
|
#include "audio_core/sink.h"
|
|
|
|
namespace AudioCore {
|
|
|
|
class SDL2Sink final : public Sink {
|
|
public:
|
|
SDL2Sink();
|
|
~SDL2Sink() override;
|
|
|
|
unsigned int GetNativeSampleRate() const override;
|
|
|
|
void EnqueueSamples(const s16* samples, size_t sample_count) override;
|
|
|
|
size_t SamplesInQueue() const override;
|
|
|
|
std::vector<std::string> GetDeviceList() const override;
|
|
void SetDevice(int device_id) override;
|
|
|
|
private:
|
|
struct Impl;
|
|
std::unique_ptr<Impl> impl;
|
|
int device_id;
|
|
std::vector<std::string> device_list;
|
|
};
|
|
|
|
} // namespace AudioCore
|