Sensoray 2250 Linux Ver2.0.X Bedienungsanleitung Seite 13

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 18
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 12
unsigned char *pBuf,
int*buflen
);
Gets audio samples. Call with buflen set to size of sample requested. Returns actual
size of samples. See sraydemo.c for an example of SN_GetAudioData.
Parameters
board
board number in the system (use 0 for single board setups).
pBuf
pointer to buffer to get samples
buflen
length of buffer
Returns
0 on success, negative value if error
int SN_GetAudioDataPlusTime(
int board,
UINT8 *pBuf,
SINT32*buflen,
int *tv_sec,
int *tv_usec,
);
Gets audio samples plus timestamp. Call with buflen set to size of sample requested.
Returns actual size of samples. Also returns audio timestamp in tv_sec and tv_usec.
Parameters
board
board number in the system (use 0 for single board setups).
pBuf
pointer to buffer to get samples
buflen
length of buffer
tv_sec
returned timestamp in seconds
tv_usec
returned microsecond component of timestamp
Returns
1
Seitenansicht 12
1 2 ... 8 9 10 11 12 13 14 15 16 17 18

Kommentare zu diesen Handbüchern

Keine Kommentare