source: roaraudio/include/libroaresd/libroaresd.h @ 0:2a41d2f42394

Last change on this file since 0:2a41d2f42394 was 0:2a41d2f42394, checked in by phi, 16 years ago

Initial revision

File size: 645 bytes
Line 
1//libroaresd.h:
2
3#ifndef _LIBROARESD_H_
4#define _LIBROARESD_H_
5
6#include <roaraudio.h>
7#include <esd.h>
8#include <time.h>
9#include <sys/time.h>
10
11#define ROAR_BC2ESD(b,c) (((b) == 8 ? ESD_BITS8 : ESD_BITS16) | ((c) == 1 ? ESD_MONO : ESD_STEREO))
12#define ROAR_DIR2ESD(d)  ((d)  == ROAR_DIR_PLAY ? ESD_PLAY : (d) == ROAR_DIR_MONITOR ? ESD_MONITOR : \
13                          (d)  == ROAR_DIR_RECORD ? ESD_RECORD : \
14                          ESD_MONITOR /* ESD implements FILTER a diffrent way, think MONITOR ist most simular */ )
15
16#define ROAR_S2ESD(s)    (ROAR_BC2ESD((s)->info.bits, (s)->info.channels) | ROAR_DIR2ESD((s)->dir))
17
18#endif
19
20//ll
Note: See TracBrowser for help on using the repository browser.