Hi all,

While trying to understand snd_pcm_lib_write1(), I found that
runtime->xfer_align is set to period_size in pcm_native.c, but wonder if it is
just a default?

Paul Davis' example (at http://www.op.net/~pbd/alsa-audio.html#playex) doesn't
check for a particular transfer size, and my card supports playout of less than
160 samples (i.e. the period size). Thus, I set to try playing out 512 bytes at
a time (i.e. 2048 samples of 2-bit ADPCM), which does NOT come to a multiple of
period size. The result is that only 1920 samples are played, and my app thinks
an error has occured.

Is it a general requirement for apps to send only audio in multiple of the
period size?

Thanks,
Guilhem.


__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to