Skip to content

Commit

Permalink
hopefully fix #645 for good
Browse files Browse the repository at this point in the history
  • Loading branch information
porres committed Aug 16, 2024
1 parent 694caf4 commit 651343f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions documentation/help_files/pv-help.pd
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
#X connect 6 0 9 0;
#X connect 10 0 5 0;
#X restore 411 183 pd pv_in_a_subpatch_2;
#N canvas 327 218 843 323 pv_in_a_subpatch_1 0;
#N canvas 327 218 843 323 pv_in_a_subpatch_1 1;
#X obj 192 129 bng 18 250 50 0 empty empty empty 17 7 0 10 #dcdcdc #000000 #000000;
#X obj 192 197 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -8 0 10 #dcdcdc #000000 #000000 0 256;
#X obj 127 129 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -8 0 10 #dcdcdc #000000 #000000 0 256;
Expand All @@ -87,8 +87,8 @@
#X text 509 151 store variable 'y';
#X text 684 158 retrieve 'y';
#X text 42 247 And since the parent patch also has a [pv] with the same name \, the value stored here is also shared with other subpatches.;
#X text 445 56 But if you have a [pv] with a variable name that is not present in the subpatch \, the stored messages will only be shared within this subpatch \, even if other subpatches have [pv] objects with the same variable name - to check it \, open [pv_in_a_subpatch_2].;
#X text 544 239 only works in this subpatch!;
#X text 445 56 But if you have a [pv] with a variable name that is not present in a parent patch \, the stored messages will only be shared within this subpatch \, even if other subpatches have [pv] objects with the same variable name - to check it \, open the [pd pv_in_a_subpatch_2] subpatch in the parent patch.;
#X connect 0 0 10 0;
#X connect 2 0 10 0;
#X connect 5 0 9 0;
Expand Down
4 changes: 2 additions & 2 deletions shared/signal/cybuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ void cybuf_free(t_cybuf *c)
void *cybuf_init(t_class *owner, t_symbol *bufname, int numchans, int singlemode){
//name of buffer (multichan usu, or not) and the number of channels associated with buffer
t_cybuf *c = (t_cybuf *)getbytes(sizeof(t_cybuf));
t_float **vectors;
t_word **vectors;
t_symbol **channames = 0;
if (!bufname){
bufname = &s_;
Expand All @@ -275,7 +275,7 @@ void *cybuf_init(t_class *owner, t_symbol *bufname, int numchans, int singlemode
singlemode = singlemode > 0 ? 1 : 0;
//single mode forces numchans = 1
numchans = (numchans < 1 || singlemode) ? 1 : (numchans > CYBUF_MAXCHANS ? CYBUF_MAXCHANS : numchans);
if (!(vectors = (t_float **)getbytes(numchans* sizeof(*vectors)))){
if (!(vectors = (t_word **)getbytes(numchans* sizeof(*vectors)))){
return (0);
};

Expand Down

0 comments on commit 651343f

Please sign in to comment.