﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 4  » How to stop sounds</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Mon, 08 Jun 2026 07:08:40 GMT</lastBuildDate><ttl>20</ttl><item><title>How to stop sounds</title><link>https://forums.millisecond.com/Topic17824.aspx</link><description>Hi,&lt;br/&gt;&lt;br/&gt;i am programming a game for my master thesis and could need some help.&lt;br/&gt;Participants should play 3 rows of a public goods game while listening to one certain sound (length of about 10 minutes) and after playing those 3 rounds the sound should be stopped or replaced by a second soundfile. Listening to that new soundfile they should play another 3 rows. &lt;br/&gt;My problem is that i cant stop the sound (tried to change the "erase" status, lowering the volume and many other things but it seems you can just set these attributes once and not change them in any trial).&lt;br/&gt;My sound looks like that:&amp;nbsp; (there are 3 sounds because i got 2 groups and they will hear different sounds)&lt;br/&gt;&lt;br/&gt;&amp;lt;sound test&amp;gt;&lt;br/&gt;/ erase = false&lt;br/&gt;/ items = (test1.wav", "test2.wav", "test3.wav")&lt;br/&gt;/ select = replace&lt;br/&gt;/ playthrough = false &lt;br/&gt;&amp;lt;/sound&amp;gt; &lt;br/&gt;&lt;br/&gt;i hoped by "select = replace" the playing sound would just stop when the next starts but it doenst work, the second starts but the first one doenst stop.&lt;br/&gt;&lt;br/&gt;Is there any way to fix my problem? I could reduce the length of the tracks but i dont know exactly how long it will take the participants to play the 3 rounds of the game.&lt;br/&gt;&lt;br/&gt;Thanks for your help&lt;br/&gt;Herby&lt;br/&gt;</description><pubDate>Thu, 24 Aug 2017 15:36:20 GMT</pubDate><dc:creator>Herby1209</dc:creator></item><item><title>RE: How to stop sounds</title><link>https://forums.millisecond.com/Topic22322.aspx</link><description>&lt;div data-id="22320" class="if-quote-wrapper" unselectable="on" data-guid="1503613973361"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22320" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="22320" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="22320" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;vonrishi - Thursday, August 24, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22320"&gt;&lt;div class="if-quote-message-margin"&gt;This thread helped me in getting started, but I have a slightly different task I want to perform.&lt;br/&gt;&lt;br/&gt;The experiment will begin when the participants clicks on the picture. It will be a 6 minute audio file. The participant should have the option to pause the sound and resume by clicking on the same picture/button. I read on another thread that Inquisit doesn't support pausing/resuming video files. Does it apply to audio files too? If not, what is the syntax to pause/resume an audio with a button press?&lt;br/&gt;&lt;br/&gt;I would greatly appreciate your input. Thank you.&lt;a class="if-quote-goto quote-link" href="#" data-id="22320"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Yes., the limitation applies to audio files as well. There is no way to pause / resume an audio file, I'm afraid. _Perhaps_ one method you could explore is to embed the audio in a HTML file along with a small player that allows for pausing. You could then have your Inquisit script display that HTML file as a stimulus per the &amp;lt;html&amp;gt; element.&lt;br/&gt;</description><pubDate>Thu, 24 Aug 2017 15:36:20 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title /><link>https://forums.millisecond.com/Topic22320.aspx</link><description>This thread helped me in getting started, but I have a slightly different task I want to perform.&lt;br/&gt;&lt;br/&gt;The experiment will begin when the participants clicks on the picture. It will be a 6 minute audio file. The participant should have the option to pause the sound and resume by clicking on the same picture/button. I read on another thread that Inquisit doesn't support pausing/resuming video files. Does it apply to audio files too? If not, what is the syntax to pause/resume an audio with a button press?&lt;br/&gt;&lt;br/&gt;I would greatly appreciate your input. Thank you.</description><pubDate>Thu, 24 Aug 2017 12:09:20 GMT</pubDate><dc:creator>vonrishi</dc:creator></item><item><title>RE: How to stop sounds</title><link>https://forums.millisecond.com/Topic17851.aspx</link><description>Thanks! You are my hero!&lt;br/&gt;&lt;br/&gt;I used an mp3 file as video and the program does exactly what it should do!&lt;br/&gt;</description><pubDate>Thu, 26 Nov 2015 06:09:17 GMT</pubDate><dc:creator>Herby1209</dc:creator></item><item><title>RE: How to stop sounds</title><link>https://forums.millisecond.com/Topic17850.aspx</link><description>You don't need to convert to a video format to use the &amp;lt;video&amp;gt; element. The &amp;lt;video&amp;gt; element handles all kinds of compressed / "streaming" formats, including audio-only formats (e.g. MP3).&lt;br/&gt;</description><pubDate>Thu, 26 Nov 2015 06:04:25 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: How to stop sounds</title><link>https://forums.millisecond.com/Topic17849.aspx</link><description>i cant find a way to edit my posts thus i made a this one:&lt;br/&gt;&lt;br/&gt;i am thinking about converting my Wav files to a video and play it with 1x1 pixels in one corner... maybe that would work.&lt;br/&gt;</description><pubDate>Thu, 26 Nov 2015 05:57:53 GMT</pubDate><dc:creator>Herby1209</dc:creator></item><item><title>RE: How to stop sounds</title><link>https://forums.millisecond.com/Topic17848.aspx</link><description>Hi,&lt;br/&gt;&lt;br/&gt;1: i am using Windows 10 Home 64 bit&lt;br/&gt;2: i just downloaded the latest Version (Inquisit for Lab 4.0.9.0)&lt;br/&gt;3: i couldnt believe my eyes, videos actually stop. When i use video and sound as bgstim only the video stops but the sound keeps playing.&lt;br/&gt;&lt;br/&gt;also tried different sound files, maybe it is a codec problem. i used Audacity to create "WAV (Microsoft) signed 16-bit pcm"&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Thu, 26 Nov 2015 05:53:32 GMT</pubDate><dc:creator>Herby1209</dc:creator></item><item><title>RE: How to stop sounds</title><link>https://forums.millisecond.com/Topic17847.aspx</link><description>That code looks okay. FWIW, sounds stop / change with a new block for me as they should.&lt;br/&gt;&lt;br/&gt;#1: What's your OS (type and version)?&lt;br/&gt;#2: Is your Inquisit installation up to date? If not, please install the latest release?&lt;br/&gt;#3: What happens when you use a &amp;lt;video&amp;gt; element instead of &amp;lt;sound&amp;gt;?&lt;br/&gt;&lt;br/&gt;Thanks.&lt;br/&gt;</description><pubDate>Thu, 26 Nov 2015 05:29:42 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: How to stop sounds</title><link>https://forums.millisecond.com/Topic17846.aspx</link><description>Btw i corrected my mistake in resetintervall but it didnt change anything.&lt;br/&gt;When a new block starts with bgstim both songs are played at the same time... no idea why this happens&lt;br/&gt;</description><pubDate>Thu, 26 Nov 2015 05:26:40 GMT</pubDate><dc:creator>Herby1209</dc:creator></item><item><title>RE: How to stop sounds</title><link>https://forums.millisecond.com/Topic17845.aspx</link><description>This doenst seem to work at all...&lt;br/&gt;I also tried to seperate the three songs but the effect is the same. After the block ended the music keeps playing and doenst stop as it should.&lt;br/&gt;Is there any mistake i am too blind to see?&lt;br/&gt;&lt;br/&gt;&amp;lt;block Spielrunde_neutral&amp;gt;&lt;br/&gt;/ bgstim = (Musik)&lt;br/&gt;/ trials = [1 = sequence(instructions_contributions, verhaltenA_no_fear, verhaltenB_no_fear, verhaltenC_no_fear)]&lt;br/&gt;/ onblockend = [values.totalwin_p=(values.firstround_win+values.secondround_win+values.thirdround_win);&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; values.totalwin=((values.firstround_win+values.secondround_win+values.thirdround_win)*40);&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; values.totalwin_plus=(((values.firstround_win+values.secondround_win+values.thirdround_win)*40)+2400);&lt;br/&gt;]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;sound Musik&amp;gt;&lt;br/&gt;/ items = ("test1.wav", "test2.wav", "test3.wav")&lt;br/&gt;/ select = noreplace&lt;br/&gt;/ playthrough = false&lt;br/&gt;/ selectionrate = block&lt;br/&gt;/ resetininterval = 0&lt;br/&gt;&amp;lt;/sound&amp;gt; &lt;br/&gt;</description><pubDate>Thu, 26 Nov 2015 05:11:38 GMT</pubDate><dc:creator>Herby1209</dc:creator></item><item><title>RE: How to stop sounds</title><link>https://forums.millisecond.com/Topic17843.aspx</link><description>Thanks for your answer, i will modify my program and see if this works!&lt;br/&gt;</description><pubDate>Thu, 26 Nov 2015 00:05:47 GMT</pubDate><dc:creator>Herby1209</dc:creator></item><item><title>RE: How to stop sounds</title><link>https://forums.millisecond.com/Topic17830.aspx</link><description>Set up a &amp;lt;block&amp;gt; that runs your 3 "game rounds" (i.e., the &amp;lt;trial&amp;gt;s). During the &amp;lt;block&amp;gt;, have the sound play in the background via the &amp;lt;block&amp;gt;'s /bgstim. Run the block 3 times.&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ blocks = [1-3 = gameblock]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block gameblock&amp;gt;&lt;br/&gt;/ bgstim = (test)&lt;br/&gt;/ trials = [...]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;sound test&amp;gt;&lt;br/&gt;/ items = (test1.wav", "test2.wav", "test3.wav")&lt;br/&gt;/ select = noreplace&lt;br/&gt;/ playthrough = false &lt;br/&gt;/ selectionrate = block&lt;br/&gt;/ resetininterval = 0&lt;br/&gt;&amp;lt;/sound&amp;gt; &lt;br/&gt;&lt;br/&gt;</description><pubDate>Wed, 25 Nov 2015 05:53:36 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>