MythTV  master
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
AudioInput Class Referenceabstract

#include <audioinput.h>

Inheritance diagram for AudioInput:
Inheritance graph
Collaboration diagram for AudioInput:
Collaboration graph

Public Member Functions

virtual ~AudioInput ()=default
virtual bool Open (uint sample_bits, uint sample_rate, uint channels)=0
virtual bool IsOpen (void)=0
virtual void Close (void)=0
virtual bool Start (void)=0
virtual bool Stop (void)=0
virtual int GetBlockSize (void)=0
virtual int GetSamples (void *buf, uint nbytes)=0
virtual int GetNumReadyBytes (void)=0

Static Public Member Functions

static AudioInputCreateDevice (const QByteArray &device)

Protected Member Functions

 AudioInput (const QString &device)

Protected Attributes

QByteArray m_audioDevice
int m_audioChannels {0}
int m_audioSampleBits {0}
int m_audioSampleRate {0}

Detailed Description

Definition at line 27 of file audioinput.h.

Constructor & Destructor Documentation

◆ ~AudioInput()

virtual AudioInput::~AudioInput ( )

◆ AudioInput()

AudioInput::AudioInput ( const QString &  device)

Definition at line 47 of file audioinput.h.

Member Function Documentation

◆ Open()

virtual bool AudioInput::Open ( uint  sample_bits,
uint  sample_rate,
uint  channels 
pure virtual

◆ IsOpen()

virtual bool AudioInput::IsOpen ( void  )
pure virtual

◆ Close()

virtual void AudioInput::Close ( void  )
pure virtual

◆ Start()

virtual bool AudioInput::Start ( void  )
pure virtual

◆ Stop()

virtual bool AudioInput::Stop ( void  )
pure virtual

Implemented in AudioInputALSA, and AudioInputOSS.

◆ GetBlockSize()

virtual int AudioInput::GetBlockSize ( void  )
pure virtual

Implemented in AudioInputALSA, and AudioInputOSS.

Referenced by NuppelVideoRecorder::AudioInit().

◆ GetSamples()

virtual int AudioInput::GetSamples ( void *  buf,
uint  nbytes 
pure virtual

◆ GetNumReadyBytes()

virtual int AudioInput::GetNumReadyBytes ( void  )
pure virtual

◆ CreateDevice()

AudioInput * AudioInput::CreateDevice ( const QByteArray &  device)

Definition at line 30 of file audioinput.cpp.

Referenced by NuppelVideoRecorder::AudioInit().

Member Data Documentation

◆ m_audioDevice

QByteArray AudioInput::m_audioDevice

Definition at line 50 of file audioinput.h.

◆ m_audioChannels

int AudioInput::m_audioChannels {0}

◆ m_audioSampleBits

int AudioInput::m_audioSampleBits {0}

◆ m_audioSampleRate

int AudioInput::m_audioSampleRate {0}

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