Home   Help Search Login Register  

Author Topic: [SOLVED]Cannot get sound to work  (Read 1159 times)

0 Members and 1 Guest are viewing this topic.

Offline Rytuklis

  • Members
  • *
[SOLVED]Cannot get sound to work
« on: 28 Aug 2012, 10:08:33 »
I cannot get my sound to play with using playsound command

This is my description.ext

Code: [Select]
class CfgSounds
     {
     sounds[] = { intro.OGG.ogg };

     class intro
     {
          name = "intro";
          sound[] = {"intro.OGG.ogg", db-40, 1.0};
          titles[] =
          {
               5, $STRM_Voice
          };
     };

This is my cutscene code:

Code: [Select]
; *****************************************************
; ** Operation Flashpoint Script File
; *****************************************************

_camera = "camera" camCreate [9525.40,1527.74,24.91]
_camera cameraEffect ["internal","back"]

_camera camSetTarget [-84047.66,-29281.13,17220.34]
_camera camSetPos [9525.40,1527.74,24.91]
_camera camSetFOV 0.700
_camera camCommit 5
titleCut ["Rytuklis presents...","PLAIN"]
@camCommitted _camera

;=== 10:46:14
_camera camSetTarget [-65411.28,-63786.66,-10683.89]
_camera camSetPos [9522.87,1559.94,1.09]
_camera camSetFOV 0.700
_camera camCommit 6
playSound "intro.OGG"
@camCommitted _camera

Yet, it always says that "Intro.ogg is not found"

i tried changing the playSound into "intro, intro.OGG.ogg, intro.ogg" nothing helps. Please help me ASAP

EDIT: Solved! Used this code:

Code: [Select]
//////////////////////////////////////////////////////////////////////////
// Operation Flashpoint Description File
// Generated by Chris' OFP Script Editor
// Version 3.1.0000
//////////////////////////////////////////////////////////////////////////

class CfgSounds
{
// List of sounds (.ogg files without the .ogg extension)
sounds[] = {intro};

// Class definition needed for each sound
class intro
{
// Name to display in mission editor
name = "intro";
// Sound path, volume, pitch
sound[] = {\sound\intro.ogg, db + 0, 1.0};
// Sound title text (set to no text)
titles[] = {0, ""};
};
};


« Last Edit: 28 Aug 2012, 10:12:24 by Rytuklis »