mirror of
https://github.com/citra-emu/citra.git
synced 2024-12-20 00:01:05 +00:00
sink: Remove unnecessary SetDevice method
Unused, doesn't do anything.
This commit is contained in:
parent
4564fc5baa
commit
05fc17b88a
@ -120,8 +120,6 @@ size_t CubebSink::SamplesInQueue() const {
|
||||
return impl->queue.size() / 2;
|
||||
}
|
||||
|
||||
void CubebSink::SetDevice(int device_id) {}
|
||||
|
||||
long CubebSink::Impl::DataCallback(cubeb_stream* stream, void* user_data, const void* input_buffer,
|
||||
void* output_buffer, long num_frames) {
|
||||
Impl* impl = static_cast<Impl*>(user_data);
|
||||
|
@ -22,7 +22,6 @@ public:
|
||||
size_t SamplesInQueue() const override;
|
||||
|
||||
std::vector<std::string> GetDeviceList() const override;
|
||||
void SetDevice(int device_id) override;
|
||||
|
||||
private:
|
||||
struct Impl;
|
||||
|
@ -24,8 +24,6 @@ public:
|
||||
return 0;
|
||||
}
|
||||
|
||||
void SetDevice(int device_id) override {}
|
||||
|
||||
std::vector<std::string> GetDeviceList() const override {
|
||||
return {};
|
||||
}
|
||||
|
@ -114,10 +114,6 @@ size_t SDL2Sink::SamplesInQueue() const {
|
||||
return total_size;
|
||||
}
|
||||
|
||||
void SDL2Sink::SetDevice(int device_id) {
|
||||
this->device_id = device_id;
|
||||
}
|
||||
|
||||
void SDL2Sink::Impl::Callback(void* impl_, u8* buffer, int buffer_size_in_bytes) {
|
||||
Impl* impl = reinterpret_cast<Impl*>(impl_);
|
||||
|
||||
|
@ -22,12 +22,10 @@ public:
|
||||
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;
|
||||
};
|
||||
|
||||
|
@ -32,12 +32,6 @@ public:
|
||||
/// Samples enqueued that have not been played yet.
|
||||
virtual std::size_t SamplesInQueue() const = 0;
|
||||
|
||||
/**
|
||||
* Sets the desired output device.
|
||||
* @param device_id ID of the desired device.
|
||||
*/
|
||||
virtual void SetDevice(int device_id) = 0;
|
||||
|
||||
/// Returns the list of available devices.
|
||||
virtual std::vector<std::string> GetDeviceList() const = 0;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user