#include <sent/config.h>
#include <stdio.h>
#include <stdlib.h>
#include <netaudio.h>
#include <defaults.h>
Include dependency graph for adin_na.c:
Go to the source code of this file.
Defines | |
#define | TRUE 1 |
Should be the same definition in stddefs.h. | |
#define | FALSE 0 |
Should be the same definition in stddefs.h. | |
Typedefs | |
typedef short | SP16 |
Should be the same definition in stddefs.h. | |
Functions | |
int | NA_standby (int sfreq, char *server_devname) |
static void | NA_close () |
void | NA_start () |
void | NA_stop () |
int | NA_read (SP16 *buf, int sampnum) |
Read samples from NetAudio port. | |
Variables | |
static NAport * | port |
NetAudio port. | |
static int | need_swap = FALSE |
Incoming data is always BIG ENDIAN. |
These functions are separated from adin_netaudio.c because some definitions in NetAudio header "dat_types.h" conflicts with the include header "sent/stddefs.h".
Definition in file adin_na.c.
|
Initialize NetAudio device.
Definition at line 59 of file adin_na.c. Referenced by adin_netaudio_standby(). |
|
Close port. (actually never used, just for reference...) |
|
Begin recording. Definition at line 128 of file adin_na.c. Referenced by adin_netaudio_start(). |
|
Pause the recording. Definition at line 138 of file adin_na.c. Referenced by adin_netaudio_stop(). |
|
Read samples from NetAudio port. Try to read sampnum samples and returns actual number of recorded samples currently available. This function will block until at least some samples are obtained.
Definition at line 156 of file adin_na.c. Referenced by adin_netaudio_read(). |