i can’t get any pciture out of this class
AudioFormatManager::getInstance()->registerBasicFormats(); fi = new FileInputSource (File (T("d:\\file.ogg"))); thumbnail = new AudioThumbnail (128, *AudioFormatManager::getInstance(), cache); thumbnail->addChangeListener (this); thumbnail->setSource (fi);
and in my paint method
thumbnail->drawChannel (g, 16, 64, getWidth()-128, getHeight()-128, 0, thumbnail->getTotalLength(), thumbnail->getNumChannels(), 1.0f);
i get the callback info, but i don’t know how to set the AudioThmubnailCache, i initialize it with 512, and the AudioThumbnail with 128 and i tired more. and nothing paints itself.
does anyone have a working example of how to use this, i see that the cache is a TimeSliceThread, i don’t know if i have to start it myself?
i don’t want to post a third post (someone will hate me), i was wondering if anyone had any examples on how to write a frequency analyzer component, like in any audio player.