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 - 10:01 am

>  b) Work around it.

This is what I was trying to do via pthread_cancel + sf_open_fd. It
seems to work with FLAC.

However, there could be memory leaks if any decoder / encoder function
(in sndfile or one of the external libs) allocates temporary memory
that it expects to free before returning. Do you know if this might be
the case (e.g. for the native formats, libFLAC, libvorbis)?

I may need to fall back on the vio stuff. How does a sf_vio_read or
sf_vio_write signal I/O errors? How does a vio_read signal EOF? The
API docs don't seem to say anything.

-- 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)