WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   output to multiple (two) sound devices (https://forum.worldviz.com/showthread.php?t=2199)

GiudiceLab 08-05-2009 08:51 AM

output to multiple (two) sound devices
 
1 Attachment(s)
I figured out how to output sound to both headphones and speaker in the same script, and I thought this might be generally useful for people, so I am posting an example script. I hope that's okay--I didn't see any rule against it.

This code uses pySonic (pySonic.sourceforge.net), which is a python wrapper for the Fmod programming library. I used it to create a secondary sound output. This way, I could play sounds to the headphones using the built-in Vizard library, which outputs to the Windows default device, and I could play sounds to the speakers using pySonic's functions.

I haven't tried multiple outputs with spatialized sound, and I haven't tested how well this works with our actual experiment code, but I thought it was a good start. I hope it is useful. Any revelations are appreciated.

Jeff 08-05-2009 01:12 PM

Thanks for posting this info and script.


All times are GMT -7. The time now is 04:14 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC