| - -( dyne // software :: culture :: events :: planet :: discussion :: museum \\ freaknet )- - |
#include <dev_sound.h>
Collaboration diagram for SoundDevice:

Public Member Functions | |
| SoundDevice () | |
| the SoundDevice class constructor | |
| ~SoundDevice () | |
| the SoundDevice class destructor | |
| bool | open (bool read, bool write) |
| open the sound device | |
| bool | input (bool state) |
| activate sound input | |
| bool | output (bool state) |
| activate sound output | |
| void | close () |
| close the sound device | |
| int | read (void *buf, int len) |
| reads audio data from the device in a buffer, len is samples | |
| int | write (void *buf, int len) |
| writes audio data from a buffer to the device, len is samples | |
| void | flush_input () |
| void | flush_output () |
Public Attributes | |
| bool | jack |
| bool | jack_in |
| bool | jack_out |
|
|
the SoundDevice class constructor
Definition at line 72 of file dev_sound.cpp. |
|
|
the SoundDevice class destructor
Definition at line 88 of file dev_sound.cpp. |
|
|
close the sound device
Definition at line 272 of file dev_sound.cpp. |
|
|
Definition at line 336 of file dev_sound.cpp. |
|
|
Definition at line 333 of file dev_sound.cpp. |
|
|
activate sound input
Definition at line 113 of file dev_sound.cpp. |
|
||||||||||||
|
open the sound device Tries to open the sound device for read and/or write if full-duplex is requested but not supported, it returns error and must be called again to fallback on half-duplex mode
Definition at line 226 of file dev_sound.cpp. |
|
|
activate sound output
Definition at line 219 of file dev_sound.cpp. |
|
||||||||||||
|
reads audio data from the device in a buffer, len is samples
Definition at line 303 of file dev_sound.cpp. |
|
||||||||||||
|
writes audio data from a buffer to the device, len is samples
Definition at line 319 of file dev_sound.cpp. |
|
|
Definition at line 59 of file dev_sound.h. |
|
|
Definition at line 60 of file dev_sound.h. |
|
|
Definition at line 61 of file dev_sound.h. |
|
|
|
|
| Copyleft 2000 - 2008 dyne.org foundation and respective authors. Verbatim copying and distribution is permitted in any medium, provided this notice is preserved. Send inquiries & questions to dyne.org's hackers. |
|