OpenALPrivate.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015-2016 Open Source Robotics Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16 */
17 #ifndef _GAZEBO_UTIL_OPENAL_PRIVATE_HH_
18 #define _GAZEBO_UTIL_OPENAL_PRIVATE_HH_
19 
20 #include <string>
21 #include <vector>
22 
23 #include "gazebo/gazebo_config.h"
24 #include "gazebo/util/UtilTypes.hh"
25 
26 #ifdef HAVE_OPENAL
27 
28 struct ALCcontext_struct;
29 struct ALCdevice_struct;
30 
31 namespace gazebo
32 {
33  namespace util
34  {
38  {
40  public: ALCcontext_struct *context;
41 
43  public: ALCdevice_struct *audioDevice;
44 
47  };
48 
52  {
54  public: unsigned int alSource;
55 
57  public: unsigned int alBuffer;
58 
61  public: std::vector<std::string> collisionNames;
62  };
63  }
64 }
65 #endif
66 #endif
unsigned int alSource
OpenAL source index.
Definition: OpenALPrivate.hh:54
ALCdevice_struct * audioDevice
OpenAL audio device pointer.
Definition: OpenALPrivate.hh:43
std::shared_ptr< OpenALSink > OpenALSinkPtr
Definition: UtilTypes.hh:44
Definition: OpenALPrivate.hh:51
Definition: OpenALPrivate.hh:37
ALCcontext_struct * context
OpenAL audio context pointer.
Definition: OpenALPrivate.hh:40
OpenALSinkPtr sink
OpenAL sink pointer.
Definition: OpenALPrivate.hh:46
unsigned int alBuffer
OpenAL buffer index.
Definition: OpenALPrivate.hh:57
std::vector< std::string > collisionNames
Names of collision objects that should trigger audio playback.
Definition: OpenALPrivate.hh:61