keneanung / mudlet-msp

This is an implementation of the MUD Sound Protocol for Mudlet
GNU General Public License v3.0
4 stars 0 forks source link

Implement Parameter C #5

Open keneanung opened 7 years ago

keneanung commented 7 years ago

From the specification:

means "continue", specifies whether the file should simply continue playing if requested again (1), or if it should restart (0). In either case, the new repeat count should take precedence over the old one, and the "number of plays thus far" counter should be reset to 0. By way of illustration, assume two rooms, room 110, and room 111. Room 110 is set to play bach/fugue.mid 3 times, while room 111 is set to play bach/fugue.mid 5 times. If a character enters room 110, fugue starts playing; if during halfway through the second refrain the character moves to room 111, fugue would either continue or restart based on the continue setting. fugue should play either 4.5 times (if continue was 1) or 5 times (if continue was 0). Similarly, the volume of the most recent MUSIC escape should be used. Possible values: 0, 1 Default value: 1 Used in: MUSIC

We will assume the parameter of the newly sent command is obeyed. That means if the song was started with the Option C enabled and is re-sent without the option enabled, the music will restart.