CLAM-Development  1.4.0
MonoOfflineNetworkPlayer.hxx
Go to the documentation of this file.
1 
2 //TODO add mp3/ogg support to NetworkPlayer and deprecate this class. OfflineNetworkPlayer excepts multi-track wav files
3 
4 #ifndef _MonoOfflineNetworkPlayer_hxx_
5 #define _MonoOfflineNetworkPlayer_hxx_
6 
7 #include "NetworkPlayer.hxx"
8 #include "AudioSource.hxx"
9 #include "AudioSink.hxx"
10 
11 namespace CLAM
12 {
13 
14 
16 {
17  std::vector<std::string> _filenames;
18  bool _enableLoopInputWavs;
19  float _resultWavsTime;
20 
21 
22 public:
24  : _enableLoopInputWavs(false)
25  , _resultWavsTime(0.0)
26  {}
27  void AddInputFile( const std::string& );
28  void AddOutputFile( const std::string& );
29  // base class (virtual) interface:
30  bool IsWorking();
31  std::string NonWorkingReason();
32  virtual bool IsRealTime() const { return false; }
33  virtual void Start();
34  virtual void Stop();
35 
36  void ProcessInputFile();
37 
38 // specific interface - not inherited
40  {
41  _enableLoopInputWavs=true;
42  }
43  void SetResultWavsTime( double time)
44  {
45  _resultWavsTime=time;
46  }
47 };
48 
49 }
50 #endif
51