|
ANY-maze Help > I/O devices supported by ANY-maze > Other I/O devices supported by ANY-maze > Using soundcards as I/O audio devices Using soundcards as I/O audio devices
IntroductionANY-maze can directly control your computer's soundcards, by treating them as I/O devices. The left and right channels of the soundcard are then treated as separate speaker ports, thus giving you two entirely independent sound sources for each soundcard that is installed. Both speaker ports on a soundcard, or even the speakers from multiple soundcards, can be used within a single apparatus, or (if you are performing an experiment with multiple apparatus), as separate ports for different apparatus. For more details, see:
Setting up soundcards for use in ANY-mazeBefore you can use a soundcard in ANY-maze, you must enable it using the I/O page. Use the
Enabling a soundcard is as simple as selecting it in the list of devices, then choosing the Enable this soundcard for use in ANY-maze option from the drop-down list under the list of devices. Note that you can also use this list to select which soundcard will play white noise using the Soundcards, particularly those built into a computer, can have fairly long-winded names and so you'll probably want to give them names that are more meaningful to you. This is particularly helpful if you have multiple soundcards of the same type connected - see below. You can use the You can also use the I/O page to test your soundcards. This may be particularly useful if you have multiple similar USB soundcards attached to your computer, to see which of the soundcards maps to those that are listed in the ANY-maze software. Once you've enabled any soundcards that you want to use, you can then use them in any protocol where the Protocol mode is set up to use I/O. Using multiple soundcards for different apparatusIf you're running tests in multiple apparatus simultaneously, you can use a number of different soundcards attached to the ANY-maze computer to generate audio separately for each of the apparatus. You can purchase small external USB soundcards, with a headphone and microphone port, from under $10. Each of these soundcards will give you two channels (or 'speaker ports' in ANY-maze) via its headphone port. So, for example, if you're running four experiments at once, and you need a speaker in each apparatus, you could attach two USB soundcards to your computer and use them as follows:
Figure 1. Using two soundcards to control the sound on four apparatus. This involves setting up each soundcard as an I/O device, then using the channels of the soundcards as speaker ports.
If you have multiple soundcards of the same type from the same manufacturer, Windows has no way of differentiating between them - it will see each of them as the same soundcard and will therefore give them the same name. So it's very important that if you have multiple soundcards, each of which is connected by cables to speakers for a specific apparatus, that you always plug them into the computer on the same port each time. You could mark the soundcards in some way, or use small stickers to help you remember which soundcard should be plugged into which port. Note that if two soundcards of the same type, with the same name, are set up to be used in a protocol for different apparatus, but then they are unplugged and plugged back into different ports, then the experiment will still appear to work (since ANY-maze can't know the difference between two identical soundcards) - but the sounds will actually be generated in the wrong apparatus! Sounds that ANY-maze can playSoundcards can play any sound that ANY-maze can generate (tones, white noise or sound files), provided that the sound falls within the frequency range of the soundcard. For more details, see the Soundcard speakers topic. White noiseAs described in the Soundcard speakers topic, ANY-maze can play white noise as a consistent background noise and to mask out any other sounds in the lab. You can set up your soundcard speaker ports to play white noise in one of the following ways:
Normally, when you change a speaker's audio source (between a tone, white noise or a sound file), it stops playing the current source and switches to the new source. However, there may be circumstances in which you want to mix the white noise and another sound. If you've got white noise playing as a background, for example, you might not want to turn this off when you start to play a tone as part of the experiment. There are a number of ways you could do this:
This method can use two separate channels of the same soundcard as two separate audio sources (speaker ports).
See also:
© Copyright 2003-2026 Stoelting Co. All rights reserved ANY-maze help topic T1285 |