1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-25 07:43:54 +02:00

Split out AudioIO::AllocateBuffers

This commit is contained in:
Paul Licameli
2018-08-20 09:57:50 -04:00
parent eeb5f1ec20
commit 8e151aba8d
2 changed files with 168 additions and 145 deletions

View File

@@ -581,6 +581,16 @@ private:
/** \brief How many sample rates to try */
static const int NumRatesToTry;
/** \brief Allocate RingBuffer structures, and others, needed for playback
* and recording.
*
* Returns true iff successful.
*/
bool AllocateBuffers(
const AudioIOStartStreamOptions &options,
const TransportTracks &tracks, double t0, double t1, double sampleRate,
bool scrubbing );
/** \brief Clean up after StartStream if it fails.
*
* If bOnlyBuffers is specified, it only cleans up the buffers. */