};
typedef QMap<QString, QString> stringMap;
+typedef QMap <int, QMap <int, QByteArray> > audioByteArray;
struct ItemInfo {
/** startPos is the position where the clip starts on the track */
void DocClipBase::slotCreateAudioTimer()
{
- connect(m_thumbProd, SIGNAL(audioThumbReady(QMap <int, QMap <int, QByteArray> >)), this , SLOT(updateAudioThumbnail(QMap <int, QMap <int, QByteArray> >)));
+ connect(m_thumbProd, SIGNAL(audioThumbReady(const audioByteArray&)), this , SLOT(updateAudioThumbnail(const audioByteArray&)));
m_audioTimer = new QTimer(this);
connect(m_audioTimer, SIGNAL(timeout()), this, SLOT(slotGetAudioThumbs()));
}
return m_thumbnail;
}
-void DocClipBase::updateAudioThumbnail(QMap<int, QMap<int, QByteArray> > data)
+void DocClipBase::updateAudioThumbnail(const audioByteArray& data)
{
//kDebug() << "CLIPBASE RECIEDVED AUDIO DATA*********************************************";
m_audioFrameCache = data;
public slots:
- void updateAudioThumbnail(QMap<int, QMap<int, QByteArray> > data);
+ void updateAudioThumbnail(const audioByteArray& data);
bool slotGetAudioThumbs();
QList < CommentedTime > commentedSnapMarkers() const;
GenTime findNextSnapMarker(const GenTime & currTime);
return;
}
- QMap <int, QMap <int, QByteArray> > storeIn;
+ audioByteArray storeIn;
//FIXME: Hardcoded!!!
m_frequency = 48000;
m_channels = channel;
class ClipManager;
+typedef QMap <int, QMap <int, QByteArray> > audioByteArray;
+
class KThumb: public QObject
{
Q_OBJECT public:
signals:
void thumbReady(int, QImage);
void mainThumbReady(const QString &, QPixmap);
- void audioThumbReady(QMap <int, QMap <int, QByteArray> >);
+ void audioThumbReady(const audioByteArray&);
/** @brief We have finished caching all requested thumbs. */
void thumbsCached();
};
Q_DECLARE_METATYPE(QVector<int16_t>)
+
EffectsList MainWindow::videoEffects;
EffectsList MainWindow::audioEffects;
EffectsList MainWindow::customEffects;
{
qRegisterMetaType<QVector<int16_t> > ();
qRegisterMetaType<stringMap> ("stringMap");
+ qRegisterMetaType<audioByteArray> ("audioByteArray");
+
// Init locale
QLocale systemLocale = QLocale();
systemLocale.setNumberOptions(QLocale::OmitGroupSeparator);