mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	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; | ||||
| } | ||||
| 
 | ||||
| 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…
	
	Add table
		Add a link
		
	
		Reference in a new issue