| 1 | /* |
| 2 | Copyright (C) 2011 Mario Stephan <[email protected]> |
| 3 | |
| 4 | This library is free software; you can redistribute it and/or modify |
| 5 | it under the terms of the GNU Lesser General Public License as published |
| 6 | by the Free Software Foundation; either version 2.1 of the License, or |
| 7 | (at your option) any later version. |
| 8 | |
| 9 | This program is distributed in the hope that it will be useful, |
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | GNU General Public License for more details. |
| 13 | |
| 14 | You should have received a copy of the GNU Lesser General Public License |
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 16 | */ |
| 17 | #ifndef TRACKANALYSER_H |
| 18 | #define TRACKANALYSER_Hcxx . . $ `src/trackanalyser.h:18:9`! |
| 19 | |
| 20 | #include <QtCore> |
| 21 | #include <QWidget> |
| 22 | |
| 23 | #define GST_DISABLE_LOADSAVEcxx . . $ `src/trackanalyser.h:23:9`! 1 |
| 24 | #define GST_DISABLE_REGISTRYcxx . . $ `src/trackanalyser.h:24:9`! 1 |
| 25 | #define GST_DISABLE_DEPRECATEDcxx . . $ `src/trackanalyser.h:25:9`! 1 |
| 26 | #include <gst/gst.h> |
| 27 | |
| 28 | class TrackAnalysercxx . . $ TrackAnalyser# : public QWidgetcxx . . $ QWidget# |
| 29 | { |
| 30 | Q_OBJECTcxx . . $ TrackAnalyser#QPrivateSignal# |
| 31 | public: |
| 32 | TrackAnalysercxx . . $ TrackAnalyser#TrackAnalyser(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget# *parent = 0); |
| 33 | ~cxx . . $ TrackAnalyser#`~TrackAnalyser`(ced63f7c635d850d).TrackAnalysercxx . . $ TrackAnalyser#(); |
| 34 | |
| 35 | enum modeTypecxx . . $ TrackAnalyser#modeType# { STANDARDcxx . . $ TrackAnalyser#STANDARD., TEMPOcxx . . $ TrackAnalyser#TEMPO. }; |
| 36 | |
| 37 | bool preparecxx . . $ TrackAnalyser#prepare(c9857a73d68e59ba).(); |
| 38 | void opencxx . . $ TrackAnalyser#open(fe09fe9c2ffe9947).(QUrlcxx . . $ QUrl# url); |
| 39 | void startcxx . . $ TrackAnalyser#start(49f6e7a06ebc5aa8).(); |
| 40 | bool closecxx . . $ TrackAnalyser#close(c9857a73d68e59ba).(); |
| 41 | |
| 42 | double gainDBcxx . . $ TrackAnalyser#gainDB(31fa7155c10fdd13).(); |
| 43 | double gainFactorcxx . . $ TrackAnalyser#gainFactor(31fa7155c10fdd13).(); |
| 44 | QTimecxx . . $ QTime# startPositioncxx . . $ TrackAnalyser#startPosition(bd2fc2b92108c576).(); |
| 45 | QTimecxx . . $ QTime# endPositioncxx . . $ TrackAnalyser#endPosition(bd2fc2b92108c576).(); |
| 46 | int bpmcxx . . $ TrackAnalyser#bpm(b126dc7c1de90089).(); |
| 47 | bool finishedcxx . . $ TrackAnalyser#finished(c9857a73d68e59ba).() {return m_finishedcxx . . $ TrackAnalyser#m_finished.;} |
| 48 | void setModecxx . . $ TrackAnalyser#setMode(236b6f4eb4b3f7d5).(modeTypecxx . . $ TrackAnalyser#modeType# mode); |
| 49 | void setPositioncxx . . $ TrackAnalyser#setPosition(c7ea15d6df5a9ba6).(QTimecxx . . $ QTime# position); |
| 50 | |
| 51 | QTimecxx . . $ QTime# lengthcxx . . $ TrackAnalyser#length(bd2fc2b92108c576).(); |
| 52 | static const int GAIN_INVALIDcxx . . $ TrackAnalyser#GAIN_INVALID.=-99; |
| 53 | |
| 54 | void need_finishcxx . . $ TrackAnalyser#need_finish(49f6e7a06ebc5aa8).(); |
| 55 | void newpadcxx . . $ TrackAnalyser#newpad(dde4ed65bff788c3). (GstElement *decodebin, GstPad *pad, gpointer data); |
| 56 | static GstBusSyncReply bus_cbcxx . . $ TrackAnalyser#bus_cb(42d5341555275e83). (GstBus *bus, GstMessage *msg, gpointer data); |
| 57 | |
| 58 | Q_SIGNALScxx . . $ `<external>/1208926524888476972/qobjectdefs.h:93:10`!: |
| 59 | void finishGaincxx . . $ TrackAnalyser#finishGain(49f6e7a06ebc5aa8).(); |
| 60 | void finishTempocxx . . $ TrackAnalyser#finishTempo(49f6e7a06ebc5aa8).(); |
| 61 | |
| 62 | private slotscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:88:14`!: |
| 63 | void messageReceivedcxx . . $ TrackAnalyser#messageReceived(5d052221dcf2e2ca).(GstMessage* message); |
| 64 | void loadThreadFinishedcxx . . $ TrackAnalyser#loadThreadFinished(49f6e7a06ebc5aa8).(); |
| 65 | |
| 66 | private: |
| 67 | struct TrackAnalyser_Privatecxx . . $ TrackAnalyser_Private# *pcxx . . $ TrackAnalyser#p.; |
| 68 | GstElement *pipelinecxx . . $ TrackAnalyser#pipeline.; |
| 69 | GstBus *buscxx . . $ TrackAnalyser#bus.; |
| 70 | |
| 71 | double m_GainDBcxx . . $ TrackAnalyser#m_GainDB.; |
| 72 | QTimecxx . . $ QTime# m_StartPositioncxx . . $ TrackAnalyser#m_StartPosition.; |
| 73 | QTimecxx . . $ QTime# m_EndPositioncxx . . $ TrackAnalyser#m_EndPosition.; |
| 74 | QTimecxx . . $ QTime# m_MaxPositioncxx . . $ TrackAnalyser#m_MaxPosition.; |
| 75 | bool m_finishedcxx . . $ TrackAnalyser#m_finished.; |
| 76 | |
| 77 | void detectTempocxx . . $ TrackAnalyser#detectTempo(49f6e7a06ebc5aa8).(); |
| 78 | float AutoCorrelationcxx . . $ TrackAnalyser#AutoCorrelation(3175f697e550ec29).( QListcxx . . $ QList#<float> buffer, int frames, int minBpm, int maxBpm, int sampleRate); |
| 79 | |
| 80 | void cleanupcxx . . $ TrackAnalyser#cleanup(49f6e7a06ebc5aa8).(); |
| 81 | void asyncOpencxx . . $ TrackAnalyser#asyncOpen(fe09fe9c2ffe9947).(QUrlcxx . . $ QUrl# url); |
| 82 | void sync_set_statecxx . . $ TrackAnalyser#sync_set_state(db0fd986d64b302f).(GstElement*, GstState); |
| 83 | }; |
| 84 | |
| 85 | #endif // TRACKANALYSER_H |