blob: f86e2ffd7951a67cdc680560f9b50c0eae96e464 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
#ifndef SPATIALAUDIO_H_EH11SAQC
#define SPATIALAUDIO_H_EH11SAQC
#include <map>
#include "uscxml/Utilities.h"
#include "../MMIComponent.h"
extern "C" {
# include "miles/audio.h"
# include "miles/audio_codec.h"
# include "miles/audio_device.h"
}
namespace uscxml {
class Interpreter;
class SpatialAudio : public MMIComponent {
public:
SpatialAudio();
virtual ~SpatialAudio();
virtual Invoker* create(Interpreter* interpreter);
virtual Data getDataModelVariables();
virtual void send(SendRequest& req);
virtual void cancel(const std::string sendId);
virtual void invoke(InvokeRequest& req);
virtual void sendToParent(SendRequest& req);
void getPosFromParams(std::map<std::string, std::list<std::string> >& params, float* position);
static float posToRadian(std::string& position);
protected:
std::string _invokeId;
Interpreter* _invokedInterpreter;
std::stringstream _dataStream;
float* _pos;
float* _listener;
bool _audioDevOpen;
int _audioDevIndex;
struct miles_audio_device* _audioDev;
};
}
#endif /* end of include guard: SPATIALAUDIO_H_EH11SAQC */
|