Dan Muresan wrote:
> I'm trying to cancel an ongoing sf_* I/O operation (from another
Maybe its a bad idea. :-)
> * libsndfile sf_read_* and sf_write_* loop until the requested number
Yep, sounds like a bad idea.
> Also, libsndfile doesn't seem to employ a user-space cache like normal
Reading one frame at a time sounds like a bad idea too.
> So... it's hard to process low-latency dynamic I/O requests with
It does. You can read any number of frames from 1 through to as many
frames as the file contains.
Basically you could define how fine grained you want you interruption
to be and then only read enough frames so that you can interrupt between
reads.
Say you want to be able to interrupt down to a 1/100th of a second and
your sample rate is 48000kHz. If you read 480 frames in each read and
get your interruption without jumping through difficult hoops.
> BTW, I've had trouble sending messages to the sndfile-users mailing
I just checked, and the address you used to post this email to the LAU
list are not subscribed to the libsndfile-users list. Thats why the list
is rejecting your email.
> In any case,
It works if you are suscribed, but I'm just as happy answering
libsndfile questions here (or better yet, the LAD list since this
is really a development question).
Erik
--
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-user
LINUX® is a registered trademark of Linus Torvalds in the USA and other countries.
Linuxaudio.org logo copyright Thorsten Wilms © 2006.
Hosting provided by the Virginia Tech Department of Music and DISIS.