Messages |
file | string | set the name of the sound file |
record | [bool] | start the sound recording |
stop | [bool] | stop the recording sound |
updateInterval | float | set the update interval for sound server |
Events |
start | ||
stop |
Comments |
constructor soundRecorder
destructor ~soundRecorder
method reset
1 reset recording flag to false
2 set update interval to 0.1
3 if a sample exists then delete it
method message
1 set the name of the sound file
2 start the sound recording
3 stop the recording sound
4 set the update interval for sound server
method setFile
method setCurAmplitude
method isPlaying
method record
1 if no sample then create a new bergenRecord
2 record the sample
3 generate a heartbeat for the server
method stop
1 if a sample is playing
1.1 send a stop command to the server
method app
1 if a sample exists generate a heartbeat for the server
1.1 if update interval has passed then update sound server
1.1.1 determine position of this sound
1.1.2 get position relative to CAVE