Free Electron
ListenerI.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 __audio_ListenerI_h__
8 #define __audio_ListenerI_h__
9 namespace fe
10 {
11 namespace ext
12 {
13 
14 /**************************************************************************//**
15  @brief Sound receiver
16 
17  @ingroup audio
18 *//***************************************************************************/
19 class FE_DL_EXPORT ListenerI:
20  virtual public Component,
21  public CastableAs<ListenerI>
22 {
23  public:
24 
25 virtual Result setLocation(const SpatialVector& location) =0;
26 virtual Result setOrientation(const SpatialVector& at,
27  const SpatialVector& up) =0;
28 virtual Result setVelocity(const SpatialVector& velocity) =0;
29 };
30 
31 } /* namespace ext */
32 } /* namespace fe */
33 
34 #endif /* __audio_ListenerI_h__ */
kernel
Definition: namespace.dox:3
Sound receiver.
Definition: ListenerI.h:19
Result
Generalized return value indicating success or failure, and why.
Definition: Result.h:24
Base for all interfacable components.
Definition: Component.h:20
Per-class participation non-RTTI fallback dynamic casting mechanism.
Definition: Castable.h:192