~mdw
/
jog
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
infra: Clean up project setup
[jog]
/
ausys-sdl.c
diff --git
a/ausys-sdl.c
b/ausys-sdl.c
index
c54d378
..
84afa0f
100644
(file)
--- a/
ausys-sdl.c
+++ b/
ausys-sdl.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: ausys-sdl.c,v 1.
1 2002/02/02 19:16:28
mdw Exp $
+ * $Id: ausys-sdl.c,v 1.
2 2002/02/02 22:43:17
mdw Exp $
*
* Unix-specific (SDL) audio handling
*
*
* Unix-specific (SDL) audio handling
*
@@
-26,14
+26,6
@@
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: ausys-sdl.c,v $
- * Revision 1.1 2002/02/02 19:16:28 mdw
- * New audio subsystem.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#ifdef HAVE_CONFIG_H
/*----- Header files ------------------------------------------------------*/
#ifdef HAVE_CONFIG_H
@@
-148,7
+140,7
@@
static void fill(void *u, octet *q, int qsz)
}
/* --- Fill the buffer with my sample --- */
}
/* --- Fill the buffer with my sample --- */
-exit(0);
+
n = qsz;
if (n > sz)
n = sz;
n = qsz;
if (n > sz)
n = sz;
@@
-269,7
+261,7
@@
void ausys_init(void)
want.freq = 8000;
want.format = AUDIO_U8;
want.channels = 1;
want.freq = 8000;
want.format = AUDIO_U8;
want.channels = 1;
- want.samples =
4096
;
+ want.samples =
1024
;
want.callback = fill;
want.userdata = 0;
want.callback = fill;
want.userdata = 0;