On Sat, 4 Jan 2003, Ville V Sinkko wrote: > I'm working on a software synth, my first project with ALSA. Everything > is going fine, save for the initialization of the PCM output: based on > the scraps of documentation I've found, I have not been able to figure > out what exactly a "period" is, what its size signifies and how the > concept relates to or overlaps with that of output buffering. > > For an example, suppose I'm producing 44100 hz 16-bit mono signal and > want a 256-frame (512 bytes) output buffer. How do I use the period-related > hw functions in this case?
You have to divide the output buffer to smaller chunks after which hardware acknowledges transfers. These chunks are called periods in ALSA. Jaroslav ----- Jaroslav Kysela <[EMAIL PROTECTED]> Linux Kernel Sound Maintainer ALSA Project, SuSE Labs ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Alsa-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-user