Home   Help Search Login Register  

Author Topic: Stupid playsound  (Read 457 times)

0 Members and 1 Guest are viewing this topic.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Stupid playsound
« on: 04 Dec 2003, 14:56:34 »
I can't get playsound to work.   What am I doing wrong?

This works:

loon1 say "civvy1"

The sound file plays and the text from the stringtable.csv appears on the screen.   All fine.

But because the camera moves away from the speaker, I can't use say for some lines - you can't hear it.    The problem is that when I have:-

playSound "civvy1"

no sound is played.     However, the text still appears on the screen.  (Should that happen with playsound?  I've never done any sound stuff before.)   I've checked that sound volume is 1 with a debug hint.   No error messages or anything.    What am I missing?   Is there a better way of doing this voiceover thing?

Many thanks.
Plenty of reviewed ArmA missions for you to play

deaddog

  • Guest
Re:Stupid playsound
« Reply #1 on: 04 Dec 2003, 16:19:31 »
Does you desc.ext look similar to this:

class CfgSounds
{
sounds[] = {};


class notify
   {
   name = "dgk_notify";
   sound[] = {"notify.ogg", db+10, 1.0};
   titles[]  = {0, ""};
   };
};


and you play it like this:

playsound "dgk_notify"

:)


Offline Blanco

  • Former Staff
  • ****
Re:Stupid playsound
« Reply #2 on: 04 Dec 2003, 17:11:25 »
Be sure is the ogg is mono.

Search or search or search before you ask.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Stupid playsound
« Reply #3 on: 04 Dec 2003, 17:21:57 »
Bingo!    Minor discrepancies in the description.ext as you suspected, many thanks for that.    No, I couldn't possibly start to work out why it worked for the say command and not for the playsound command ....

Many thanks chaps.  I'll leave this thread open until I'm sure I've got the whole thing working as it should.
« Last Edit: 04 Dec 2003, 17:29:33 by macguba »
Plenty of reviewed ArmA missions for you to play