VisualCodeBase / CodeBase

Power, Rich, Modern Programming Language
MIT License
12 stars 3 forks source link

Typo in wave suport? #19

Closed micsthepick closed 1 year ago

micsthepick commented 1 year ago

I think there is an extra underscore in CodeBase\Source\Lib\PVF\Modules\File\File.cb:

it says:

#IfDef _pvf_ReadWave_ : _

but the following effect only compiles when I change it to

#IfDef _pvf_ReadWave : _

EFFECT:

desc: test plugin

slider1:/:test.wav::WAV File
@init
handle = file_open(slider1);
file_riff(handle, num_channels, samplerate);
file_close(handle);

@gfx 500 10
gfx_set(0);
gfx_rect(0, 0, gfx_w, gfx_h);

@sample
micsthepick commented 1 year ago

also of note, the plugin doesn't compile correctly without the top line: "desc: ...", because it does not include the required libraries, perhaps because it fails to recognize the included file as A JSFX.

VisualCodeBase commented 1 year ago

thanks sorry for the late reply.