See site in english Voir le site en francais
Website skin:
home  download  forum  link  contact

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

Author Topic: Sound coding issue  (Read 1712 times)

0 Members and 1 Guest are viewing this topic.

Offline gattico

  • Sr. Member
  • ****
  • Posts: 337
  • Country: United States us
  • Karma: 15
17 September 2007, 04:00:26
I have this coded:
#define ENG             1   
#define START             2   
#define STOP             3
#define CANNON             4   

MySoundID=ConnectToOrbiterSoundDLL3(GetHandle());
RequestLoadVesselWave3(MySoundID,CANNON,"Sound\\Vessel\\Chariot\\cannon.wav",BOTHVIEW_FADED_FAR);

   case OAPI_KEY_8: // fire
 

PlayVesselWave3(MySoundID,ENG,NOLOOP,255);


      return 1;

When the 8 is pressed I don't hear the wav
I plays fine in windows media player


Offline DanSteph

  • Administrator
  • Legend
  • *****
  • Posts: 15407
  • Karma: 256
  • Hein, quoi !?
    • FsPassengers
Reply #1 - 17 September 2007, 05:50:45
1st check Orbiter/orbitersound.log that wav is loaded ok...

if not, we'll see further.

Dan

« Last Edit: 17 September 2007, 07:19:49 by DanSteph »

Offline tjohns

  • Newbie
  • *
  • Posts: 17
  • Karma: 0
Reply #2 - 17 September 2007, 07:19:49
Your example loads the CANNON sound but plays the ENG sound??

« Last Edit: 17 September 2007, 07:19:49 by tjohns »