9c3c841519
The Snack Sound Toolkit is designed to be used with a scripting language such as Tcl/Tk or Python. Snack has commands for basic sound handling, such as playback, recording, file and socket I/O. Snack also provides primitives for sound visualization, e.g. waveforms and spectrograms. It was developed mainly to handle digital recordings of speech, but is just as useful for general audio. Snack has also successfully been applied to other one-dimensional signals. thanks to jakemsr@ for making my unsuccessful attempt to port it to sndio working. many comments from stu@, landry@, ajacoutot@ finally OK ajacoutot@
35 lines
645 B
Plaintext
35 lines
645 B
Plaintext
$OpenBSD: patch-generic_jkAudIO_h,v 1.1.1.1 2011/03/12 08:53:52 sebastia Exp $
|
|
|
|
sndio bits
|
|
|
|
--- generic/jkAudIO.h.orig Wed Dec 14 03:29:38 2005
|
|
+++ generic/jkAudIO.h Fri Dec 24 23:19:22 2010
|
|
@@ -105,6 +105,10 @@ extern "C" {
|
|
#include <alsa/asoundlib.h>
|
|
#endif
|
|
|
|
+#ifdef SNDIO
|
|
+#include <sndio.h>
|
|
+#endif
|
|
+
|
|
typedef struct ADesc {
|
|
|
|
#ifdef HPUX
|
|
@@ -124,6 +128,16 @@ typedef struct ADesc {
|
|
double time;
|
|
double timep;
|
|
int freq;
|
|
+ int convert;
|
|
+ int warm;
|
|
+#endif
|
|
+
|
|
+#ifdef SNDIO
|
|
+ struct sio_hdl *hdl;
|
|
+ struct sio_par par;
|
|
+ long softpos;
|
|
+ long hardpos;
|
|
+ int frag_size;
|
|
int convert;
|
|
int warm;
|
|
#endif
|