Re: Recorded files not closed? (Preliminary Solution)
David Sugar <[email protected]> Wed, 22 Mar 2006 08:35:10 -0500
| Newsgroups | gmane.comp.gnu.bayonne.devel |
|---|---|
| Message-ID | <[email protected]> |
Then we should look really in the URLAudio class in Bayonne (1) :). Dmitry Agafonov wrote: > MY SOLUTION: > > .../drivers/dialogic/uio.cpp in void DialogicTrunk::endRecord() > > URLAudio::close(), as I think, should close recorded file descriptor, > but don't... So, I've add one more call AudioFile::afClose() > > ---->8----[patch]---------------------------------------------------- > --- uio.cpp.orig 2006-03-22 11:34:26.000000000 +0300 > +++ uio.cpp 2006-03-22 11:25:12.000000000 +0300 > @@ -157,6 +157,7 @@ > setSymbol(SYM_RECORDED, "0"); > remove(data.record.name); > URLAudio::close(); > + AudioFile::afClose(); > return; > } > } > @@ -180,6 +181,7 @@ > rename(data.record.name, data.record.save); > } > URLAudio::close(); > + AudioFile::afClose(); > } > > #ifdef CCXX_NAMESPACES > ---->8--------------------------------------------------------------- > > > > Hi! > > I'm working on a software on top of bayonne voice server (dialogic > driver). I'm trying to handle recorded (via bayonne) audio files > properly from external application. > I used lsof(8) and fuser(1) commands to find when file will not be > opened by bayonne (to copy, move or process audio data). But I found all > recorded files are still open after days of actual > recording procedure. > > I've checked source code. All drivers has open(data.record.name) and > none has close(...) > > bayone 1.2.x > > _______________________________________________ Bayonne-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bayonne-devel