rct_status_t rct_play_sound_file ( rct_brick_t *  brick,
rct_flag_t  flags,
char *  filename 
)

Instruct the brick to play a sound file.

Parameters:
brick - Pointer to a brick structure with an open connection.
flags - Bit flags to control play mode.
filename - Name of sound file (must be on brick already).
Author:
Jason W. Bacon
Play the specified sound file on the brick. The filename must end in ".rso", and must have been previously uploaded to the brick. The brick must first be opened with rct_open_brick().

Valid flags:

  • RCT_NO_FLAGS
  • RCT_LOOP - Play file repeatedly until manually stopped by a stop command or the NXT stop button.

Supported bricks:

  • NXT


Generated on Thu May 14 18:19:19 2009 for roboctl by  doxygen 1.5.8