You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Every stimulus in psylib is a PsyStimulus. PsyStimulus has the following API
psy_stimulus_play(PsyStimulus*, Psytimepoint) // You'll have to set the duration manually. psy_stimulus_play_for(PsyStimulus*, PsyTimePoint*, PsyDuration) // All parameters from the perspective from the stimulus are set it should be ready to rumble psy_stimulus_play_until(PsyStimulus*, PsyTimePoint*, PsyTimePoint*) Same as before, but duration is calculated.
However, to use a PsyGstStimulus, you'll have to set it to running. And setting it to running, requires the duration of the stimulus to be known, otherwise, the audiotestsrc can't be given an a specified number of buffers. Preferably the stimulus is set to running, because that starts the Gstreamer pipeline, otherwise the audio mixer might be unable to fetch GstSample* 's as the pipeline is stale.
The text was updated successfully, but these errors were encountered:
The inheritance forPsy Wave is
GObject -> PsyStimulus -> PsyAuditoryStimulus -> PsyGstStimulus -> PsyWave
Every stimulus in psylib is a PsyStimulus. PsyStimulus has the following API
psy_stimulus_play(PsyStimulus*, Psytimepoint)
// You'll have to set the duration manually.psy_stimulus_play_for(PsyStimulus*, PsyTimePoint*, PsyDuration)
// All parameters from the perspective from the stimulus are set it should be ready to rumblepsy_stimulus_play_until(PsyStimulus*, PsyTimePoint*, PsyTimePoint*)
Same as before, but duration is calculated.However, to use a PsyGstStimulus, you'll have to set it to running. And setting it to running, requires the duration of the stimulus to be known, otherwise, the audiotestsrc can't be given an a specified number of buffers. Preferably the stimulus is set to running, because that starts the Gstreamer pipeline, otherwise the audio mixer might be unable to fetch GstSample* 's as the pipeline is stale.
The text was updated successfully, but these errors were encountered: