summaryrefslogtreecommitdiffstats
path: root/mpeglib_artsplug/nullPlayObject_impl.cpp
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commite2de64d6f1beb9e492daf5b886e19933c1fa41dd (patch)
tree9047cf9e6b5c43878d5bf82660adae77ceee097a /mpeglib_artsplug/nullPlayObject_impl.cpp
downloadtdemultimedia-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.cpp')
-rw-r--r--mpeglib_artsplug/nullPlayObject_impl.cpp120
1 files changed, 120 insertions, 0 deletions
diff --git a/mpeglib_artsplug/nullPlayObject_impl.cpp b/mpeglib_artsplug/nullPlayObject_impl.cpp
new file mode 100644
index 00000000..2e291ac2
--- /dev/null
+++ b/mpeglib_artsplug/nullPlayObject_impl.cpp
@@ -0,0 +1,120 @@
+/*
+ base class for all mpeglib decoders
+ 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
+
+ */
+
+#include "nullPlayObject_impl.h"
+#include "debug.h"
+
+NULLPlayObject_impl::NULLPlayObject_impl() {
+ _state=Arts::posIdle;
+
+}
+
+NULLPlayObject_impl::~NULLPlayObject_impl() {
+ arts_debug("~NULLPlayObject_impl -s");
+}
+
+
+bool NULLPlayObject_impl::loadMedia(const string &filename) {
+ arts_debug("NULLPlayObject_impl::loadMedia");
+ return true;
+}
+
+
+
+string NULLPlayObject_impl::description() {
+ arts_debug("description");
+ string back;
+ return back;
+}
+
+void NULLPlayObject_impl::description(const string &) {
+ arts_debug("description");
+ // what should do this?
+}
+
+Arts::poTime NULLPlayObject_impl::currentTime() {
+ poTime time;
+ return time;
+}
+
+
+
+poTime NULLPlayObject_impl::overallTime() {
+ poTime time;
+ return time;
+}
+
+poCapabilities NULLPlayObject_impl::capabilities() {
+ arts_debug("capabilities");
+ return Arts::capPause; /* no seek supported */
+}
+
+string NULLPlayObject_impl::mediaName() {
+ arts_debug("mediaName");
+ string back;
+ // whats a mediaName?
+ return back;
+}
+
+poState NULLPlayObject_impl::state() {
+ return _state;
+}
+
+void NULLPlayObject_impl::play() {
+ arts_debug("NULLPlayObject_impl::play");
+ _state = Arts::posPlaying;
+}
+
+void NULLPlayObject_impl::seek(const class poTime& seekTime) {
+ long sec=seekTime.seconds;
+
+ arts_debug("NULLPlayObject_impl::sec is %d:", sec);
+
+}
+
+void NULLPlayObject_impl::pause() {
+ arts_debug("NULLPlayObject_impl::pause");
+ _state = Arts::posPaused;
+}
+
+void NULLPlayObject_impl::halt() {
+ arts_debug("NULLPlayObject_impl::halt");
+ _state=Arts::posIdle;
+}
+
+
+void NULLPlayObject_impl::streamInit() {
+ arts_debug(" NULLPlayObject_impl::streamInit");
+}
+
+
+void NULLPlayObject_impl::streamStart() {
+ arts_debug(" NULLPlayObject_impl::streamStart");
+}
+
+void NULLPlayObject_impl::calculateBlock(unsigned long samples,
+ float* left , float* right) {
+
+
+ arts_debug(" NULLPlayObject_impl::calculateBlock");
+
+ unsigned int i;
+ for(i=0;i<samples;i++)
+ left[i] = right[i] = 0.0;
+}
+
+void NULLPlayObject_impl::streamEnd() {
+ arts_debug("NULLPlayObject_impl::streamEnd");
+}
+
+
+REGISTER_IMPLEMENTATION(NULLPlayObject_impl);