Runtime Error 1234: Cannot set sound presenter positions since start is greater than duration
I'm struggling with an error message that I've done everything I can think of to troubleshoot so I'm hoping someone here may have some guidance.
Our participants will be counting their heartbeats during multiple trials with different specified time periods (e.g., 15 seconds, 30 seconds). The trial procedure has two slides. I am trying to program a 4-second sound file to play on Slide 1 at the end of the time period to direct their attention back to the screen, which will then move to the next slide asking them to enter the number of beats they counted on Slide 2.
Initially, I was using a list object with attributes TrialDur (duration, e.g., 19000, 34000) and SoundOnset (e.g., 15000, 30000). I set the duration of Slide 1 as [TrialDur], the SoundOut Start Offset as [SoundOnset] and Stop Offset as [TrialDur]. As soon as E-Run gets to Slide 1, I get the following error:
The following runtime error occurred:
Cannot set sound presenter positions since start is greater than duration
Error Number: 1234
My next move was to have the SoundOut object play at the start of Slide 2 (Start Offset 0 ms, Stop Offset 4000ms). I get the same error.
The error occurs if the slide duration is set to infinite, regardless of streaming vs. buffered Buffer Mode, whether it's programmed in ms or microseconds, and basically regardless of how I set any of the settings.
If it helps, the script segment is:
308 Set Baseline_SlideSoundOut = CSlideSoundOut(Baseline.ActiveSlideState.Objects(ebUCase_S & ebLCase_o & ebLCase_u & ebLCase_n & ebLCase_d & ebUCase_O & ebLCase_u & ebLCase_t & ebDigit_1))
309 Set Baseline_SoundBuffer = Baseline_SlideSoundOut.Buffers(1)
311 Set Baseline_SoundBuffer = Nothing
312 Set Baseline_SlideSoundOut = Nothing
I'm completely stumped and I'd appreciate any help. :)
You might find more help at the E-Prime Google Group, groups.google.com/group/e-prime.
Please sign in to leave a comment.