Re: [LAU] cancelling I/O with libsndfile

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-audio-user@...>
Date: Monday, June 13, 2011 - 11:56 am

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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[LAU] cancelling I/O with libsndfile, Dan Muresan, (Mon Jun 13, 11:43 am)
Re: [LAU] cancelling I/O with libsndfile, Dan Muresan, (Mon Jun 13, 9:57 pm)
Re: [LAU] cancelling I/O with libsndfile, Erik de Castro Lopo, (Tue Jun 14, 12:12 am)
Re: [LAU] cancelling I/O with libsndfile, Dan Muresan, (Tue Jun 14, 6:46 am)
Re: [LAU] cancelling I/O with libsndfile, Paul Davis, (Tue Jun 14, 12:17 am)
Re: [LAU] cancelling I/O with libsndfile, Dan Muresan, (Tue Jun 14, 6:29 am)
Re: [LAU] cancelling I/O with libsndfile, Erik de Castro Lopo, (Mon Jun 13, 11:56 am)