ALAudioSourceLocalization API¶
NAOqi Audio - Overview | API
Namespace : AL
#include <alproxies/alaudiosourcelocalizationproxy.h>
Method list¶
As any module, this module inherits methods from ALModule API. It also has the following specific methods:
-
class
ALAudioSourceLocalizationProxy
¶
Methods¶
-
void
ALAudioSourceLocalizationProxy::
setParameter
(const std::string& parameter, const AL::ALValue& value)¶ Deprecated since version 1.22: use
ALSoundLocalizationProxy::setParameter
instead.Sets parameters.
Parameters: - parameter – Name of the parameter
- value – Value of the parameter
-
void
ALAudioSourceLocalizationProxy::
subscribe
(const std::string& name)¶ Deprecated since version 1.22: use
ALSoundLocalizationProxy::subscribe
instead.Subscribes to ALAudioSourceLocalization.
Parameters: - name – Name used to identify the subscriber
-
void
ALAudioSourceLocalizationProxy::
unsubscribe
(const std::string& name)¶ Deprecated since version 1.22: use
ALSoundLocalizationProxy::unsubscribe
instead.Unsubscribes to ALAudioSourceLocalization.
Parameters: - name – Name with which
ALAudioSourceLocalizationProxy::subscribe
was called.
- name – Name with which
Events¶
-
Event:callback(std::string eventName, AL::ALValue value, std::string subscriberIdentifier)¶
"ALAudioSourceLocalization/SoundLocated"
Deprecated since version 1.22: use
ALSoundLocalization/SoundLocated()
instead.Raised when a sound source has been localized.
Parameters: - eventName (std::string) – “ALAudioSourceLocalization/SoundLocated”
- value – Array containing information about the localized sounds. Please refer to ALSoundLocalization for details.
- subscriberIdentifier (std::string) –
-
Event:callback(std::string eventName, AL::ALValue value, std::string subscriberIdentifier)¶
"ALAudioSourceLocalization/SoundsLocated"
Deprecated since version 1.22: use
ALSoundLocalization/SoundsLocated()
instead.Raised every 170ms if one or several sounds have been localized during that timeframe.
Parameters: - eventName (std::string) – “ALAudioSourceLocalization/SoundsLocated”
- value – Array containing information about the localized sounds. Please refer to ALSoundLocalization for details.
- subscriberIdentifier (std::string) –