|
lmms
Cross-platform music production software
|
#include <AudioAlsa.h>
Classes | |
| class | DeviceInfo |
| Contains the relevant information about available ALSA devices. More... | |
Public Types | |
| using | DeviceInfoCollection = std::vector<DeviceInfo> |
Public Member Functions | |
| AudioAlsa (bool &_success_ful, AudioEngine *audioEngine) | |
| ~AudioAlsa () override | |
| Public Member Functions inherited from lmms::AudioDevice | |
| AudioDevice (const ch_cnt_t _channels, AudioEngine *audioEngine) | |
| virtual | ~AudioDevice () |
| virtual void | registerPort (AudioBusHandle *port) |
| virtual void | unregisterPort (AudioBusHandle *port) |
| virtual void | renamePort (AudioBusHandle *port) |
| bool | supportsCapture () const |
| sample_rate_t | sampleRate () const |
| void | startProcessing () |
| void | stopProcessing () |
| bool | isRunning () const |
Static Public Member Functions | |
| static QString | name () |
| static QString | probeDevice () |
| static DeviceInfoCollection | getAvailableDevices () |
| Creates a list of all available devices. | |
Private Member Functions | |
| void | startProcessingImpl () override |
| void | stopProcessingImpl () override |
| void | run () override |
| int | setHWParams (const ch_cnt_t _channels, snd_pcm_access_t _access) |
| int | setSWParams () |
| int | handleError (int _err) |
Private Attributes | |
| snd_pcm_t * | m_handle |
| snd_pcm_uframes_t | m_bufferSize |
| snd_pcm_uframes_t | m_periodSize |
| snd_pcm_hw_params_t * | m_hwParams |
| snd_pcm_sw_params_t * | m_swParams |
Additional Inherited Members | |
| Protected Member Functions inherited from lmms::AudioDevice | |
| int | convertToS16 (const SampleFrame *_ab, const f_cnt_t _frames, int_sample_t *_output_buffer, const bool _convert_endian=false) |
| void | clearS16Buffer (int_sample_t *_outbuf, const f_cnt_t _frames) |
| ch_cnt_t | channels () const |
| AudioEngine * | audioEngine () |
| void | setSampleRate (const sample_rate_t _new_sr) |
| void | setChannels (const ch_cnt_t channels) |
| Static Protected Member Functions inherited from lmms::AudioDevice | |
| static void | stopProcessingThread (QThread *thread) |
| Protected Attributes inherited from lmms::AudioDevice | |
| bool | m_supportsCapture |
| using lmms::AudioAlsa::DeviceInfoCollection = std::vector<DeviceInfo> |
| lmms::AudioAlsa::AudioAlsa | ( | bool & | _success_ful, |
| AudioEngine * | audioEngine ) |
|
override |
|
static |
Creates a list of all available devices.
Uses the hints API of ALSA to collect all devices. This also includes plug devices. The reason to collect these and not the raw hardware devices (e.g. hw:0,0) is that hardware devices often have a very limited number of supported formats, etc. Plugs on the other hand are software components that map all types of formats and inputs to the hardware and therefore they are much more flexible and more what we want.
|
private |
|
inlinestatic |
|
static |
|
overrideprivate |
|
private |
|
private |
|
overrideprivatevirtual |
Implements lmms::AudioDevice.
|
overrideprivatevirtual |
Implements lmms::AudioDevice.
|
private |
|
private |
|
private |
|
private |
|
private |