Commit 3fb0af1b authored by Richard Hosking's avatar Richard Hosking

v4l2: Progress with Alsa. Sounds much better :-)

parent ef99a585
......@@ -1110,6 +1110,9 @@ static block_t* GrabAudio( demux_t *p_demux )
/* ALSA */
i_read = snd_pcm_readi( p_sys->p_alsa_pcm, p_block->p_buffer, p_sys->i_alsa_chunk_size );
/* TODO: ALSA ERROR HANDLING?? xrun?? */
/* convert from frames to bytes */
if( i_read > 0 ) i_read *= p_sys->i_alsa_frame_size;
}
else
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment