Re: [Audacity-devel] Bug 137
A free multi-track audio editor and recorder
Brought to you by:
aosiniao
From: Martyn S. <mar...@gm...> - 2011-07-29 23:31:56
|
Is if (!mCaptureTracks[i]->Append(temp, trackFormat, avail, 1, &appendLog)) { //efm5 the above might fail wxMessageBox(_("AudioIO::FillBuffers mCaptureTracks[i]->Append failed 1")); AudacityProject *p = GetActiveProject(); wxCommandEvent dummyEvt; p->GetControlToolBar()->OnStop(dummyEvt); } helpful? Martyn On 29/07/2011 05:42, Edgar wrote: > http://audacity.238276.n2.nabble.com/file/n6632354/discFull2.patch > discFull2.patch > > This patch goes a lot further but still leaves some problems. > > > I cannot see how to elegantly recover from: > mCaptureTracks[i]->Append might fail during recording, look at the four > lines below labeled //efm5... > maybe AudioIO::FillBuffers() should return a bool as well as terminating > recording. > > src\AudioIO.cpp > > line# 2588 > void AudioIO::FillBuffers() > { > [...] > if (!mCaptureTracks[i]->Append(temp, trackFormat, avail, 1, > &appendLog)) > //efm5 the above might fail -- it does when (Temp) disc > full during recording > //efm5 need to stop if recording -- how do I test if > recording& how do I stop recording properly > wxMessageBox(_("AudioIO::FillBuffers > mCaptureTracks[i]->Append failed 1")); > DeleteSamples(temp); > > line# 2151: > AudioThread::ExitCode AudioThread::Entry() { > while( !TestDestroy() ) > { > // Set LoopActive outside the tests to avoid race condition > gAudioIO->mAudioThreadFillBuffersLoopActive = true; > if( gAudioIO->mAudioThreadShouldCallFillBuffersOnce ) > { > gAudioIO->FillBuffers(); //efm5 when used here > gAudioIO->mAudioThreadShouldCallFillBuffersOnce = false; > } > else if( gAudioIO->mAudioThreadFillBuffersLoopRunning ) > { > gAudioIO->FillBuffers(); //efm5 or here > } > gAudioIO->mAudioThreadFillBuffersLoopActive = false; > > Sleep(10); > } > > return 0; > } > > > -- > View this message in context: http://audacity.238276.n2.nabble.com/Bug-137-tp6614577p6632354.html > Sent from the audacity-devel mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Got Input? Slashdot Needs You. > Take our quick survey online. Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey > _______________________________________________ > audacity-devel mailing list > aud...@li... > https://lists.sourceforge.net/lists/listinfo/audacity-devel |