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

Public Slots

void setFormat (QAudioDevice const &device, unsigned channels, unsigned msBuffered=0u)
 Sets the audio format based on the device and channel count.
void setDeviceFormat (QAudioDevice const &device, QAudioFormat const &format, unsigned msBuffered=0u)
 Sets the audio device and format.
void restart (QIODevice *)
 Restarts audio output with the specified source.
void suspend ()
 Suspends audio output.
void resume ()
 Resumes audio output.
void reset ()
 Resets the audio output.
void stop ()
 Stops audio output.
void setAttenuation (qreal)
 Sets the attenuation in decibels.
void resetAttenuation ()
 Resets the attenuation to zero.

Signals

void error (QString message) const
void status (QString message) const

Public Member Functions

qreal attenuation () const
 Gets the current attenuation in decibels.
QAudioFormat format () const
 Gets the current audio format.

Member Function Documentation

◆ attenuation()

qreal SoundOutput::attenuation ( ) const

Gets the current attenuation in decibels.

Returns
The attenuation value.

◆ format()

QAudioFormat SoundOutput::format ( ) const

Gets the current audio format.

Returns
The QAudioFormat object.
Here is the caller graph for this function:

◆ restart

void SoundOutput::restart ( QIODevice * source)
slot

Restarts audio output with the specified source.

Parameters
sourceThe QIODevice to read audio data from.

◆ setAttenuation

void SoundOutput::setAttenuation ( qreal a)
slot

Sets the attenuation in decibels.

Parameters
aThe attenuation value.
Here is the caller graph for this function:

◆ setDeviceFormat

void SoundOutput::setDeviceFormat ( QAudioDevice const & device,
QAudioFormat const & format,
unsigned msBuffered = 0u )
slot

Sets the audio device and format.

Parameters
deviceThe QAudioDevice to use.
formatThe QAudioFormat to set.
msBufferedThe buffer size in milliseconds.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setFormat

void SoundOutput::setFormat ( QAudioDevice const & device,
unsigned channels,
unsigned msBuffered = 0u )
slot

Sets the audio format based on the device and channel count.

Parameters
deviceThe QAudioDevice to use.
channelsThe number of audio channels (1 for mono, 2 for stereo).
msBufferedThe buffer size in milliseconds.
Here is the call graph for this function:
Here is the caller graph for this function:

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