aboutsummaryrefslogtreecommitdiff
path: root/wavinfo.c
diff options
context:
space:
mode:
authorGuenter Geiger <ggeiger@users.sourceforge.net>2003-06-23 13:12:22 +0000
committerGuenter Geiger <ggeiger@users.sourceforge.net>2003-06-23 13:12:22 +0000
commit345ee7953340e85f65cf1d00ab3bc25b55ee525f (patch)
treed3d0b471af34db899c788cdccf7ce9e7717d314e /wavinfo.c
parenta2d37998c5ea1c5712cb15d9d9ad885371ee4b5d (diff)
remove pd internal header files, compile against files in pd distribution
svn path=/trunk/externals/ext13/; revision=734
Diffstat (limited to 'wavinfo.c')
-rw-r--r--wavinfo.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/wavinfo.c b/wavinfo.c
index 1f5d2f9..7edd030 100644
--- a/wavinfo.c
+++ b/wavinfo.c
@@ -1,6 +1,5 @@
#include "ext13.h"
#include "m_pd.h"
-#include "g_canvas.h"
#include <sys/stat.h>
#include <stdio.h>
#include <unistd.h>
@@ -47,7 +46,6 @@ static t_class *wavinfo_class;
typedef struct _wavinfo
{
t_object x_obj;
- t_glist *x_glist;
t_float x_samplerate;
t_float x_bitspersample;
t_float x_channels;
@@ -65,7 +63,6 @@ typedef struct _wavinfo
static void *wavinfo_new(t_symbol *s)
{
t_wavinfo *x = (t_wavinfo *)pd_new(wavinfo_class);
- x->x_glist = (t_glist*) canvas_getcurrent();
x->x_s = s;
// outlet_new(&x->x_obj, &s_float);
x->x_out0 = outlet_new(&x->x_obj, &s_float);
@@ -88,7 +85,7 @@ static void wavinfo_symbol(t_wavinfo *x, t_symbol *filename)
char fname[MAXPDSTRING];
int ok=(stat(filename->s_name, &statbuf) >= 0);
if (ok>0) {
- canvas_makefilename(glist_getcanvas(x->x_glist), filename->s_name,fname, MAXPDSTRING);
+ canvas_makefilename(canvas_getcurrent(), filename->s_name,fname, MAXPDSTRING);
if ((x->x_fd = open(fname,( O_NONBLOCK | O_RDONLY))) < 0)
{
error("can't open %s",fname);