From c59464f01c8151baaa42dcb8641d73c58dc79fda Mon Sep 17 00:00:00 2001 From: Miller Puckette Date: Sat, 25 Jun 2005 02:49:15 +0000 Subject: major extensions to drawing commands in templates, to allow scaling and invisibilizing. New "coreaudio" search (from patch). couple of bug fixes. svn path=/trunk/; revision=3249 --- pd/src/d_soundfile.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pd/src/d_soundfile.c') diff --git a/pd/src/d_soundfile.c b/pd/src/d_soundfile.c index a87b014b..400c9de6 100644 --- a/pd/src/d_soundfile.c +++ b/pd/src/d_soundfile.c @@ -1710,6 +1710,12 @@ static t_int *readsf_perform(t_int *w) #endif sfread_cond_signal(&x->x_requestcondition); sfread_cond_wait(&x->x_answercondition, &x->x_mutex); + /* resync local cariables -- bug fix thanks to Shahrokh */ + vecsize = x->x_vecsize; + bytespersample = x->x_bytespersample; + sfchannels = x->x_sfchannels; + wantbytes = sfchannels * vecsize * bytespersample; + bigendian = x->x_bigendian; #ifdef DEBUG_SOUNDFILE pute("done\n"); #endif -- cgit v1.2.1