~ubuntu-branches/ubuntu/hoary/kdemultimedia/hoary

« back to all changes in this revision

Viewing changes to mpeglib_artsplug/nullPlayObject_impl.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Schulze
  • Date: 2003-01-22 15:00:51 UTC
  • Revision ID: james.westby@ubuntu.com-20030122150051-uihwkdoxf15mi1tn
Tags: upstream-2.2.2
ImportĀ upstreamĀ versionĀ 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
  this playobkect does nothing
 
3
  Copyright (C) 2000  Martin Vogt
 
4
 
 
5
  This program is free software; you can redistribute it and/or modify
 
6
  it under the terms of the GNU Library General Public License as published by
 
7
  the Free Software Foundation.
 
8
 
 
9
  For more information look at the file COPYRIGHT in this package
 
10
 
 
11
 */
 
12
 
 
13
 
 
14
#ifndef __NULLPLAYOBJECT_IMPL_H
 
15
#define __NULLPLAYOBJECT_IMPL_H
 
16
 
 
17
 
 
18
 
 
19
#include <math.h>
 
20
#include "decoderBaseObject.h"
 
21
#include "stdsynthmodule.h"
 
22
#include "convert.h"
 
23
#include <X11/Xlib.h>
 
24
#include <audiosubsys.h>
 
25
#include <iostream.h>
 
26
#include <stdio.h>
 
27
#include <string.h>
 
28
 
 
29
 
 
30
using namespace std;
 
31
using Arts::poState;
 
32
using Arts::poTime;
 
33
using Arts::poCapabilities;
 
34
 
 
35
 
 
36
class NULLPlayObject_impl :
 
37
  virtual public Arts::StdSynthModule,
 
38
  virtual public NULLPlayObject_skel {
 
39
 
 
40
  poState _state;
 
41
 
 
42
public:
 
43
 
 
44
  NULLPlayObject_impl();
 
45
  virtual ~NULLPlayObject_impl();
 
46
 
 
47
 
 
48
  bool loadMedia(const string &filename);
 
49
  string description();
 
50
  void description(const string &);
 
51
 
 
52
  poTime currentTime();
 
53
  poTime overallTime();
 
54
 
 
55
  poCapabilities capabilities();
 
56
  string mediaName();
 
57
  poState state();
 
58
  void play();
 
59
  void halt();
 
60
 
 
61
  void blocking(bool newvalue);
 
62
  bool blocking();
 
63
 
 
64
  void seek(const class poTime &);
 
65
  void pause();
 
66
  void streamInit();
 
67
  void streamStart();
 
68
  void calculateBlock(unsigned long samples,float* left,float* right);
 
69
  void streamEnd();
 
70
 
 
71
};
 
72
 
 
73
 
 
74
 
 
75
#endif