MCPcopy Create free account
hub / github.com/audacity/audacity / AppendBuffer

Method AppendBuffer

libraries/lib-wave-track/WaveTrack.cpp:2403–2409  ·  view source on GitHub ↗

! @excsafety{Partial} -- Some prefix (maybe none) of the buffer is appended, and no content already flushed to disk is lost. */

Source from the content-addressed store, hash-verified

2401-- Some prefix (maybe none) of the buffer is appended,
2402and no content already flushed to disk is lost. */
2403bool WaveChannel::AppendBuffer(constSamplePtr buffer, sampleFormat format,
2404 size_t len, unsigned stride, sampleFormat effectiveFormat)
2405{
2406 const size_t iChannel = GetChannelIndex();
2407 return GetTrack()
2408 .Append(iChannel, buffer, format, len, stride, effectiveFormat);
2409}
2410
2411/*! @excsafety{Partial}
2412-- Some prefix (maybe none) of the buffer is appended,

Callers 9

MixAndRenderFunction · 0.80
ImportMethod · 0.80
ImportMethod · 0.80
ImportMethod · 0.80
WriteDataMethod · 0.80
write_callbackMethod · 0.80
ImportMethod · 0.80
ImportMethod · 0.80
ImportRawFunction · 0.80

Calls 3

GetChannelIndexFunction · 0.85
GetTrackFunction · 0.85
AppendMethod · 0.45

Tested by

no test coverage detected