Pells the server to play a 'sound' structure (previously recorded from the server)
0001 function urbiPlaySound(con, sound) 0002 % Pells the server to play a 'sound' structure (previously recorded from 0003 % the server) 0004 0005 urbiSend(con, sprintf ('speaker.val = BIN %d raw %d %d %d %d;', sound.length, sound.channel, sound.Fs, sound.nbits, 1)) 0006 0007 pnet(con, 'write', sound.samples, 'char');