Home   Help Search Login Register  

Author Topic: Cannot play sound  (Read 5207 times)

0 Members and 1 Guest are viewing this topic.

Offline DMarkwick

  • Contributing Member
  • **
  • I'm a llama!
Cannot play sound
« on: 01 Sep 2009, 17:32:03 »
OK, I've done the search (here & at BIS), and I've seen threads identical to this, but as far as I can tell I'm following what everyone else has done but - no sound. I get a "Sound JTDBirds1Sound not found" error.

cfg:
Code: [Select]
class CfgSounds
{
 sounds[] = {JTDBirds1Sound};
  class JTDBirds1Sound
  {
   name = "JTDBirds1Sound";
   sound[] = {"\JTD_FireAndSmoke\Sounds\Birds1.ogg", 10, 1};
   titles[] = {};
  };
};

implementation:
Code: [Select]
_BirdsFlock say ["JTDBirds1Sound",10];
Birds1.ogg in indeed at the location suggested in the cfg. The sound file itself is a file that has previously worked in ArmA1.

Offline JamesF1

  • Editors Depot Staff
  • *****
    • JamesBurgess.co.uk
Re: Cannot play sound
« Reply #1 on: 01 Sep 2009, 18:32:16 »
Changing the titles to the following fixed a similar error for me back in A1... not sure if it'll help, though:
Code: [Select]
titles[] = {0, ""};

Offline DMarkwick

  • Contributing Member
  • **
  • I'm a llama!
Re: Cannot play sound
« Reply #2 on: 01 Sep 2009, 20:22:21 »
That didn't work either. But thanks for the try :)

Offline DeanosBeano

  • Addons Depot Staff
  • *****
  • SirDeanosbeano bstowed on me by sui ;)
    • Fraghaus
Re: Cannot play sound
« Reply #3 on: 01 Sep 2009, 20:27:28 »
 I am willing to stay all night to get this working simply because of the name of the sound and what i hope it means ;).

 heres my first attempt. a sound i know works and replace names with yours.

 
Code: [Select]
class CfgSounds
{
 class JTDBirds1Sound
 {
  sound[] = {"\JTD_FireAndSmoke\Sounds\Birds1.ogg",10,1};
  name = "JTDBirds1Sound";
  titles[] = {};
 };
};
Of course other little tips are , make sure sound cfg is after the close of cfgvehicles and not part of it  and also make sure , you havent placed a cfg in an old folder and the pboPrefix is wrong ( never know if its only a config , i have done it b4 lol)





« Last Edit: 01 Sep 2009, 20:31:06 by DeanosBeano »
I love ofp

Offline DMarkwick

  • Contributing Member
  • **
  • I'm a llama!
Re: Cannot play sound
« Reply #4 on: 01 Sep 2009, 20:54:56 »
It means exactly what you think it means :) it's in, it's working (sounds notwithstanding) and it's quite cool ;)

That example DB looks like how I already have it. I've tried various slight variations (example in JamesF1's post) but no go. I'm starting to wonder - does the fact that Birds1.ogg works in ArmA1 mean it will work in ArmA2? And, would that even produce the "not found" error?

Offline DeanosBeano

  • Addons Depot Staff
  • *****
  • SirDeanosbeano bstowed on me by sui ;)
    • Fraghaus
Re: Cannot play sound
« Reply #5 on: 01 Sep 2009, 22:46:56 »
 hmm i would try a

 class CfgSounds
{

 access =1;

 if 1 is same as scope then it should be ok try public if not or similar.

 Also i see what ya mean ,does any say sound need to be a WSS and be in mono at 16 bit or something and if not will it then produce the error your getting ( or similar).

 hmm aparently not unless its the way the sound is saved  heres bis example .

 
Code: [Select]
class CfgSounds
  {
    access = 1;
    class BIS_HALO_Flapping
    {
      sound[] = {
        "\ca\air2\halo\data\flapping.ogg",
        0.8,
        1
      };
      titles[] = {
      };
    };
};
« Last Edit: 01 Sep 2009, 22:54:39 by DeanosBeano »
I love ofp

Offline DMarkwick

  • Contributing Member
  • **
  • I'm a llama!
Re: Cannot play sound
« Reply #6 on: 01 Sep 2009, 23:19:32 »
Didn't work either :(

Offline DeanosBeano

  • Addons Depot Staff
  • *****
  • SirDeanosbeano bstowed on me by sui ;)
    • Fraghaus
Re: Cannot play sound
« Reply #7 on: 02 Sep 2009, 00:24:47 »

 hmm another annoying little thing that costs hours of dev time lol.
 Out of interest have you tried Playsound "JTDBirds1Sound"
 if it plays it  iwonder if its the format its saved in it doesnt like, i recall having this problem before.
I love ofp

Offline DMarkwick

  • Contributing Member
  • **
  • I'm a llama!
Re: Cannot play sound
« Reply #8 on: 02 Sep 2009, 03:38:24 »
Playsound doesn't work either, same error.

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: Cannot play sound
« Reply #9 on: 02 Sep 2009, 07:54:43 »
Remove the line
Code: [Select]
sounds[] = {JTDBirds1Sound};That line causes the error if the config is otherwise fine..
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline DeanosBeano

  • Addons Depot Staff
  • *****
  • SirDeanosbeano bstowed on me by sui ;)
    • Fraghaus
Re: Cannot play sound
« Reply #10 on: 02 Sep 2009, 18:37:48 »
 well i hope he had removed that line after my first advice as you can see in my post and subsequent one .
 If he has been reaplying that line then i will personally be bollocking him ;).

 
I love ofp

Offline DMarkwick

  • Contributing Member
  • **
  • I'm a llama!
Re: Cannot play sound
« Reply #11 on: 02 Sep 2009, 19:41:05 »
*groan*

OK, I'm ready for my bollocking :)

I had that line in, but empty, as in
Code: [Select]
sounds[] = {};which I thought would amount to the same thing. Took that line out completely and now I get sounds :)

Cheers for your help everyone, even if I was too dumb to notice it :D

Offline DeanosBeano

  • Addons Depot Staff
  • *****
  • SirDeanosbeano bstowed on me by sui ;)
    • Fraghaus
Re: Cannot play sound
« Reply #12 on: 02 Sep 2009, 19:48:50 »

 Lol no problem ,the main thing is its fixed. i have seen countless threads where the answer is in there but never seen , thank god for simple posts like  -H that point out the problem rather than a none explained fix i guess.

 I believe you can leave that line in on a description.ext but not in a config. but dont quote me on that , afterall this engines Been a bit heath robisnon since .096 or whatever that demo disc was lol.

I love ofp

Offline DMarkwick

  • Contributing Member
  • **
  • I'm a llama!
Re: Cannot play sound
« Reply #13 on: 02 Sep 2009, 20:29:17 »
Yeah cheers :D

Deano you can check it out by downloading the recently re-uploaded JTD_FireAndSmoke addon:
http://dmarkwick64.googlepages.com/JTD_FireAndSmoke.rar

'Taint multiplayer yet (the birds part that is) but hopefully pretty soon it will be.

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: Cannot play sound
« Reply #14 on: 03 Sep 2009, 08:43:36 »
Quote
I believe you can leave that line in on a description.ext but not in a config
I too think this is the case.

Never knew that the game could be so anal about some unnecessary token though, to my expereince elsewhere it just skips them but this time it apparently expects a class to follow instead of something else.. :scratch:
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.