WAVE Item Messages

From STX Wiki
Jump to navigation Jump to search
Wave Item
INTRODUCTION NEW SET ATTRIBUTES MESSAGES EXAMPLES

Play and Record

WAVE waveitemname RUN position

This message is sent by a wave item that is currently in the play or record mode. The parameter position is set to the current sample position of the I/O process.

Stop

WAVE waveitemname STOP position

This message is sent by a wave item when playback/recording is stopped. The parameter position is set to the current sample position of the I/O process.

Exit

WAVE waveitemname EXIT par

The exit message is generated when the wave device used for playback/recording is closed. The value of parameter par is always set to 0.

If messages are sent by a playing wave item, it is not certain whether the whole signal between begin and position has really been played because the messages were generated when the last buffer was passed to the wave I/O driver. To ensure correct synchronization, it is necessary to use the messages of a synchronized timer.