mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	sink: Change EnqueueSamples to take a pointer to a buffer instead of a std::vector
This commit is contained in:
		
							parent
							
								
									87893e6d68
								
							
						
					
					
						commit
						0ef4185644
					
				
					 5 changed files with 9 additions and 9 deletions
				
			
		|  | @ -90,7 +90,8 @@ static AudioCore::TimeStretcher time_stretcher; | |||
| 
 | ||||
| static void OutputCurrentFrame(const StereoFrame16& frame) { | ||||
|     time_stretcher.AddSamples(&frame[0][0], frame.size()); | ||||
|     sink->EnqueueSamples(time_stretcher.Process(sink->SamplesInQueue())); | ||||
|     std::vector<s16> stretched_samples = time_stretcher.Process(sink->SamplesInQueue()); | ||||
|     sink->EnqueueSamples(stretched_samples.data(), stretched_samples.size() / 2); | ||||
| } | ||||
| 
 | ||||
| // Public Interface
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue