CLAM-Development
1.4.0
|
#include <MonoOfflineNetworkPlayer.hxx>
Public Member Functions | |
MonoOfflineNetworkPlayer () | |
void | AddInputFile (const std::string &) |
void | AddOutputFile (const std::string &) |
bool | IsWorking () |
Should return true when the backend is able to run the network. | |
std::string | NonWorkingReason () |
Whenever the backend is not working, this method returns the reason. | |
virtual bool | IsRealTime () const |
virtual void | Start () |
Redefine to make the backend ready to process and start the network. If IsPlaying() should do nothing. If it IsPaused() you should consider just call BePlaying() without starting the processings. | |
virtual void | Stop () |
Redefine it to deactivate the backend. | |
void | ProcessInputFile () |
void | EnableLoopInputWavs () |
void | SetResultWavsTime (double time) |
![]() | |
NetworkPlayer () | |
virtual | ~NetworkPlayer () |
virtual void | Init () |
Redefine to add any initialization after being attached to a network TODO: Consider removing it as just Jack backend uses it but it is redundant. | |
virtual void | Pause () |
void | SetNetworkBackLink (Network &net) |
void | BePaused () |
void | BeStopped () |
void | BePlaying () |
bool | IsPaused () const |
bool | IsStopped () const |
bool | IsPlaying () const |
virtual unsigned | BackendBufferSize () |
virtual unsigned | BackendSampleRate () |
std::string | SourcesAndSinksToString () |
Additional Inherited Members | |
![]() | |
enum | Status { Playing = 0, Stopped = 1, Paused = 2 } |
![]() | |
Network & | GetNetwork () |
unsigned | GetNSinks () const |
unsigned | GetNSources () const |
void | CacheSourcesAndSinks () |
const std::string & | SourceName (unsigned source) const |
const std::string & | SinkName (unsigned sink) const |
void | SetSourceBuffer (unsigned source, const float *data, unsigned nframes) |
void | SetSinkBuffer (unsigned sink, float *data, unsigned nframes) |
void | SetSinkFrameSize (unsigned sink, unsigned frameSize) |
void | SetSourceFrameSize (unsigned source, unsigned frameSize) |
Definition at line 15 of file MonoOfflineNetworkPlayer.hxx.
|
inline |
Definition at line 23 of file MonoOfflineNetworkPlayer.hxx.
void CLAM::MonoOfflineNetworkPlayer::AddInputFile | ( | const std::string & | filename | ) |
Definition at line 128 of file MonoOfflineNetworkPlayer.cxx.
void CLAM::MonoOfflineNetworkPlayer::AddOutputFile | ( | const std::string & | filename | ) |
Definition at line 133 of file MonoOfflineNetworkPlayer.cxx.
|
inline |
Definition at line 39 of file MonoOfflineNetworkPlayer.hxx.
|
inlinevirtual |
Implements CLAM::NetworkPlayer.
Definition at line 32 of file MonoOfflineNetworkPlayer.hxx.
|
virtual |
Should return true when the backend is able to run the network.
Implements CLAM::NetworkPlayer.
Definition at line 9 of file MonoOfflineNetworkPlayer.cxx.
References CLAM::NetworkPlayer::CacheSourcesAndSinks(), CLAM::NetworkPlayer::GetNSinks(), and CLAM::NetworkPlayer::GetNSources().
|
virtual |
Whenever the backend is not working, this method returns the reason.
Implements CLAM::NetworkPlayer.
Definition at line 15 of file MonoOfflineNetworkPlayer.cxx.
References CLAM::NetworkPlayer::GetNSinks(), and CLAM::NetworkPlayer::GetNSources().
void CLAM::MonoOfflineNetworkPlayer::ProcessInputFile | ( | ) |
Definition at line 123 of file MonoOfflineNetworkPlayer.cxx.
References CLAM::Network::Do(), and CLAM::NetworkPlayer::GetNetwork().
|
inline |
Definition at line 43 of file MonoOfflineNetworkPlayer.hxx.
|
virtual |
Redefine to make the backend ready to process and start the network. If IsPlaying() should do nothing. If it IsPaused() you should consider just call BePlaying() without starting the processings.
Implements CLAM::NetworkPlayer.
Definition at line 24 of file MonoOfflineNetworkPlayer.cxx.
References CLAM::NetworkPlayer::BePlaying(), CLAM::NetworkPlayer::CacheSourcesAndSinks(), CLAM_ASSERT, CLAM::Network::Do(), CLAM::NetworkPlayer::GetNetwork(), CLAM::NetworkPlayer::GetNSinks(), CLAM::NetworkPlayer::GetNSources(), CLAM::Processing::GetOutPort(), CLAM::NetworkPlayer::IsPlaying(), CLAM::OutPortBase::SetHop(), CLAM::NetworkPlayer::SetSinkBuffer(), CLAM::OutPortBase::SetSize(), CLAM::NetworkPlayer::SetSourceBuffer(), CLAM::NetworkPlayer::SinkName(), CLAM::NetworkPlayer::SourceName(), and Stop().
|
virtual |
Redefine it to deactivate the backend.
Implements CLAM::NetworkPlayer.
Definition at line 116 of file MonoOfflineNetworkPlayer.cxx.
References CLAM::NetworkPlayer::BeStopped(), and CLAM::NetworkPlayer::IsStopped().
Referenced by Start().