IWebAudioPlayer factory class, returns a concrete implementation of IWebAudioPlayer.
More...
#include <IWebAudioPlayer.h>
IWebAudioPlayer factory class, returns a concrete implementation of IWebAudioPlayer.
◆ createFactory()
◆ createWebAudioPlayer()
virtual std::unique_ptr<IWebAudioPlayer> firebolt::rialto::IWebAudioPlayerFactory::createWebAudioPlayer |
( |
std::weak_ptr< IWebAudioPlayerClient > |
client, |
|
|
const std::string & |
audioMimeType, |
|
|
const uint32_t |
priority, |
|
|
std::weak_ptr< const WebAudioConfig > |
config |
|
) |
| const |
|
pure virtual |
IWebAudioPlayer factory method, returns a concrete implementation of IWebAudioPlayer for playback of audio.
- Parameters
-
[in] | client | The Web Audio Player client |
[in] | audioMimeType | The audio encoding format, currently only "audio/x-raw" (PCM) |
[in] | priority | Priority value for this pipeline. |
[in] | config | Additional type dependent configuration data or nullptr |
Some platforms have limited numbers of audio playbacks that can be mixed. The client application should therefore assign a priority to each audio player it creates, starting with priority 1 for the most important, priority 2 for the next etc. If a platform supports 'n' players, then any player with priority>n will appear to function normally by but the audio data will be silently discarded.
- Return values
-
the | new Web Audio Player instance or null on error. |
The documentation for this class was generated from the following file: