Inquisit can't open sound files


Author
Message
Nadine
Nadine
Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)
Group: Forum Members
Posts: 15, Visits: 128
Hello fellow Inquisit users,

I have a very urgent problem that I really don't understand. I tried to include audio instructions into my script. To understand how to do this, I previously used dummy files to learn how to include sound files into my script. Then I recorded audio files in the wave format with the program Audacity. Now that I put the new audio files instead of the dummy files, the program doesn't start anymore and I whatever I change I always get either the error message "unable to open file ..." or "DirectSound Error -2147024809: An invalid parameter was passed to the returning function. Line 99, File win\SoundPlayer.cpp". 

What could be the problem here, I really don't get it. 

The following is the part of the script that includes the instructions:
____________________________________________________________
<trial instructions>
/ stimulustimes = [1 = instructions, s_instr, spacebar]
/ correctresponse = (" ")
/ errormessage = false
/ recorddata = false
</trial>

<counter instructions>
/ resetinterval = 20
/ select = sequence(1, 2, 3)
</counter>

<text instructions>
/ items = instructions
/ hjustify = left
/ size = (90%, 60%)
/ position = (50%, 70%)
/ valign = bottom
/ select = instructions
/ fontstyle = ("Arial", 26)
</text>

<sound s_instr>
/ items = ("instructions1-1gonogo.wav", "instructions2gonogo.wav", "instructions3gonogo.wav")
/ playthrough = true
/ resetinterval = 20
/ select = current(instructions)
</sound>

<item instructions>
/ 1 = "Bei dieser Aufgabe sollst du dir Zahlen merken. Auf dem Bildschirm werden dir nacheinander Zahlen angezeigt. Die sollst du dann in der gleichen Reihenfolge auf der Tastatur in ein weißes Kästchen eintippen. Es kommen nur Zahlen von 0 bis 9 vor.~n~nJede Zahlenreihe beginnt, indem ein '+' in der Mitte des Bildschirms angezeigt wird, danach werden nacheinander die Zahlen angezeigt. Schau dir die Zahlen gut an und merke sie dir. Wenn die Zahlenreihe fertig ist, siehst du ein Kästchen auf dem Bildschirm, in das du mit der Tastatur die Zahlen eintragen sollst.~n~nEs geht mit zwei Zahlen los. Manchmal wirst du dir nicht alle Zahlen merken können. Dann schreib einfach die Zahlen in das Kästchen, an die du dich noch erinnern kannst.~n~nDann üben wir das jetzt erst einmal. Denk dran, dir die Zahlen, die angezeigt werden, gut zu merken und dann in der selben Reihenfolge in das weiße Kästchen einzugeben. Pass gut auf. Jetzt kommen die Zahlen.~n~nWenn du bereit bist, drücke auf die Taste mit dem gelben Punkt."
/ 2 = "~n~nManchmal sind es auch etwas mehr Zahlen. Das üben wir gleich einmal."
/ 3 = "~n~nDu musst dir also die Zahlen erst anschauen und dann am Ende in der gleichen Reihenfolge in das weiße Kästchen eintippen.~n~nJetzt fangen wir richtig an. Gleich kommen einige Aufgaben und ich sage dir nicht mehr, ob deine Antwort richtig oder falsch war. Wenn du auf die Taste mit dem gelben Punkt drückst, geht es mit der ersten Aufgabe los."
</item>

<text spacebar>
/ items = ("DRÜCKE AUF DIE TASTE MIT DEM GELBEN PUNKT.")
/ position = (50%, 92%)
/ valign = bottom
/ color = orange
/ fontstyle = ("Arial", 5%, true)
</text>

Nadine
Nadine
Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)
Group: Forum Members
Posts: 15, Visits: 128
I just realized that the first problem came from an error in renaming the files. But now that it can read the files, I still get the second error with the "DirectSound Error"... :/
Nadine
Nadine
Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)
Group: Forum Members
Posts: 15, Visits: 128
"Have you tried turning it off and on again?" ;) 

Sorry, but the problem suddenly resolved mysteriously when I rebooted the computer...
Nadine
Nadine
Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)
Group: Forum Members
Posts: 15, Visits: 128
Quick question: Is it possible to incorporate sound files into surveypages or elements on surveypages like a textbox element? (And if so, how?)
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
You would have to use the <surveypage>'s /stimulusframes attribute to "display" the <sound> element (just like you would in a regular <trial>:

<surveypage mypage>
/ stimulusframes = [1=mysound]
...
</surveypage>

<sound mysound>
...
</sound>

Nadine
Nadine
Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)
Group: Forum Members
Posts: 15, Visits: 128
Ok, great, thanks! I wasn't sure whether I could use stimulusframes in a survey since I didn't find it listed in the documentation.
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
Hmm, as far as I can see the documentation does list /stimulusframes as an attribute for <surveypage> elements (as it should). It does not do so for <survey> elements (and it shouldn't). A <survey> element is a special type of <block>, it does not make sense for it to have a /stimulusframes attribute. A <surveypage> element, respectively, is a special type of <trial>.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search