MythTV  master
Public Member Functions | Private Attributes | List of all members
AudioInputOSS Class Reference

#include <audioinputoss.h>

Inheritance diagram for AudioInputOSS:
Inheritance graph
[legend]
Collaboration diagram for AudioInputOSS:
Collaboration graph
[legend]

Public Member Functions

 AudioInputOSS (const QString &device)
 
 ~AudioInputOSS () override
 
bool Open (uint sample_bits, uint sample_rate, uint channels) override
 
bool IsOpen (void) override
 
void Close (void) override
 
bool Start (void) override
 
bool Stop (void) override
 
int GetBlockSize (void) override
 
int GetSamples (void *buffer, uint num_bytes) override
 
int GetNumReadyBytes (void) override
 
- Public Member Functions inherited from AudioInput
virtual ~AudioInput ()=default
 

Private Attributes

QByteArray m_deviceName
 
int m_dspFd {-1}
 

Additional Inherited Members

- Static Public Member Functions inherited from AudioInput
static AudioInputCreateDevice (const QByteArray &device)
 
- Protected Member Functions inherited from AudioInput
 AudioInput (const QString &device)
 
- Protected Attributes inherited from AudioInput
QByteArray m_audioDevice
 
int m_audioChannels {0}
 
int m_audioSampleBits {0}
 
int m_audioSampleRate {0}
 

Detailed Description

Definition at line 27 of file audioinputoss.h.

Constructor & Destructor Documentation

◆ AudioInputOSS()

AudioInputOSS::AudioInputOSS ( const QString &  device)
explicit

Definition at line 40 of file audioinputoss.cpp.

◆ ~AudioInputOSS()

AudioInputOSS::~AudioInputOSS ( )
inlineoverride

Definition at line 31 of file audioinputoss.h.

Member Function Documentation

◆ Open()

bool AudioInputOSS::Open ( uint  sample_bits,
uint  sample_rate,
uint  channels 
)
overridevirtual

Implements AudioInput.

Definition at line 48 of file audioinputoss.cpp.

◆ IsOpen()

bool AudioInputOSS::IsOpen ( void  )
inlineoverridevirtual

Implements AudioInput.

Definition at line 34 of file audioinputoss.h.

Referenced by Close(), GetBlockSize(), GetNumReadyBytes(), GetSamples(), Open(), and Start().

◆ Close()

void AudioInputOSS::Close ( void  )
overridevirtual

Implements AudioInput.

Definition at line 161 of file audioinputoss.cpp.

Referenced by Open(), and ~AudioInputOSS().

◆ Start()

bool AudioInputOSS::Start ( void  )
overridevirtual

Implements AudioInput.

Definition at line 172 of file audioinputoss.cpp.

◆ Stop()

bool AudioInputOSS::Stop ( void  )
overridevirtual

Implements AudioInput.

Definition at line 198 of file audioinputoss.cpp.

◆ GetBlockSize()

int AudioInputOSS::GetBlockSize ( void  )
overridevirtual

Implements AudioInput.

Definition at line 215 of file audioinputoss.cpp.

◆ GetSamples()

int AudioInputOSS::GetSamples ( void *  buffer,
uint  num_bytes 
)
overridevirtual

Implements AudioInput.

Definition at line 232 of file audioinputoss.cpp.

◆ GetNumReadyBytes()

int AudioInputOSS::GetNumReadyBytes ( void  )
overridevirtual

Implements AudioInput.

Definition at line 262 of file audioinputoss.cpp.

Member Data Documentation

◆ m_deviceName

QByteArray AudioInputOSS::m_deviceName
private

Definition at line 46 of file audioinputoss.h.

Referenced by AudioInputOSS(), and Open().

◆ m_dspFd

int AudioInputOSS::m_dspFd {-1}
private

Definition at line 47 of file audioinputoss.h.

Referenced by Close(), GetBlockSize(), GetNumReadyBytes(), GetSamples(), IsOpen(), Open(), Start(), and Stop().


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