My product has evolved and I’ve just added the tracktion engine into it. I’m creating and/or opening a .tracktionedit file. But when I play the file, I only hear the click track. All the other tracks are silent… To be sure when I load the .tracktionedit file into Waveform 13, I can see and hear the tracks.
In anyone’s greatly esteemed opinion, where would be the first place I’d need to check ?
The Click Track is connected directly to the output, and so is more or less at the end of the graph. Your tracks would be back up stream from there. Make sure to check the status of your track Mutes and Solos.
Thank you for your comments.
All tracks are unmuted.
Is there something I need to do to get the tracks to be connected to the master track ?
You mentioned the graph. Is that done automatically ?
I really don’t get it.
I’m in a GUI app, not a plugin.
I generate and save the edit with my audio files, etc.
I load the file in a ::forRendering edit, and I call for a render and the resulting wav file has all the sound in it.
I then try to load the same file with a ::forEditing type edit, play it, and I can’t hear a sound.
What audio device are you using? How many channels does it have?
There’s a chance the tracks are being played back on the “default audio output” which could have been set to something other than 1-2. But if the click track is being played back, that’s probably not it.
We try to set all the defaults so it’s as simple as possible, but without knowing all the code and the Edit it’s difficult to know what could be wrong. It’s a DAW engine so there’s literally thousands of ways things can be configured You could try checking the TrackDestination of each track though.
Can you maybe share the Edit file? Or at least a minimal example of one that doesn’t work?
I’ll have to check more closely tomorrow but I think that’s correct. The destination isn’t another track, it will be the name of an OutputDevice (probably a WaveOutputDevice)
Which makes me think it’s an issue connecting to the output (it could have been an audio path problem but if it’s rendering ok, then I doubt it’s that).
You don’t want your app to be an AudioAppComponent, just a normal Component as the Engine’s DeviceManager will connect itself to the juce::AudioDeviceManager it contains. Put a breakpoint in DeviceManager::audioDeviceIOCallbackWithContext and see if it’s getting called.
If it is, try putting one in DeviceManager::audioDeviceAboutToStart and see what device is actually starting and with how many channels etc.
One final thing, I noticed the paths in the edit file are absolute, how are you setting those?
I think you don’t want to set a custom filePathResolver, just use the default which will resolve files if you have set an editFileRetriever.
But I think your editFileRetriever is wrong. That should just return the edit file, not editFile.getChildFile(project_name);, that doesn’t seem to make sense to me.