urbiPlaySound

PURPOSE ^

Pells the server to play a 'sound' structure (previously recorded from

SYNOPSIS ^

function urbiPlaySound(con, sound)

DESCRIPTION ^

 Pells the server to play a 'sound' structure (previously recorded from
 the server)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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');

Generated on Tue 20-Dec-2005 19:05:34 by m2html © 2003