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_artsplug/nullPlayObject_impl.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_artsplug/nullPlayObject_impl.h')
-rw-r--r-- | mpeglib_artsplug/nullPlayObject_impl.h | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/mpeglib_artsplug/nullPlayObject_impl.h b/mpeglib_artsplug/nullPlayObject_impl.h new file mode 100644 index 00000000..c557b2f0 --- /dev/null +++ b/mpeglib_artsplug/nullPlayObject_impl.h @@ -0,0 +1,75 @@ +/* + this playobkect does nothing + Copyright (C) 2000 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 __NULLPLAYOBJECT_IMPL_H +#define __NULLPLAYOBJECT_IMPL_H + + + +#include <math.h> +#include "decoderBaseObject.h" +#include "stdsynthmodule.h" +#include "convert.h" +#include <X11/Xlib.h> +#include <audiosubsys.h> +#include <iostream> +#include <stdio.h> +#include <string.h> + + +using namespace std; +using Arts::poState; +using Arts::poTime; +using Arts::poCapabilities; + + +class NULLPlayObject_impl : + virtual public Arts::StdSynthModule, + virtual public NULLPlayObject_skel { + + poState _state; + +public: + + NULLPlayObject_impl(); + virtual ~NULLPlayObject_impl(); + + + bool loadMedia(const string &filename); + string description(); + void description(const string &); + + poTime currentTime(); + poTime overallTime(); + + poCapabilities capabilities(); + string mediaName(); + poState state(); + void play(); + void halt(); + + void blocking(bool newvalue); + bool blocking(); + + void seek(const class poTime &); + void pause(); + void streamInit(); + void streamStart(); + void calculateBlock(unsigned long samples,float* left,float* right); + void streamEnd(); + +}; + + + +#endif |