AWS SDK for C++  1.9.44
AWS SDK for C++
Public Member Functions | List of all members
Aws::TextToSpeech::CoreAudioPCMOutputDriver Class Reference

#include <CoreAudioPCMOutputDriver.h>

+ Inheritance diagram for Aws::TextToSpeech::CoreAudioPCMOutputDriver:

Public Member Functions

 CoreAudioPCMOutputDriver ()
virtual ~CoreAudioPCMOutputDriver ()
 CoreAudioPCMOutputDriver (const CoreAudioPCMOutputDriver &)=delete
CoreAudioPCMOutputDriveroperator= (const CoreAudioPCMOutputDriver &)=delete
 CoreAudioPCMOutputDriver (CoreAudioPCMOutputDriver &&)=delete
CoreAudioPCMOutputDriveroperator= (CoreAudioPCMOutputDriver &&)=delete
bool WriteBufferToDevice (const unsigned char *buffer, size_t bufferSize) override
Aws::Vector< DeviceInfoEnumerateDevices () const override
void SetActiveDevice (const DeviceInfo &device, const CapabilityInfo &capability) override
const char * GetName () const override
void Prime () override
void Flush () override
- Public Member Functions inherited from Aws::TextToSpeech::PCMOutputDriver
virtual ~PCMOutputDriver ()

Detailed Description

Apple implementation for PCM output.

Definition at line 23 of file CoreAudioPCMOutputDriver.h.

Constructor & Destructor Documentation

◆ CoreAudioPCMOutputDriver() [1/3]

Aws::TextToSpeech::CoreAudioPCMOutputDriver::CoreAudioPCMOutputDriver ( )

◆ ~CoreAudioPCMOutputDriver()

virtual Aws::TextToSpeech::CoreAudioPCMOutputDriver::~CoreAudioPCMOutputDriver ( )

◆ CoreAudioPCMOutputDriver() [2/3]

Aws::TextToSpeech::CoreAudioPCMOutputDriver::CoreAudioPCMOutputDriver ( const CoreAudioPCMOutputDriver )

◆ CoreAudioPCMOutputDriver() [3/3]

Aws::TextToSpeech::CoreAudioPCMOutputDriver::CoreAudioPCMOutputDriver ( CoreAudioPCMOutputDriver &&  )

Member Function Documentation

◆ EnumerateDevices()

Aws::Vector<DeviceInfo> Aws::TextToSpeech::CoreAudioPCMOutputDriver::EnumerateDevices ( ) const

Enumerate all devices and their capabilities. The device id and the capability will be returned to you when a user calls SetActiveDevice();

Implements Aws::TextToSpeech::PCMOutputDriver.

◆ Flush()

void Aws::TextToSpeech::CoreAudioPCMOutputDriver::Flush ( )

Not used for most implementations. Some operating systems however, expect a constant stream of data to the device. Since playing will be batchy, Flush will be called after each batch of audio so that you can pause or reset the audio device.

Reimplemented from Aws::TextToSpeech::PCMOutputDriver.

◆ GetName()

const char* Aws::TextToSpeech::CoreAudioPCMOutputDriver::GetName ( ) const

Get a friendly name for this driver.

Implements Aws::TextToSpeech::PCMOutputDriver.

◆ operator=() [1/2]

CoreAudioPCMOutputDriver& Aws::TextToSpeech::CoreAudioPCMOutputDriver::operator= ( const CoreAudioPCMOutputDriver )

◆ operator=() [2/2]

CoreAudioPCMOutputDriver& Aws::TextToSpeech::CoreAudioPCMOutputDriver::operator= ( CoreAudioPCMOutputDriver &&  )

◆ Prime()

void Aws::TextToSpeech::CoreAudioPCMOutputDriver::Prime ( )

Not used for most implementations. Some operating systems however, expect a constant stream of data to the device. Since playing will be batchy, Prime() will be called before each new batch of audio data. This is the chance to reset the device so it can play the audio.

Reimplemented from Aws::TextToSpeech::PCMOutputDriver.

◆ SetActiveDevice()

void Aws::TextToSpeech::CoreAudioPCMOutputDriver::SetActiveDevice ( const DeviceInfo ,
const CapabilityInfo  

Set the device and format that this driver should use. After this call, you should expect all calls to WriteBufferToDevice() to be for the specified device and format.

Implements Aws::TextToSpeech::PCMOutputDriver.

◆ WriteBufferToDevice()

bool Aws::TextToSpeech::CoreAudioPCMOutputDriver::WriteBufferToDevice ( const unsigned char *  ,

Write a buffer of audio data to a device. The format of this data will be set in the SetActiveDevice function. returns true if audio was successfully written to the device, false otherwise.

Implements Aws::TextToSpeech::PCMOutputDriver.

The documentation for this class was generated from the following file: