16 Dec
2019
16 Dec
'19
1:41 p.m.
Hi Everyone! Wath is wrong in this code? // Using SndBuf to play a sound file // by ChucK Programmer, December 2050 SndBuf mySound => dac; // get file path me.dir(C:\Program Files (x86)\ChucK\audio\123.wav) => string path; // sound file we want to play "/audio/123.wav" => string filename; // + sign connects strings together! path+filename => filename; // tell SndBuf to read this file filename => mySound.read; // set gain 0.5 => mySound.gain; // play sound from the beginning 0.1 => mySound.pos; // advance time so we can hear it second => now; //