Choreonoid  1.8
PulseAudioManager.h
Go to the documentation of this file.
1 
6 #ifndef CNOID_MEDIA_PLUGIN_PULSE_AUDIO_MANAGER_H
7 #define CNOID_MEDIA_PLUGIN_PULSE_AUDIO_MANAGER_H
8 
9 #include <string>
10 #include "exportdecl.h"
11 
12 namespace cnoid {
13 
14 class ExtensionManager;
15 class PulseAudioManagerImpl;
16 
18 {
19 public:
20  static void initialize(ExtensionManager* ext);
21  static PulseAudioManager* instance();
22  virtual ~PulseAudioManager();
23 
24  bool playAudioFile(const std::string& filename, double volumeRatio = -1.0);
25 
26 private:
28 
29  PulseAudioManagerImpl* impl;
30 };
31 
32 }
33 
34 #endif
cnoid::PulseAudioManager
Definition: PulseAudioManager.h:17
cnoid::PulseAudioManager::instance
static PulseAudioManager * instance()
Definition: PulseAudioManager.cpp:150
cnoid::ExtensionManager
Definition: ExtensionManager.h:23
cnoid::PulseAudioManager::playAudioFile
bool playAudioFile(const std::string &filename, double volumeRatio=-1.0)
Definition: PulseAudioManager.cpp:280
cnoid::PulseAudioManager::initialize
static void initialize(ExtensionManager *ext)
Definition: PulseAudioManager.cpp:142
cnoid
Definition: AbstractSceneLoader.h:11
cnoid::PulseAudioManager::~PulseAudioManager
virtual ~PulseAudioManager()
Definition: PulseAudioManager.cpp:247