sink: Remove unnecessary SetDevice method
Unused, doesn't do anything.
This commit is contained in:
parent
4564fc5baa
commit
05fc17b88a
6 changed files with 0 additions and 17 deletions
|
@ -120,8 +120,6 @@ size_t CubebSink::SamplesInQueue() const {
|
||||||
return impl->queue.size() / 2;
|
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,
|
long CubebSink::Impl::DataCallback(cubeb_stream* stream, void* user_data, const void* input_buffer,
|
||||||
void* output_buffer, long num_frames) {
|
void* output_buffer, long num_frames) {
|
||||||
Impl* impl = static_cast<Impl*>(user_data);
|
Impl* impl = static_cast<Impl*>(user_data);
|
||||||
|
|
|
@ -22,7 +22,6 @@ public:
|
||||||
size_t SamplesInQueue() const override;
|
size_t SamplesInQueue() const override;
|
||||||
|
|
||||||
std::vector<std::string> GetDeviceList() const override;
|
std::vector<std::string> GetDeviceList() const override;
|
||||||
void SetDevice(int device_id) override;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
struct Impl;
|
struct Impl;
|
||||||
|
|
|
@ -24,8 +24,6 @@ public:
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetDevice(int device_id) override {}
|
|
||||||
|
|
||||||
std::vector<std::string> GetDeviceList() const override {
|
std::vector<std::string> GetDeviceList() const override {
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
|
@ -114,10 +114,6 @@ size_t SDL2Sink::SamplesInQueue() const {
|
||||||
return total_size;
|
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) {
|
void SDL2Sink::Impl::Callback(void* impl_, u8* buffer, int buffer_size_in_bytes) {
|
||||||
Impl* impl = reinterpret_cast<Impl*>(impl_);
|
Impl* impl = reinterpret_cast<Impl*>(impl_);
|
||||||
|
|
||||||
|
|
|
@ -22,12 +22,10 @@ public:
|
||||||
size_t SamplesInQueue() const override;
|
size_t SamplesInQueue() const override;
|
||||||
|
|
||||||
std::vector<std::string> GetDeviceList() const override;
|
std::vector<std::string> GetDeviceList() const override;
|
||||||
void SetDevice(int device_id) override;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
struct Impl;
|
struct Impl;
|
||||||
std::unique_ptr<Impl> impl;
|
std::unique_ptr<Impl> impl;
|
||||||
int device_id;
|
|
||||||
std::vector<std::string> device_list;
|
std::vector<std::string> device_list;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -32,12 +32,6 @@ public:
|
||||||
/// Samples enqueued that have not been played yet.
|
/// Samples enqueued that have not been played yet.
|
||||||
virtual std::size_t SamplesInQueue() const = 0;
|
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.
|
/// Returns the list of available devices.
|
||||||
virtual std::vector<std::string> GetDeviceList() const = 0;
|
virtual std::vector<std::string> GetDeviceList() const = 0;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue