ok I no sound. So I am running it in debugger.
the vessel is tcar2comp
From the debugger I get this:
JohnSoundID 13 int
soundlog:
Vessel NEWWP requested an ID, returned= 0 OK
Vessel DEPOT requested an ID, returned= 1 OK
Vessel tpad requested an ID, returned= 2 OK
Vessel JDome4 requested an ID, returned= 3 OK
Vessel FUELSTORE requested an ID, returned= 4 OK
Vessel UMmu_99C-John_Koenig requested an ID, returned= 5 OK
Vessel UMmu_99T-Marc_Kingsley requested an ID, returned= 6 OK
Vessel UMmu_9DM3-Dr_Mattias requested an ID, returned= 7 OK
Vessel UMmu_99N1-Julianna_Harvey requested an ID, returned= 8 OK
Vessel UMmu_99N2-Kelly_Mac_Reilly requested an ID, returned= 9 OK
Vessel UMmu_99N3-Caroline_Loiseau requested an ID, returned= 10 OK
Vessel UMmu_99SB-Sandra_Benes requested an ID, returned= 11 OK
Vessel UMmu_99N4-Zoe_Prentis requested an ID, returned= 12 OK
Vessel tcar2comp requested an ID, returned= 13 OK
Vessel TCARLP4 requested an ID, returned= 14 OK
Vessel MBATCAR requested an ID, returned= 15 OK
Vessel TCARHYDRO requested an ID, returned= 16 OK
attempting focus change...
Focus not ready bypassing focus change - Ok
Attempting RenderViewport initialisation...
Attempting GetStartValue initialisation...
Passed GetStartValue - Ok
Initialising directsound...
directsound initialised - OK
Passed RenderViewport - Ok
Attempting Mp3 initialisation...
MP3 found in playlist = 1
Mp3 initialised - Ok
Focus changed attempting to load vessel wave
Focus changed load vessel wave - OK
the vessel is tcar2comp
From the debugger I get this:
JohnSoundID 13 int
Code:
#define ORBITER_MODULE
#include "orbitersdk.h"
#include "COMPNGA3.h"
#include "COMPNGA3BMESH.h"
#include "OrbiterSoundSDK35.h"
#define ENG 1
#define START 2
#define STOP 3
//#define doorsound 1
//#define undocksound 2
//#define reqdoor 3
#define doorsound2 4
#define DESIGNATION 5
#define DESIGNATIONACCEPTED 6
//#define ENG 7
//#define CANNON 38
VISHANDLE MainExternalMeshVisual = 0;
Code:
void COMPNGA3::clbkPostCreation (void)
{{
DWORD mode=GetADCtrlMode ();
mode|=32;
SetADCtrlMode (mode);
}
JohnSoundID=ConnectToOrbiterSoundDLL3(GetHandle());
RequestLoadVesselWave3(JohnSoundID,ENG,"Sound\\Vessel\\LASERTANK\\Tank-go.wav",BOTHVIEW_FADED_FAR);
RequestLoadVesselWave3(JohnSoundID,START,"Sound\\Vessel\\TCARS\\door1c.wav",BOTHVIEW_FADED_FAR);
//RequestLoadVesselWave3(JohnSoundID,CANNON,"Sound\\Vessel\\LASERTANK\\LASER.wav",BOTHVIEW_FADED_FAR);
SoundOptionOnOff3(JohnSoundID,PLAYMAINTHRUST,FALSE);
SoundOptionOnOff3(JohnSoundID,PLAYHOVERTHRUST,FALSE);
SoundOptionOnOff3(JohnSoundID,PLAYATTITUDETHRUST,FALSE);
SoundOptionOnOff3(JohnSoundID,PLAYCOUNTDOWNWHENTAKEOFF,FALSE);
SoundOptionOnOff3(JohnSoundID,PLAYCABINAIRCONDITIONING,FALSE);
SoundOptionOnOff3(JohnSoundID,PLAYCABINRANDOMAMBIANCE,FALSE);
SoundOptionOnOff3(JohnSoundID,PLAYRADIOATC,FALSE);
SoundOptionOnOff3(JohnSoundID,DISPLAYTIMER,FALSE);
Code:
if(ActionAreaReturnCode==4 )//at COMPUTER
{
// do something cool here, doors animation, system activation or repairing etc. Etc.
//PlayVesselWave3(JohnSoundID,doorsound2);
PlayVesselWave3(JohnSoundID,START);
//[COLOR="Red"]breakpoint[/COLOR]
if (TCAR1_status==DOOR_UP && TCARSTA2_status==DOOR_UP)//TCAR1 PRESENT AND DOOR OPEN
{
RevertTCARSTA2();
oldsimt=simt;
}
else if(TCARSTA2_status==DOOR_DOWN && TCAR1_status==DOOR_DOWN)//TCAR2 PRESENT AND DOOR OPEN AND TCAR1 PRESENT
{
RevertTCARSTA2();
oldsimt=0;
}
if(TCARSTA2_status==DOOR_UP && TCAR1_status==DOOR_DOWN)//TCAR2 PRESENT AND TCAR1 NOT PRESENT SO MOVE TCAR1
{
RevertTCAR1();
}
}
soundlog:
Vessel NEWWP requested an ID, returned= 0 OK
Vessel DEPOT requested an ID, returned= 1 OK
Vessel tpad requested an ID, returned= 2 OK
Vessel JDome4 requested an ID, returned= 3 OK
Vessel FUELSTORE requested an ID, returned= 4 OK
Vessel UMmu_99C-John_Koenig requested an ID, returned= 5 OK
Vessel UMmu_99T-Marc_Kingsley requested an ID, returned= 6 OK
Vessel UMmu_9DM3-Dr_Mattias requested an ID, returned= 7 OK
Vessel UMmu_99N1-Julianna_Harvey requested an ID, returned= 8 OK
Vessel UMmu_99N2-Kelly_Mac_Reilly requested an ID, returned= 9 OK
Vessel UMmu_99N3-Caroline_Loiseau requested an ID, returned= 10 OK
Vessel UMmu_99SB-Sandra_Benes requested an ID, returned= 11 OK
Vessel UMmu_99N4-Zoe_Prentis requested an ID, returned= 12 OK
Vessel tcar2comp requested an ID, returned= 13 OK
Vessel TCARLP4 requested an ID, returned= 14 OK
Vessel MBATCAR requested an ID, returned= 15 OK
Vessel TCARHYDRO requested an ID, returned= 16 OK
attempting focus change...
Focus not ready bypassing focus change - Ok
Attempting RenderViewport initialisation...
Attempting GetStartValue initialisation...
Passed GetStartValue - Ok
Initialising directsound...
directsound initialised - OK
Passed RenderViewport - Ok
Attempting Mp3 initialisation...
MP3 found in playlist = 1
Mp3 initialised - Ok
Focus changed attempting to load vessel wave
Focus changed load vessel wave - OK
Last edited: