On Saturday 23 July 2005 14:59, Erik de Castro Lopo wrote: > > realtime streaming means that it should be possible to stream audio in > > very small chunks of data e.g. 64 samples per frame. > > Que? That sounds like a function of the file format not the > API. With libsndfile you can read a single frame (1 sample for > every channel) or more per read/write.
the out-of-the-box ogg vorbis lib e.g. chooses the amount of samples it dispenses based on the number of frames it had decoded. if you want to read blockwise, that is: based on a blocksize that _you_ want, you have to chop up and merge the blocks that the lib gives you. if a lib guarantees to always mix as many samples as i require, it is out-of-the-box ready for blockwise streaming, even with small blocks of data. -- -- leonard "paniq" ritter -- http://www.paniq.org -- http://www.mjoo.org