aboutsummaryrefslogtreecommitdiff
path: root/desiredata
diff options
context:
space:
mode:
authorN.N. <matju@users.sourceforge.net>2009-05-25 05:54:34 +0000
committerN.N. <matju@users.sourceforge.net>2009-05-25 05:54:34 +0000
commit93aaaefcc0a7069e5171ee8cdcd5e176b40c6d4a (patch)
treeb9711d516f43bc30d79d5aeaeca2f72f58cef223 /desiredata
parentf90ce63ee860d5e9786b6eb29feff0ead65af6df (diff)
reformat
svn path=/trunk/; revision=11492
Diffstat (limited to 'desiredata')
-rwxr-xr-xdesiredata/src/s_audio_portaudio.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/desiredata/src/s_audio_portaudio.c b/desiredata/src/s_audio_portaudio.c
index 05b11643..3690aba0 100755
--- a/desiredata/src/s_audio_portaudio.c
+++ b/desiredata/src/s_audio_portaudio.c
@@ -127,21 +127,19 @@ int indeviceno, int outdeviceno, int schedmode) {
const PaStreamInfo *streaminfo = Pa_GetStreamInfo(pa_stream);
t_atom atoms[4];
t_symbol *pd = gensym("pd");
- t_symbol *selector1 = gensym("audiocurrentininfo");
- t_symbol *selector2 = gensym("audiocurrentoutinfo");
sys_schedadvance = int(1e-6 * streaminfo->outputLatency);
SETFLOAT(atoms, (float)indeviceno);
SETFLOAT(atoms+1, (float)inchans);
SETFLOAT(atoms+2, (float)rate);
SETFLOAT(atoms+3, (float)streaminfo->inputLatency * 1000.f);
- typedmess(pd->s_thing, selector1, 4, atoms);
+ typedmess(pd->s_thing, gensym("audiocurrentininfo"), 4, atoms);
SETFLOAT(atoms, (float)outdeviceno);
SETFLOAT(atoms+1, (float)outchans);
SETFLOAT(atoms+2, (float)rate);
SETFLOAT(atoms+3, (float)streaminfo->outputLatency * 1000.f);
- typedmess(pd->s_thing, selector2, 4, atoms);
+ typedmess(pd->s_thing, gensym("audiocurrentoutinfo"), 4, atoms);
}
} else err = 0;
@@ -200,7 +198,7 @@ PaStreamCallbackFlags statusFlags, void *userData) {
return 0;
}
-void pa_close_audio() {
+static void pa_close_audio() {
if(sys_verbose) post("closing portaudio");
if (pa_inchans || pa_outchans) {
if (pa_stream) {
@@ -217,13 +215,13 @@ void pa_close_audio() {
}
/* for blocked IO */
-int pa_send_dacs() {
+static int pa_send_dacs() {
/* we don't support blocking i/o */
return SENDDACS_NO;
}
/* lifted from pa_devs.c in portaudio */
-void pa_listdevs() {
+static void pa_listdevs() {
PaError err;
pa_initialize();
int numDevices = Pa_GetDeviceCount();
@@ -251,7 +249,7 @@ void pa_listdevs() {
}
/* scanning for devices */
-void pa_getdevs(char *indevlist, int *nindevs, char *outdevlist, int *noutdevs, int *canmulti, int maxndev, int devdescsize) {
+static void pa_getdevs(char *indevlist, int *nindevs, char *outdevlist, int *noutdevs, int *canmulti, int maxndev, int devdescsize) {
int nin = 0, nout = 0, ndev;
*canmulti = 1; /* one dev each for input and output */
pa_initialize();