JS8Call-Improved master
Loading...
Searching...
No Matches
NotificationAudio Class Reference
Inheritance diagram for NotificationAudio:
Collaboration diagram for NotificationAudio:

Public Slots

void status (QString message)
 Handles status messages from the SoundOutput.
void error (QString message)
 Handles error messages from the SoundOutput.
void setDevice (const QAudioDevice &device, unsigned msBuffer=0)
 Sets the audio device and buffer size.
void play (const QString &filePath)
 Plays an audio file from the specified file path.
void stop ()
 Stops audio playback.

Public Member Functions

 NotificationAudio (QObject *parent=nullptr)
 Constructs a NotificationAudio object.
 ~NotificationAudio ()
 Destructs the NotificationAudio object.

Constructor & Destructor Documentation

◆ NotificationAudio()

NotificationAudio::NotificationAudio ( QObject * parent = nullptr)
explicit

Constructs a NotificationAudio object.

Parameters
parentThe parent QObject.
Returns
None.
Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ error

void NotificationAudio::error ( QString message)
slot

Handles error messages from the SoundOutput.

Parameters
messageThe error message.
Here is the caller graph for this function:

◆ play

void NotificationAudio::play ( const QString & filePath)
slot

Plays an audio file from the specified file path.

Parameters
filePathThe path to the audio file.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setDevice

void NotificationAudio::setDevice ( const QAudioDevice & device,
unsigned msBuffer = 0 )
slot

Sets the audio device and buffer size.

Parameters
deviceThe QAudioDevice to use.
msBufferThe buffer size in milliseconds.
Here is the caller graph for this function:

◆ status

void NotificationAudio::status ( QString message)
slot

Handles status messages from the SoundOutput.

Parameters
messageThe status message.
Here is the call graph for this function:

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