mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	rewind returns error code rather than doing wrong operation
This commit is contained in:
		
							parent
							
								
									1872af49ca
								
							
						
					
					
						commit
						5337e682f6
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -626,9 +626,13 @@ static int snd_pcm_dmix_pause(snd_pcm_t *pcm, int enable)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static snd_pcm_sframes_t snd_pcm_dmix_rewind(snd_pcm_t *pcm, snd_pcm_uframes_t frames)
 | 
					static snd_pcm_sframes_t snd_pcm_dmix_rewind(snd_pcm_t *pcm, snd_pcm_uframes_t frames)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
					#if 0
 | 
				
			||||||
	/* FIXME: substract samples from the mix ring buffer, too? */
 | 
						/* FIXME: substract samples from the mix ring buffer, too? */
 | 
				
			||||||
	snd_pcm_mmap_appl_backward(pcm, frames);
 | 
						snd_pcm_mmap_appl_backward(pcm, frames);
 | 
				
			||||||
	return frames;
 | 
						return frames;
 | 
				
			||||||
 | 
					#else
 | 
				
			||||||
 | 
						return -EIO;
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static snd_pcm_sframes_t snd_pcm_dmix_forward(snd_pcm_t *pcm, snd_pcm_uframes_t frames)
 | 
					static snd_pcm_sframes_t snd_pcm_dmix_forward(snd_pcm_t *pcm, snd_pcm_uframes_t frames)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue