next up previous contents
Next: 2.19 SpeechProxy Up: 2. Class Reference Previous: 2.17 SonarProxy   Contents


2.18 SoundProxy

The SoundProxy class is used to control a sound device, which allows you to play pre-recorded sound files on a robot.



SoundProxy(PlayerClient* pc, unsigned short index,
unsigned char access='c')

The client calls this method to make a new proxy. Leave access empty to start unconnected.

int Play(int index)

Play the sound indicated by the index. Returns 0 on success, -1 on error.

void Print()

Does nothing.