Difference between revisions of "Template:ApplicationBaseStates"

From BCI2000 Wiki
Jump to: navigation, search
 
Line 1: Line 1:
 +
===PreStimulusTime===
 +
A 16-bit time stamp in the same format as the ''SourceTime'' state.
 +
This time stamp is set immediately before the application module is going to update the stimulus/feedback display.
 +
 
===StimulusTime===
 
===StimulusTime===
 
A 16-bit time stamp in the same format as the ''SourceTime'' state.  
 
A 16-bit time stamp in the same format as the ''SourceTime'' state.  
 
This time stamp is set immediately after the application module has updated the stimulus/feedback display.
 
This time stamp is set immediately after the application module has updated the stimulus/feedback display.
 +
 +
===PresentationRequested===
 +
This 32-bit state contains a list of ids for all presentations that have been requested during the current block. The list ends with a value of 2^31. A 32-bit presentation id is formed by combining the 16-bit ''SourceTime'' state of the presentation request's data block in the most significant bits, with the time difference between that source time stamp and the time when the presentation request happened, in the least significant bits.
 +
 +
===PresentationDisplayed===
 +
This 32-bit state contains a list of ids for all presentations that have been displayed during the current block. The list ends with a value of 2^31. Presentation ids appear in the ''PresentationRequested'' state when presentation is requested, and subsequently in the ''PresentationDisplayed'' state when presentation has occurred.
 +
 +
===PresentationTime===
 +
A 16-bit time stamp in the same format as the ''SourceTime'' state.
 +
For each id occurring in the ''PresentationDisplayed'' state, this state contains the time stamp of the respective update to video memory.
 +
 +
===PresentationFrame===
 +
A 12-bit state that contains, for each id occurring in the ''PresentationDisplayed'' state, the frame number of the respective update to video memory. Frame numbers have an arbitrary offset, and wrap around at a value of 2^11.
 +
 +
===AudioBufferTime===
 +
A 16-bit time stamp in the same format as the ''SourceTime'' state.
 +
For each audio presentation that has occurred during the current block, this state contains the time stamp when non-zero audio data were about to enter the system's audio buffer.
 +
 +
===AudioPresentationTime===
 +
A 16-bit time stamp in the same format as the ''SourceTime'' state.
 +
For each audio presentation that has occurred during the current block, this state contains the estimated time stamp when non-zero audio data were being played from the system's speakers or headphones. The estimate takes the length of the system's audio buffers into account but will not be able to detect external sources of delays, such as additional audio processing steps.

Revision as of 15:40, 11 January 2019

PreStimulusTime

A 16-bit time stamp in the same format as the SourceTime state. This time stamp is set immediately before the application module is going to update the stimulus/feedback display.

StimulusTime

A 16-bit time stamp in the same format as the SourceTime state. This time stamp is set immediately after the application module has updated the stimulus/feedback display.

PresentationRequested

This 32-bit state contains a list of ids for all presentations that have been requested during the current block. The list ends with a value of 2^31. A 32-bit presentation id is formed by combining the 16-bit SourceTime state of the presentation request's data block in the most significant bits, with the time difference between that source time stamp and the time when the presentation request happened, in the least significant bits.

PresentationDisplayed

This 32-bit state contains a list of ids for all presentations that have been displayed during the current block. The list ends with a value of 2^31. Presentation ids appear in the PresentationRequested state when presentation is requested, and subsequently in the PresentationDisplayed state when presentation has occurred.

PresentationTime

A 16-bit time stamp in the same format as the SourceTime state. For each id occurring in the PresentationDisplayed state, this state contains the time stamp of the respective update to video memory.

PresentationFrame

A 12-bit state that contains, for each id occurring in the PresentationDisplayed state, the frame number of the respective update to video memory. Frame numbers have an arbitrary offset, and wrap around at a value of 2^11.

AudioBufferTime

A 16-bit time stamp in the same format as the SourceTime state. For each audio presentation that has occurred during the current block, this state contains the time stamp when non-zero audio data were about to enter the system's audio buffer.

AudioPresentationTime

A 16-bit time stamp in the same format as the SourceTime state. For each audio presentation that has occurred during the current block, this state contains the estimated time stamp when non-zero audio data were being played from the system's speakers or headphones. The estimate takes the length of the system's audio buffers into account but will not be able to detect external sources of delays, such as additional audio processing steps.