Logo Search packages:      
Sourcecode: performous version File versions  Download package

alsa::mmap::mmap ( snd_pcm_t *  pcm,
snd_pcm_uframes_t  req 
) [inline]

Initiate MMAP transfer. snd_pcm_avail_update must be called directly before constructing the alsa::mmap object, otherwise snd_pcm_mmap_begin may return a wrong count of available frames.

pcm PCM handle
req number of frames to request (check .frames() for actual count)

Definition at line 497 of file alsa.hpp.

References ALSA_CHECKED.

                                                       : m_pcm(pcm), m_areas(), m_offset(), m_frames(req) {
                  ALSA_CHECKED(snd_pcm_mmap_begin, (m_pcm, &m_areas, &m_offset, &m_frames));

Generated by  Doxygen 1.6.0   Back to index