I'm using Introjucer 3.1.0.
I am trying to work through and understand the AudioDemoPlaybackPage module in the JUCE demo. I created a bare bones gui project (Main.cpp, MainComponent.h, and MainComponent.cpp), and am trying to expand that to play a soundfile.
What do I put in MainComponent.h and MainComponent.cpp to create a TimeSliceThread instance named 'thread' that I can eventually use in this line that I see in the JUCE AudioDemoPlaybackPage module:
transportSource.setSource (currentAudioFileSource, 32768, &thread, reader->sampleRate);
In MainComponent.h, I used what I see in AudioDemoPlaybackPage.h:
[...] private: [...] TimeSliceThread thread; [...]
In the //[Constructor] part of MainComponent.cpp, I'm stuck. All my guesses are wrong.
What exactly do I say in MainComponent.h and MainComponent.cpp to create TimeSliceThread thread?