arduino-audio-tools
Loading...
Searching...
No Matches
AudioInfoSource Class Reference

Supports the subscription to audio change notifications. More...

#include <CodecOpusOgg.h>

Inheritance diagram for AudioInfoSource:
RTSPClient< EthernetClient, EthernetUDP > RTSPClient< WiFiClient, WiFiUDP > AudioDecoder AudioOutput AudioStream RTSPClient< TcpClient, UdpSocket > StreamingDecoder AudioDecoder AudioDecoder AudioOutput AudioOutput AudioStream AudioStream

Public Member Functions

virtual void addNotifyAudioChange (AudioInfoSupport &bi)
 Adds target to be notified about audio changes.
virtual void addNotifyAudioChange (AudioInfoSupport &bi)
 Adds target to be notified about audio changes.
virtual void clearNotifyAudioChange ()
 Deletes all change notify subscriptions.
virtual void clearNotifyAudioChange ()
 Deletes all change notify subscriptions.
bool isNotifyActive ()
 Checks if the automatic AudioInfo update is active.
bool isNotifyActive ()
 Checks if the automatic AudioInfo update is active.
virtual bool removeNotifyAudioChange (AudioInfoSupport &bi)
 Removes a target in order not to be notified about audio changes.
virtual bool removeNotifyAudioChange (AudioInfoSupport &bi)
 Removes a target in order not to be notified about audio changes.
void setNotifyActive (bool flag)
 Deactivate/Reactivate automatic AudioInfo updates: (default is active).
void setNotifyActive (bool flag)
 Deactivate/Reactivate automatic AudioInfo updates: (default is active).

Protected Member Functions

void notifyAudioChange (AudioInfo info)
void notifyAudioChange (AudioInfo info)

Protected Attributes

bool is_notify_active = true
Vector< AudioInfoSupport * > notify_vector

Detailed Description

Supports the subscription to audio change notifications.

Member Function Documentation

◆ addNotifyAudioChange() [1/2]

virtual void addNotifyAudioChange ( AudioInfoSupport & bi)
inlinevirtual

Adds target to be notified about audio changes.

Reimplemented in CodecNOP, CodecNOP, EncodedAudioOutput, and EncodedAudioStream.

◆ addNotifyAudioChange() [2/2]

virtual void addNotifyAudioChange ( AudioInfoSupport & bi)
inlinevirtual

Adds target to be notified about audio changes.

Reimplemented in CodecNOP, CodecNOP, EncodedAudioOutput, and EncodedAudioStream.

◆ clearNotifyAudioChange() [1/2]

virtual void clearNotifyAudioChange ( )
inlinevirtual

◆ clearNotifyAudioChange() [2/2]

virtual void clearNotifyAudioChange ( )
inlinevirtual

◆ isNotifyActive() [1/2]

bool isNotifyActive ( )
inline

Checks if the automatic AudioInfo update is active.

◆ isNotifyActive() [2/2]

bool isNotifyActive ( )
inline

Checks if the automatic AudioInfo update is active.

◆ notifyAudioChange() [1/2]

void notifyAudioChange ( AudioInfo info)
inlineprotected

◆ notifyAudioChange() [2/2]

void notifyAudioChange ( AudioInfo info)
inlineprotected

◆ removeNotifyAudioChange() [1/2]

virtual bool removeNotifyAudioChange ( AudioInfoSupport & bi)
inlinevirtual

Removes a target in order not to be notified about audio changes.

◆ removeNotifyAudioChange() [2/2]

virtual bool removeNotifyAudioChange ( AudioInfoSupport & bi)
inlinevirtual

Removes a target in order not to be notified about audio changes.

◆ setNotifyActive() [1/2]

void setNotifyActive ( bool flag)
inline

Deactivate/Reactivate automatic AudioInfo updates: (default is active).

◆ setNotifyActive() [2/2]

void setNotifyActive ( bool flag)
inline

Deactivate/Reactivate automatic AudioInfo updates: (default is active).

Member Data Documentation

◆ is_notify_active

bool is_notify_active = true
protected

◆ notify_vector

Vector< AudioInfoSupport * > notify_vector
protected

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