In my Trial routine, I have a Microphone component recording sound, which is followed by a Keyboard component that ends the recording (and thus the routine) whenever the subject presses a key. The Microphone component’s “duration” is thus irrelevant, and I’ve set it to a random high value (60s; most subjects take 10-15s long for a recording).
Most of the audio WAV data thus obtained is fine, however for some (random?) trials, these recordings are cut-off, and much shorter than they should be (as if the subject pressed a key to end the recording earlier than when they actually did). For these trials, the .LOG file suggests that nothing went wrong, for instance here below is the line corresponding to a recording that should have been 14s long but is instead only 2s long.
DATA AdvAudioCapture record: Record stopped early, new duration 14.066s
Am using 1.83.04 (due to problems with 1.85.01 that I report in a different thread). Any idea why this problem occurs? Many thanks!
OS (e.g. Win10): Win 7
PsychoPy version (e.g. 1.84.x): 1.83.04