# AudioFactory

- *group* Telematics\_audio

    - - class AudioFactory

    - Allows the creation of an [IAudioManager](https://docs.qualcomm.com/doc/80-PF458-8/topic/audio_manager.html#a00265) instance.

Public Functions

- virtual std::shared\_ptr&lt;[IAudioManager](https://docs.qualcomm.com/doc/80-PF458-8/topic/class_a00265.html#_CPPv4N5telux5audio13IAudioManagerE)&gt; getAudioManager(telux::common::[InitResponseCb](https://docs.qualcomm.com/doc/80-PF458-8/topic/typedef_a00235_1ab92f90010203f914a62cec6bd7af0a1a.html#_CPPv4N5telux6common14InitResponseCbE) callback = nullptr) = 0

    - Gets the [IAudioManager](https://docs.qualcomm.com/doc/80-PF458-8/topic/audio_manager.html#a00265) instance.

- Parameters:

    - **callback** – **[in]** Optional, callback to know the status of the AudioManager initialization

- Returns:

    - [IAudioManager](https://docs.qualcomm.com/doc/80-PF458-8/topic/audio_manager.html#a00265) instance

- virtual telux::common::[ErrorCode](https://docs.qualcomm.com/doc/80-PF458-8/topic/enum_a00023_1ga84acdb74b7d34616b1ca497c7369810d.html#_CPPv4N5telux6common9ErrorCodeE) getAudioPlayer(std::shared\_ptr&lt;[IAudioPlayer](https://docs.qualcomm.com/doc/80-PF458-8/topic/class_a00276.html#_CPPv4N5telux5audio12IAudioPlayerE)&gt; &audioPlayer) = 0

    - Gets the [IAudioPlayer](https://docs.qualcomm.com/doc/80-PF458-8/topic/audio_player.html#a00276) instance.

- Parameters:

    - **audioPlayer** – **[out]** [IAudioPlayer](https://docs.qualcomm.com/doc/80-PF458-8/topic/audio_player.html#a00276) instance

- Returns:

    - telux::common::ErrorCode::SUCCESS, if the [IAudioPlayer](https://docs.qualcomm.com/doc/80-PF458-8/topic/audio_player.html#a00276) instance is created successfully, telux::common::ErrorCode::OPERATION\_TIMEOUT if the audio service does not become available for functional operation, an appropriate error code in all other cases.

Public Static Functions

- static [AudioFactory](https://docs.qualcomm.com/doc/80-PF458-8/topic/class_a00258.html#_CPPv4N5telux5audio12AudioFactoryE) &getInstance()

    - Gets the [AudioFactory](https://docs.qualcomm.com/doc/80-PF458-8/topic/audio_factory.html#a00258) instance.

Private Functions

- AudioFactory(const [AudioFactory](https://docs.qualcomm.com/doc/80-PF458-8/topic/class_a00258.html#_CPPv4N5telux5audio12AudioFactory12AudioFactoryERK12AudioFactory)&) = delete

    - 

- [AudioFactory](https://docs.qualcomm.com/doc/80-PF458-8/topic/class_a00258.html#_CPPv4N5telux5audio12AudioFactoryE) &operator=(const [AudioFactory](https://docs.qualcomm.com/doc/80-PF458-8/topic/class_a00258.html#_CPPv4N5telux5audio12AudioFactoryE)&) = delete

    -

Last Published: May 20, 2026

[Previous Topic
telux::audio::IAudioPlayer](https://docs.qualcomm.com/bundle/publicresource/80-PF458-8/topics/audio_player.md) [Next Topic
Data](https://docs.qualcomm.com/bundle/publicresource/80-PF458-8/topics/data.md)