output/{alsa,osx}: use ConstBuffer::empty()
This commit is contained in:
		@@ -872,7 +872,7 @@ AlsaOutput::Play(const void *chunk, size_t size)
 | 
				
			|||||||
	assert(size % in_frame_size == 0);
 | 
						assert(size % in_frame_size == 0);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	const auto e = pcm_export->Export({chunk, size});
 | 
						const auto e = pcm_export->Export({chunk, size});
 | 
				
			||||||
	if (e.size == 0)
 | 
						if (e.empty())
 | 
				
			||||||
		return size;
 | 
							return size;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	std::unique_lock<Mutex> lock(mutex);
 | 
						std::unique_lock<Mutex> lock(mutex);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -887,7 +887,7 @@ OSXOutput::Play(const void *chunk, size_t size)
 | 
				
			|||||||
#ifdef ENABLE_DSD
 | 
					#ifdef ENABLE_DSD
 | 
				
			||||||
        if (dop_enabled) {
 | 
					        if (dop_enabled) {
 | 
				
			||||||
		const auto e = pcm_export->Export({chunk, size});
 | 
							const auto e = pcm_export->Export({chunk, size});
 | 
				
			||||||
		if (e.size == 0)
 | 
							if (e.empty())
 | 
				
			||||||
			return size;
 | 
								return size;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		size_t bytes_written = ring_buffer->push((const uint8_t *)e.data, e.size);
 | 
							size_t bytes_written = ring_buffer->push((const uint8_t *)e.data, e.size);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user