Hi all,
I’m trying to implement the AudioThumbnail class in a new component, but I’m having some trouble - for both AudioThumbnail and AudioThumbnailCache, VS shows the error “identifier “AudioThumbnail” is not defined”.
It’s a totally standard JUCE component generated with the Projucer, and JuceHeader is included. Everything else like AudioFormatManager and AudioTransportSource shows up as expected. After some looking through docs and tutorials I am still not sure what is going wrong.
Am I missing a dependency or something completely obvious here? Header code below:
#ifndef WAVEFORMCOMPONENT_H_INCLUDED
#define WAVEFORMCOMPONENT_H_INCLUDED
#include "../JuceLibraryCode/JuceHeader.h"
//==============================================================================
/*
*/
class WaveformComponent : public Component, private ChangeListener
{
public:
WaveformComponent();
~WaveformComponent();
void paint (Graphics&) override;
void resized() override;
AudioFormatManager formatManager;
ScopedPointer<AudioFormatReaderSource> readerSource;
AudioTransportSource transportSource;
AudioThumbnailCache thumbnailCache;
AudioThumbnail thumbnail;
private:
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (WaveformComponent)
};
#endif // WAVEFORMCOMPONENT_H_INCLUDED
Thanks!
