summaryrefslogtreecommitdiff
path: root/noncore/multimedia
Unidiff
Diffstat (limited to 'noncore/multimedia') (more/less context) (show whitespace changes)
-rw-r--r--noncore/multimedia/opierec/main.cpp10
-rw-r--r--noncore/multimedia/opierec/opierec.pro4
-rw-r--r--noncore/multimedia/opierec/qtrec.h1
3 files changed, 4 insertions, 11 deletions
diff --git a/noncore/multimedia/opierec/main.cpp b/noncore/multimedia/opierec/main.cpp
index 5f7c02f..4a94800 100644
--- a/noncore/multimedia/opierec/main.cpp
+++ b/noncore/multimedia/opierec/main.cpp
@@ -2,21 +2,15 @@
2 main.cpp - main routine 2 main.cpp - main routine
3 ***************************************************************************/ 3 ***************************************************************************/
4//// main.cpp 4//// main.cpp
5//// copyright 2001, 2002, by L. J. Potter <ljp@llornkcor.com> 5//// copyright 2001, 2002, by L. J. Potter <ljp@llornkcor.com>
6/*************************************************************************** 6/***************************************************************************
7 * This program is free software; you can redistribute it and/or modify * 7 * This program is free software; you can redistribute it and/or modify *
8 * it under the terms of the GNU General Public License as published by * 8 * it under the terms of the GNU General Public License as published by *
9 * the Free Software Foundation; either version 2 of the License, or * 9 * the Free Software Foundation; either version 2 of the License, or *
10 * (at your option) any later version. * 10 * (at your option) any later version. *
11 ***************************************************************************/ 11 ***************************************************************************/
12#include "qtrec.h" 12#include "qtrec.h"
13#include <qpe/qpeapplication.h> 13#include <qpe/qpeapplication.h>
14#include <opie/oapplicationfactory.h>
14 15
15int main(int argc, char* argv[]) { 16OPIE_EXPORT_APP( OApplicationFactory<QtRec> )
16 QPEApplication a(argc, argv);
17 QtRec qtrec;
18 a.showMainWidget( &qtrec);
19 return a.exec();
20}
21
22
diff --git a/noncore/multimedia/opierec/opierec.pro b/noncore/multimedia/opierec/opierec.pro
index 3447f99..aa14864 100644
--- a/noncore/multimedia/opierec/opierec.pro
+++ b/noncore/multimedia/opierec/opierec.pro
@@ -1,13 +1,11 @@
1TEMPLATE = app
2#CONFIG = qt warn_on debug 1#CONFIG = qt warn_on debug
3CONFIG = qt warn_on release 2CONFIG = qt warn_on release quick-app
4HEADERS = adpcm.h pixmaps.h helpwindow.h qtrec.h device.h wavFile.h 3HEADERS = adpcm.h pixmaps.h helpwindow.h qtrec.h device.h wavFile.h
5SOURCES = adpcm.c helpwindow.cpp main.cpp qtrec.cpp device.cpp wavFile.cpp 4SOURCES = adpcm.c helpwindow.cpp main.cpp qtrec.cpp device.cpp wavFile.cpp
6INCLUDEPATH += $(OPIEDIR)/include 5INCLUDEPATH += $(OPIEDIR)/include
7DEPENDPATH += $(OPIEDIR)/include 6DEPENDPATH += $(OPIEDIR)/include
8LIBS += -lqpe -lstdc++ -lpthread 7LIBS += -lqpe -lstdc++ -lpthread
9INTERFACES = 8INTERFACES =
10TARGET = opierec 9TARGET = opierec
11DESTDIR = $(OPIEDIR)/bin
12#TMAKE_CXXFLAGS += -DQT_QWS_VERCEL_IDR -DQWS -fno-exceptions -fno-rtti 10#TMAKE_CXXFLAGS += -DQT_QWS_VERCEL_IDR -DQWS -fno-exceptions -fno-rtti
13include ( $(OPIEDIR)/include.pro ) 11include ( $(OPIEDIR)/include.pro )
diff --git a/noncore/multimedia/opierec/qtrec.h b/noncore/multimedia/opierec/qtrec.h
index 7965c74..5d6ed62 100644
--- a/noncore/multimedia/opierec/qtrec.h
+++ b/noncore/multimedia/opierec/qtrec.h
@@ -47,24 +47,25 @@ class QLineEdit;
47//#define BUFSIZE 2048 47//#define BUFSIZE 2048
48#define FRAGSIZE 0x7fff000A; 48#define FRAGSIZE 0x7fff000A;
49 49
50#define WAVE_FORMAT_DVI_ADPCM (0x0011) 50#define WAVE_FORMAT_DVI_ADPCM (0x0011)
51#define WAVE_FORMAT_PCM (0x0001) 51#define WAVE_FORMAT_PCM (0x0001)
52//AFMT_IMA_ADPCM 52//AFMT_IMA_ADPCM
53 53
54class QtRec : public QWidget 54class QtRec : public QWidget
55{ 55{
56 Q_OBJECT 56 Q_OBJECT
57 57
58public: 58public:
59 static QString appName() { return QString::fromLatin1("opierec"); }
59 QtRec( QWidget* parent=0, const char* name=0, WFlags fl=0 ); 60 QtRec( QWidget* parent=0, const char* name=0, WFlags fl=0 );
60 ~QtRec(); 61 ~QtRec();
61 QSlider *OutputSlider,*InputSlider; 62 QSlider *OutputSlider,*InputSlider;
62 63
63public slots: 64public slots:
64private: 65private:
65// int fragment; 66// int fragment;
66 int fd1; 67 int fd1;
67 int secCount; 68 int secCount;
68 QString timeString; 69 QString timeString;
69 70
70 QLineEdit *renameBox; 71 QLineEdit *renameBox;