EyeAI
Loading...
Searching...
No Matches
ObjectAudioSourceData.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
5/*
6Struct of all the data a source needs to play a specific object
7at a specific location
8*/
9
12 std::string name;
13 // time where the sound in the .wav file begins and where it ends (in ms)
19
21 int object_id = -1,
22 std::string name = "",
23 int sound_begin = 0,
24 int sound_end = 0,
25 float x1 = 0.0f,
26 float x2 = 0.0f,
27 float x3 = 0.0f
28 )
30 x2_position(x2), x3_position(x3) {}
31};
int object_id
Definition ObjectAudioSourceData.hpp:11
int sound_end
Definition ObjectAudioSourceData.hpp:15
float x2_position
Definition ObjectAudioSourceData.hpp:17
float x3_position
Definition ObjectAudioSourceData.hpp:18
std::string name
Definition ObjectAudioSourceData.hpp:12
ObjectAudioSourceData(int object_id=-1, std::string name="", int sound_begin=0, int sound_end=0, float x1=0.0f, float x2=0.0f, float x3=0.0f)
Definition ObjectAudioSourceData.hpp:20
int sound_begin
Definition ObjectAudioSourceData.hpp:14
float x1_position
Definition ObjectAudioSourceData.hpp:16