Eingabegerät für das Audiomodul. Mehr...
#include <stdlib.h>
#include "config.h"
#include "base.h"
| Typdefinitionen | |
| typedef struct otc_audio_module_input_device_enumerator | otc_audio_module_input_device_enumerator |
| Funktionen | |
| otc_audio_module_input_device_enumerator * | otc_audio_module_input_device_enumerator_new () |
| int | otc_audio_module_input_device_enumerator_size (otc_audio_module_input_device_enumerator *device_enumerator) |
| const char * | otc_audio_module_input_device_enumerator_get_device_id (otc_audio_module_input_device_enumerator *device_enumerator, int device_index) |
| const char * | otc_audio_module_input_device_enumerator_get_device_name (otc_audio_module_input_device_enumerator *device_enumerator, int device_index) |
| otc_status | otc_audio_module_input_device_enumerator_delete (otc_audio_module_input_device_enumerator *device_enumerator) |
| otc_status | otc_audio_module_input_device_select (const char *device_id) |
Ausführliche Beschreibung
Eingabegerät für das Audiomodul.
Typedef-Dokumentation
otc_audio_module_input_device_enumerator
Stellt einen Enumerator für Audio-Eingabegeräte dar, der die vom Standard-Audiomodul erkannten Eingabegeräte auflistet.
Funktionsdokumentation
otc_audio_module_input_device_enumerator_delete()
| otc_status otc_audio_module_input_device_enumerator_delete | ( | otc_audio_module_input_device_enumerator * | Geräteauflistung | ) |
Löscht einen Enumerator für ein Audio-Eingabegerät.
Parameter : | | | | --- | --- | | device_enumerator | Der Enumerator des Audio-Eingabegeräts. |
Rückgabewert : Das Ergebnis der Operation. 0 bei Erfolg.
otc_audio_module_input_device_enumerator_get_device_id()
| const char * otc_audio_module_input_device_enumerator_get_device_id | ( | otc_audio_module_input_device_enumerator * | Geräteauflistung, |
| int | Geräteindex | ||
| ) |
Ruft die ID des angegebenen Audioeingabegeräts vom Audioeingabegerät-Enumerator ab.
Parameter : | | | | --- | --- | | device_enumerator | Der Enumerator des Audio-Eingabegeräts. | | device_index | Der Index des Geräts in der Aufzählung. |
Rückgabewert : Die ID des Geräts am ausgewählten Index oder `nullptr`, wenn der Index außerhalb des zulässigen Bereichs liegt.
otc_audio_module_input_device_enumerator_get_device_name()
| const char * otc_audio_module_input_device_enumerator_get_device_name | ( | otc_audio_module_input_device_enumerator * | Geräteauflistung, |
| int | Geräteindex | ||
| ) |
Ruft den Namen des angegebenen Audioeingabegeräts vom Audioeingabegerät-Enumerator ab.
Parameter : | | | | --- | --- | | device_enumerator | Der Enumerator des Audio-Eingabegeräts. | | device_index | Der Index des Geräts in der Aufzählung. |
Rückgabewert : Der Name des Geräts am ausgewählten Index oder `nullptr`, wenn der Index außerhalb des zulässigen Bereichs liegt.
otc_audio_module_input_device_enumerator_new()
| otc_audio_module_input_device_enumerator * otc_audio_module_input_device_enumerator_new | ( | ) |
Erstellt einen Enumerator für Audio-Eingabegeräte, der die vom Standard-Audiomodul erkannten Eingabegeräte auflistet.
Rückgabewerte : Der Enumerator des Audio-Eingabegeräts.
otc_audio_module_input_device_enumerator_size()
| int otc_audio_module_input_device_enumerator_size | ( | otc_audio_module_input_device_enumerator * | Geräteauflistung | ) |
Ruft die Anzahl der Audio-Eingabegeräte in einem Audio-Eingabegerät-Enumerator ab.
Parameter : | | | | --- | --- | | device_enumerator | Der Enumerator des Audio-Eingabegeräts. |
Rückgabewert : Die Anzahl der Audio-Eingabegeräte.
otc_audio_module_input_device_select()
| otc_status otc_audio_module_input_device_select | ( | const char * | device_id | ) |
Wählt ein Audio-Eingabegerät im Standard-Audiomodul aus.
Parameter : | | | | --- | --- | | device_id | Die ID des Audio-Eingabegeräts. |
Rückgabewert : Das Ergebnis der Operation. 0 bei Erfolg.