pub fn capture_samples<R: AsBufferDataMut<F>>(&mut self, mut data: R) -> AltoResult<usize> {
		let (data, size) = data.as_buffer_data_mut();
		let len = cmp::min(size / mem::size_of::<F>(), self.samples_len() as usize);
		if len == 0 {
			return Ok(0);
		}

		unsafe { self.alto.0.api.alcCaptureSamples(self.dev, data, len as sys::ALCsizei); }
		Ok(len as usize)
	}
/// `alcCaptureSamples()`
/// Returns the number of sample-frames captured to the slice.
`alcCaptureSamples()`
Returns the number of sample-frames captured to the slice.
` alcCaptureSamples () ` Returns the number of sample - frames captured to the slice .
pub fn capture_samples<R: AsBufferDataMut<F>>(&mut self, mut data: R) -> AltoResult<usize> {
		let (data, size) = data.as_buffer_data_mut();
		let len = cmp::min(size / mem::size_of::<F>(), self.samples_len() as usize);
		if len == 0 {
			return Ok(0);
		}
		unsafe { self.alto.0.api.alcCaptureSamples(self.dev, data, len as sys::ALCsizei); }
		Ok(len as usize)
	}
pub fn capture_samples < R : AsBufferDataMut < F > > ( & mut self , mut data : R ) -> AltoResult < usize > { let ( data , size ) = data . as_buffer_data_mut ( ) ; let len = cmp :: min ( size / mem :: size_of :: < F > ( ) , self . samples_len ( ) as usize ) ; if len == 0 { return Ok ( 0 ) ; } unsafe { self . alto . 0 . api . alcCaptureSamples ( self . dev , data , len as sys :: ALCsizei ) ; } Ok ( len as usize ) }
`alcCaptureSamples()`
Returns the number of sample-frames captured to the slice.
` alcCaptureSamples () ` Returns the number of sample - frames captured to the slice .
&mut self
data
R