Wrecked Games

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're just that awesome.

Author Topic: Playing video with mono audio for 3D sound (FMOD)  (Read 1297 times)

Bren

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 3
    • View Profile
Playing video with mono audio for 3D sound (FMOD)
« on: May 16, 2007, 01:19:14 PM »

In order to play positional 3D sound, FMOD requires the sound be either mono, or forced to mono with FSOUND_FORCEMONO (or by default with FSOUND_3DHW).

In the TheoraAudioDriver call to openAudioStream, it seems that THEORA_AUDIOSTREAM_STEREO is hardcoded.

I've tried a whole bunch of things, and cannot get Theora to play nice with FMOD positional audio.  The closest I get is positional audio playing at half speed.

How do you get Theora to work properly when playing mono?
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Re: Playing video with mono audio for 3D sound (FMOD)
« Reply #1 on: July 15, 2007, 10:02:43 AM »

Well, if you have a mono encoded vorbis stream in the ogg file, it should work... I don't recall stereo being hard coded, but if it is like you say, a simple fix to detect the mono vorbis stream and only decode half the data should be all that is required. Unfortunately, I do not have the time to fix this issue. Patches welcome as always.
Logged