Free Electron
ListenerAL.h
Go to the documentation of this file.
1 /* Copyright (C) 2003-2021 Free Electron Organization
2  Any use of this software requires a license. If a valid license
3  was not distributed with this file, visit freeelectron.org. */
4 
5 /** @file */
6 
7 #ifndef __openal_ListenerAL_h__
8 #define __openal_ListenerAL_h__
9 namespace fe
10 {
11 namespace ext
12 {
13 
14 /**************************************************************************//**
15  @brief Listener using OpenAL
16 
17  @ingroup openal
18 *//***************************************************************************/
19 class ListenerAL:
20  public Initialize<ListenerAL>,
21  virtual public ListenerI
22 {
23  public:
24  ListenerAL(void);
25 virtual ~ListenerAL(void);
26 
27  void initialize(void);
28 
29  //* As ListenerI
30 virtual Result setLocation(const SpatialVector& location);
31 virtual Result setOrientation(const SpatialVector& at,const SpatialVector& up);
32 virtual Result setVelocity(const SpatialVector& velocity);
33 };
34 
35 } /* namespace ext */
36 } /* namespace fe */
37 
38 #endif /* __openal_ListenerAL_h__ */
39 
Listener using OpenAL.
Definition: ListenerAL.h:19
kernel
Definition: namespace.dox:3
Per-class participation in the Initialized <> mechanism.
Definition: Initialized.h:117
Sound receiver.
Definition: ListenerI.h:19
Result
Generalized return value indicating success or failure, and why.
Definition: Result.h:24