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

Public Member Functions

 SoundInput (QObject *parent=nullptr)
 ~SoundInput ()
 Destructs the SoundInput object.
Q_SLOT void start (QAudioDevice const &, int framesPerBuffer, AudioDevice *sink, AudioDevice::Channel=AudioDevice::Mono)
 Starts audio input from the specified device.
Q_SLOT void suspend ()
 Suspends audio input.
Q_SLOT void resume ()
 Resumes audio input.
Q_SLOT void stop ()
 Stops audio input.
Q_SIGNAL void error (QString message) const
Q_SIGNAL void status (QString message) const

Member Function Documentation

◆ start()

void SoundInput::start ( QAudioDevice const & device,
int framesPerBuffer,
AudioDevice * sink,
AudioDevice::Channel channel = AudioDevice::Mono )

Starts audio input from the specified device.

Parameters
deviceThe QAudioDevice to use for input.
framesPerBufferThe number of frames per buffer.
sinkThe AudioDevice sink to write audio data to.
channelThe audio channel configuration (Mono or Stereo).
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: