Mercurial > hg > forks > pwpunix
comparison pwplib/snd-oss.c @ 35:b9d679965320
Code cleanups.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 24 May 2010 01:22:33 +0300 |
parents | c60e531d19cd |
children | 85671798fdb3 |
comparison
equal
deleted
inserted
replaced
34:32ec3c0d1b6c | 35:b9d679965320 |
---|---|
8 #include <fcntl.h> | 8 #include <fcntl.h> |
9 | 9 |
10 #include <linux/soundcard.h> | 10 #include <linux/soundcard.h> |
11 | 11 |
12 #include "pwplib.h" | 12 #include "pwplib.h" |
13 #include "gb.h" | |
13 | 14 |
14 #define TIMERHZ 72 | 15 #define TIMERHZ 72 |
15 | 16 |
16 struct{ | 17 struct{ |
17 int fd; | 18 int fd; |
18 char buf[4096]; | 19 char buf[4096]; |
19 int buflgt; | 20 int buflgt; |
20 int freq; | 21 int freq; |
21 }pwp_oss; | 22 }pwp_oss; |
22 | |
23 extern void gb_sound(int,int,int,int); | |
24 | 23 |
25 void oss_loopflush() | 24 void oss_loopflush() |
26 { | 25 { |
27 for(;;) | 26 for(;;) |
28 {audio_buf_info bi;ioctl(pwp_oss.fd,SNDCTL_DSP_GETOSPACE,&bi); | 27 {audio_buf_info bi;ioctl(pwp_oss.fd,SNDCTL_DSP_GETOSPACE,&bi); |