LibMuse 6.0.2
com.choosemuse.libmuse.ReaderMusePlaybackSettings Enum Reference

Public Attributes

 AS_FAST_AS_POSSIBLE_WITH_SAVED_TIMESTAMP
 
 SIMULATED_WITH_SAVED_TIMESTAMP
 
 SIMULATED_WITH_SYSTEM_CLOCK_TIMESTAMP
 

Detailed Description

Configures the playback speed and timestamps of a ReaderMuse

See also
ReaderMuse
ReaderMuseBuilder

Member Data Documentation

§ AS_FAST_AS_POSSIBLE_WITH_SAVED_TIMESTAMP

com.choosemuse.libmuse.ReaderMusePlaybackSettings.AS_FAST_AS_POSSIBLE_WITH_SAVED_TIMESTAMP

The ReaderMuse should playback the data as fast as it can be read from the file. There will be no simulated time between packets and the timestamps of the packets created during playback will match the timestamps that are saved in the file.

§ SIMULATED_WITH_SAVED_TIMESTAMP

com.choosemuse.libmuse.ReaderMusePlaybackSettings.SIMULATED_WITH_SAVED_TIMESTAMP

The ReaderMuse should playback the data simulating the time between packets. For example, if the second packet in the file has a timestamp that is 20ms later than the timestamp of the first packet, then LibMuse will wait for 20ms after the first packet is sent before sending the second packet. The timestamps of the packets created during playback will match the timestamps that are saved in the file.

Using this setting requires that the ReaderMuse be constructed with an EventLoop that will be used to simulate the time between packets. If this setting is used, but the ReaderMuse does not have an EventLoop then playback will not read the file and a warning will be logged.

§ SIMULATED_WITH_SYSTEM_CLOCK_TIMESTAMP

com.choosemuse.libmuse.ReaderMusePlaybackSettings.SIMULATED_WITH_SYSTEM_CLOCK_TIMESTAMP

The ReaderMuse should playback the data simulating the time between packets. For example, if the second packet in the file has a timestamp that is 20ms later than the timestamp of the first packet, then LibMuse will wait for 20ms after the first packet is sent before sending the second packet. The timestamps of the packets created during playback will use the current times of the system clock rather than the timestamp of the packet saved in the file.

Using this setting requires that the ReaderMuse be constructed with an EventLoop that will be used to simulate the time between packets. If this setting is used, but the ReaderMuse does not have an EventLoop then playback will not read the file and a warning will be logged.


The documentation for this enum was generated from the following file: