Correct Way to Use Click Track

My Tracktion Engine work is coming along nicely. I am at the point of adding a simple button to enable/disable the click track.

I am seeing the following related items;

edit.clickTrackEnabled = true;
edit.clickTrackEmphasiseBars = true;
edit.clickTrackGain = 1.0f;
edit.clickTrackRecordingOnly = false;
edit.setClickTrackRange({ 0.0, edit.getLength() });
edit.setClickTrackVolume(1.0f);
edit.setClickTrackOutput(deviceName);

With these values set, I get no click sound. I am sure I am missing something obvious.

What is the correct way to enable click functionality?

I have pretty much same code in my project. I tested with your code and I hear click sound. Check ā€˜deviceName’ is correct, one you’re using for clickTrackOutput. Or if don’t set, it will play through default audio output. Hope it helps!

You nailed it! It turned out to be an issue with ā€œdeviceNameā€. I have corrected that, and I now have click!

Thank you very much!

1 Like