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
[legend]
Collaboration diagram for AudioInput:
Collaboration graph
[legend]

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 ( )
virtualdefault

◆ AudioInput()

AudioInput::AudioInput ( const QString &  device)
inlineexplicitprotected

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 AudioInputOSS, and AudioInputALSA.

◆ GetBlockSize()

virtual int AudioInput::GetBlockSize ( void  )
pure virtual

Implemented in AudioInputOSS, and AudioInputALSA.

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)
static

Definition at line 29 of file audioinput.cpp.

Referenced by NuppelVideoRecorder::AudioInit().

Member Data Documentation

◆ m_audioDevice

QByteArray AudioInput::m_audioDevice
protected

Definition at line 50 of file audioinput.h.

◆ m_audioChannels

int AudioInput::m_audioChannels {0}
protected

◆ m_audioSampleBits

int AudioInput::m_audioSampleBits {0}
protected

◆ m_audioSampleRate

int AudioInput::m_audioSampleRate {0}
protected

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