Getting sound

The method syncGetSound can be used to get a sound sample of any length from the server.

client->syncGetSound("micro", duration, sound);

The first parameter is the name of the device from which to request sound, the second is the duration requested, in milliseconds. Sound is a USound structure that will be filled with the recorded sound on output.