WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-05-2009, 09:51 AM
GiudiceLab GiudiceLab is offline
Member
 
Join Date: May 2009
Location: Orono, ME
Posts: 49
Lightbulb output to multiple (two) sound devices

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.
Attached Files
File Type: zip pySonicExample.zip (241.4 KB, 1504 views)
Reply With Quote
  #2  
Old 08-05-2009, 02:12 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Thanks for posting this info and script.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sound Looping Problem JMOwens Vizard 4 09-29-2010 10:42 PM
Multiple Sound Devices GiudiceLab Vizard 2 06-06-2009 11:29 AM
Stuttering sound Jerry Vizard 1 06-13-2007 01:36 PM
Sound in one ear only? Jerry Vizard 1 06-29-2006 05:26 PM
sound problem alaa Vizard 7 09-02-2005 02:13 PM


All times are GMT -7. The time now is 09:53 AM.


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