Re: [LAD] [LAU] cancelling I/O with libsndfile

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-audio-dev@...>
Date: Tuesday, June 14, 2011 - 12:03 pm

>> that it expects to free before returning. Do you know if this might be

It seems to works for FLAC, but I can't trust it either. Besides
memory leaks, mutexes might remain locked, and indirectly deadlock
sf_free().

>> I may need to fall back on the vio stuff. How does a sf_vio_read or

Well, forget my cancelling strategy -- errors could occur even if one
writes a trivial layer (vio_read == read). An I/O API *must* specify
error handling. This is not some exotic use case...

>From TFC, psf_fread ():

if (psf->virtual_io)
return psf->vio.read ...

(i.e. no processing), while the non-virtual branch returns the partial
count if an error ever occurs. So I guess I should return some short
count on error.

Anyway, for cancelling requests EOF works -- indeed as long as one can
"get out of the sf_read jail free" anything works.

-- Dan
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev

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

Messages in current thread:
Re: [LAD] [LAU] cancelling I/O with libsndfile, Erik de Castro Lopo, (Tue Jun 14, 12:15 am)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Dan Muresan, (Tue Jun 14, 7:09 am)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Erik de Castro Lopo, (Tue Jun 14, 7:30 am)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Dan Muresan, (Tue Jun 14, 7:49 am)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Erik de Castro Lopo, (Tue Jun 14, 8:44 am)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Dan Muresan, (Tue Jun 14, 10:01 am)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Fons Adriaensen, (Tue Jun 14, 11:21 am)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Dan Muresan, (Tue Jun 14, 11:42 am)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Fons Adriaensen, (Tue Jun 14, 12:12 pm)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Dan Muresan, (Tue Jun 14, 12:55 pm)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Erik de Castro Lopo, (Tue Jun 14, 10:54 am)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Dan Muresan, (Mon Jun 20, 9:51 pm)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Erik de Castro Lopo, (Mon Jun 20, 10:52 pm)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Dan Muresan, (Tue Jun 21, 6:24 am)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Erik de Castro Lopo, (Tue Jun 21, 6:37 am)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Dan Muresan, (Tue Jun 21, 6:57 am)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Erik de Castro Lopo, (Tue Jun 21, 7:12 am)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Dan Muresan, (Tue Jun 21, 7:50 am)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Erik de Castro Lopo, (Tue Jun 21, 7:58 am)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Dan Muresan, (Mon Jul 4, 11:58 am)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Erik de Castro Lopo, (Mon Jul 4, 11:30 pm)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Dan Muresan, (Tue Jul 5, 5:15 am)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Erik de Castro Lopo, (Tue Jul 5, 5:30 am)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Dan Muresan, (Tue Jul 5, 9:42 am)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Erik de Castro Lopo, (Tue Jul 5, 10:25 am)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Dan Muresan, (Tue Jul 5, 11:17 am)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Erik de Castro Lopo, (Tue Jul 5, 11:29 am)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Dan Muresan, (Thu Jul 7, 1:38 pm)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Paul Davis, (Thu Jul 7, 2:00 pm)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Dan Muresan, (Thu Jul 7, 2:29 pm)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Paul Davis, (Thu Jul 7, 2:39 pm)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Dan Muresan, (Thu Jul 7, 3:39 pm)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Dan Muresan, (Tue Jun 14, 12:03 pm)