Mercurial > hg > audiostuff
comparison intercom/oss.h @ 2:13be24d74cd2
import intercom-0.4.1
| author | Peter Meerwald <pmeerw@cosy.sbg.ac.at> |
|---|---|
| date | Fri, 25 Jun 2010 09:57:52 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1:9cadc470e3da | 2:13be24d74cd2 |
|---|---|
| 1 /* oss.h | |
| 2 * | |
| 3 * Copyright (C) DFS Deutsche Flugsicherung (2004, 2005). | |
| 4 * All Rights Reserved. | |
| 5 * | |
| 6 * Open Sound System | |
| 7 * | |
| 8 * Version 0.3 | |
| 9 */ | |
| 10 #ifndef _OSS_H | |
| 11 | |
| 12 /* Design Constants */ | |
| 13 #define AUDIOBUFS 3 // Soundcard buffers (minimum 2) | |
| 14 /* End of Design Constants */ | |
| 15 | |
| 16 #define FORMAT_OSS AFMT_S16_LE | |
| 17 | |
| 18 /* Using fragment sizes shorter than 256 bytes is not recommended as the | |
| 19 * default mode of application | |
| 20 */ | |
| 21 /* for Packettime = 40ms FRAGSIZELD = 7 can be used | |
| 22 * for Packettime = 80ms FRAGSIZELD = 8 can be used | |
| 23 */ | |
| 24 #define FRAGSIZELD (5+WIDEB) // WIDEB is 1 or 2 | |
| 25 #define FRAGSIZE (1<<FRAGSIZELD) | |
| 26 #define FRAGTIME (FRAGSIZE/(WIDEB*16)) | |
| 27 | |
| 28 const int RATE=WIDEB*8000; | |
| 29 | |
| 30 int audio_init(char *pathname, int channels_, int mode); | |
| 31 | |
| 32 #define _OSS_H | |
| 33 #endif |
