Meadville Space Center
Welcome, Guest. Please login or register.
June 07, 2020, 05:25:07 AM

Login with username, password and session length
Search:     Advanced search
Welcome to the new Meadville Space Center forums!
25068 Posts in 2094 Topics by 2266 Members
Latest Member: twa517
* Home Help Search Login Register
+  Meadville Space Center
|-+  Project Apollo - NASSP
| |-+  Project Apollo - NASSP Development
| | |-+  Programming (Moderators: movieman, dseagrav, Swatch, lassombra)
| | | |-+  OrbiterSound 4.0 and VisualStudio 2013
« previous next »
Pages: [1] Print
Author Topic: OrbiterSound 4.0 and VisualStudio 2013  (Read 2004 times)
vrouleau
Project Team Member
Full Member
****
Posts: 153


View Profile Email
« on: July 29, 2014, 01:30:33 PM »

I am ready to commit changes to be compliant to OrbiterSound 4.0 SDK. This would force everybody to swith to switch to OrbiterSound 4.0 instaead off 3.5. Does anybody mind? I'll wait a month before doing my commit, seeing that things are quiet.

Also I generated new VisualStudio 2013 project files ( also using OrbiterSound 4.0 )
Logged
NoName
Project Team Member
Hero Member
****
Posts: 795


View Profile
« Reply #1 on: July 29, 2014, 02:03:12 PM »

I always use the latest version anyway.
Logged
eddievhfan1984
Hero Member
*****
Posts: 737



View Profile
« Reply #2 on: July 29, 2014, 08:47:23 PM »

I've already implemented similar changes in my own copy of the code. But I'm curious; did you manage to take care of that Sound ID number issue, or did you just remove the offending lines of code?
Logged
vrouleau
Project Team Member
Full Member
****
Posts: 153


View Profile Email
« Reply #3 on: July 29, 2014, 09:34:25 PM »

I saw your other in the Sound group. The number of arguments did not change in the library. There is just a conflict with the "C" function  in the SDK and the method in the soundlib object since the 3 postfix was removed in the SDK 4.0. The SoundOptionOnOff only changed the last parameter from an int to a BOOL. Just add the :: root namespace

{
   ::SoundOptionOnOff(option,onoff);
}
« Last Edit: July 29, 2014, 09:51:24 PM by vrouleau » Logged
eddievhfan1984
Hero Member
*****
Posts: 737



View Profile
« Reply #4 on: July 29, 2014, 10:01:10 PM »

According to the new SDK, you can disable default sound options on a vehicle-by-vehicle basis, so a variable was included for the Vehicle's Sound ID for that purpose...
Logged
vrouleau
Project Team Member
Full Member
****
Posts: 153


View Profile Email
« Reply #5 on: July 30, 2014, 06:30:16 AM »

Its soundlibId, an attribute of class SoundLib

void SoundLib::SoundOptionOnOff(int option,BOOL status)

{
   ::SoundOptionOnOff(SoundlibId, option, status);
}

I had modified the VC2005, VC2008,VC2010 and VC2013 project files to link with the new lib. I'll wait for Tschachim's green light before commit.
« Last Edit: July 30, 2014, 06:34:57 AM by vrouleau » Logged
eddievhfan1984
Hero Member
*****
Posts: 737



View Profile
« Reply #6 on: July 30, 2014, 07:08:27 AM »

Coolness.
Logged
vrouleau
Project Team Member
Full Member
****
Posts: 153


View Profile Email
« Reply #7 on: July 15, 2015, 02:00:09 PM »

I finally pushed today, I need to install OrbiterSound 4.0 to compile/run. Of course, a year later, VC2015 is the latest version of VisualStudio, so I pushed the project files for VC2015.
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!