#pragma once
// render_in_place — the third verb: render the selected track's output over the
// current range to the project's recording path, place it on a new sibling track at
// the exact position it was rendered from, and move the source to Design. The bank
// is never read, written, or notified (docs/product/render-in-place.md).

namespace reasampler {
class ReaSamplerSession;
}

namespace reasampler::capture {

// Resolves, renders, creates + dresses the sibling track, places the file, and
// settles both tracks' modes in one undo block. Silent on success (the new track is
// the feedback) except when the result lands invisible; ShowConsoleMsg on refusal.
void RunRenderTrackInPlace(ReaSamplerSession& session);

}  // namespace reasampler::capture
