diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | e2de64d6f1beb9e492daf5b886e19933c1fa41dd (patch) | |
tree | 9047cf9e6b5c43878d5bf82660adae77ceee097a /mpeglib/lib/output/audioTime.h | |
download | tdemultimedia-e2de64d6f1beb9e492daf5b886e19933c1fa41dd.tar.gz tdemultimedia-e2de64d6f1beb9e492daf5b886e19933c1fa41dd.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'mpeglib/lib/output/audioTime.h')
-rw-r--r-- | mpeglib/lib/output/audioTime.h | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/mpeglib/lib/output/audioTime.h b/mpeglib/lib/output/audioTime.h new file mode 100644 index 00000000..3b16bb02 --- /dev/null +++ b/mpeglib/lib/output/audioTime.h @@ -0,0 +1,68 @@ +/* + defines the format of an audio stream + Copyright (C) 1999 Martin Vogt + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU Library General Public License as published by + the Free Software Foundation. + + For more information look at the file COPYRIGHT in this package + + */ + + + + +#ifndef __AUDIOTIME_H +#define __AUDIOTIME_H + +#include "../util/timeWrapper.h" + +class AudioTime { + + int stereo; + int samplesize; + int speed; + int _sign; + int _bigendian; + float time; + + public: + AudioTime(); + ~AudioTime(); + + //cd-quality:true,16,44100 + void setFormat(int stereo,int samplesize,int speed,int sign=true, int bigendian=false); + + int getStereo(); + int getSampleSize(); + int getSpeed(); + int getSign(); + int getBigendian(); + + void setStereo(int stereo); + void setSampleSize(int samplesize); + void setSpeed(int speed); + void setSign(int sign); + void setBigendian(int bigendian); + + + float getTime(); + void setTime(float time); + void forwardTime(int bytes); + + // do not modify the internal time + float calculateTime(int bytes); + int calculateBytes(float time); + + void sleepWrite(int size); + + + void copyTo(AudioTime* audioTime); + void print(); + +}; + + + +#endif |