# SoftBank Robotics documentation What's new in NAOqi 2.8?

# 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`

- `ALAudioSourceLocalizationProxy::setParameter`
- `ALAudioSourceLocalizationProxy::subscribe`
- `ALAudioSourceLocalizationProxy::unsubscribe`

## Event list

- `ALAudioSourceLocalization/SoundLocated()`
- `ALAudioSourceLocalization/SoundsLocated()`

## 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.

## Events

Event: `"ALAudioSourceLocalization/SoundLocated"`
callback(std::string eventName, AL::ALValue value, std::string subscriberIdentifier)

  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: `"ALAudioSourceLocalization/SoundsLocated"`
callback(std::string eventName, AL::ALValue value, std::string subscriberIdentifier)

  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) –

Glossary Site map Index Support Contact Legal Notices