# Punch in/out

**URL:** <https://forum.juce.com/t/punch-in-out/47718>\
**Category:** Tracktion Engine\
**Created:** [September 8, 2021, 12:09pm UTC](https://forum.juce.com/t/punch-in-out/47718 "2021-09-08T12:09:57Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![splintersilk](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/splintersilk/32/14724_2.png) [@splintersilk](https://forum.juce.com/u/splintersilk)\
**Post date:** [December 30, 2021, 4:39pm UTC](https://forum.juce.com/t/punch-in-out/47718/15 "2021-12-30T16:39:57Z")

</div>

Hey there @dave96 this is great thanks for the run down.

However taking all the steps, when I call `TransportControl::record` I start recording content to a clip.

> “But what if I don’t want to record content?”, I ask.

I call `InputDeviceInstance::setRecordingEnabled(false)`. Now I can’t hear what I’m monitoring.

> “But why are you calling TransportControl::record instead of ::play?”, anyone else may ask.

Because if I try it that way, and then randomly decide to hit record whilst playback is in progress I get thousands of those tiny wav files and the program grinds to a slow crawl/halt. Per this bug report/post I made:

> [@Example RecordingDemo bug](https://forum.juce.com/t/example-recordingdemo-bug/47746):
>
> I think there is a bug in the supplied RecordingDemo example that comes with Tracktion Engine. To reproduce: Create two tracks Arm and record audio to first track Arm second track. Press play. While audio of first track is being played press record. Result: In my case I get a flood of JUCE Assertion failure in tracktion\_EditTimeRange.cpp:16 as the system grinds to a halt. At the same time, hundreds of 784byte .wav files are written to disk. Stepping through it looks like the start and end…

That all said, I wasn’t aware of this `EngineBehaviour::monitorAudioInputsWithoutRecordEnable()` and it seems like a big clue towards what I want to achieve.

If you have any more advice on how to monitor during playback then start recording to a clip on the fly, stop recording to said clip whilst enjoying uninterupted playback throughout I would be immensely grateful.

Again, thank you very much for your input already especially during the holiday season!

---

_[View the full topic](https://forum.juce.com/t/punch-in-out/47718)._
