citra-emu
/
citra
Archived
1
0
Fork 0

sink: Remove unnecessary SetDevice method

Unused, doesn't do anything.
This commit is contained in:
MerryMage 2018-07-02 13:23:40 +01:00
parent 4564fc5baa
commit 05fc17b88a
6 changed files with 0 additions and 17 deletions

View File

@ -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);

View File

@ -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;

View File

@ -24,8 +24,6 @@ public:
return 0;
}
void SetDevice(int device_id) override {}
std::vector<std::string> GetDeviceList() const override {
return {};
}

View File

@ -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_);

View File

@ -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;
};

View File

@ -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;
};