#  ![](https://www.realm667.com/media/kunena/topic_icons/realm667/user/map.png) Ambient sounds crash due to SNDINFO missing volume

##

- **MagicWazard**
- ![MagicWazard's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar517.png) Topic Author
- Moderator
- ![Moderator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 808
-
-
-
-

   10 years 6 months ago [\#3140](#3140) by MagicWazard  *[Ambient sounds crash due to SNDINFO missing volume](https://www.realm667.com/forum/let-us-know/592-ambient-sounds-crash-due-to-sndinfo-missing-volume#3140 "Hey guys,

I notice that the majority of ambient sound packs cause a crash when loaded up. The second "$ambient" line in SNDINFO is causing an error. For example:
"Script error, "ComputerMachines.pk3:sndinfo.txt" line 7:
SC_GetFloat: Bad numeric constant "$AMBIENT"."
This appears to be due to the fact that no volume is defined for the majority of ambient sounds; if a volume level is added to each, no crash occurs. The wiki is a little unclear as to whether volume is optional or mandatory. Was the volume definition optional at one point in the past? Is it mandatory now? Does it need to be added into the submissions?")* was created by *MagicWazard*

 Hey guys,

I notice that the majority of ambient sound packs cause a crash when loaded up. The second "$ambient" line in SNDINFO is causing an error. For example:
"Script error, "ComputerMachines.pk3:sndinfo.txt" line 7:
SC_GetFloat: Bad numeric constant "$AMBIENT"."
This appears to be due to the fact that no volume is defined for the majority of ambient sounds; if a volume level is added to each, no crash occurs. The wiki is a little unclear as to whether volume is optional or mandatory. Was the volume definition optional at one point in the past? Is it mandatory now? Does it need to be added into the submissions?

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2xldC11cy1rbm93LzU5Mi1hbWJpZW50LXNvdW5kcy1jcmFzaC1kdWUtdG8tc25kaW5mby1taXNzaW5nLXZvbHVtZQ==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **ozymandias81**
- ![ozymandias81's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar933.gif)
- Pain Elemental
- ![Pain Elemental](https://www.realm667.com/media/kunena/ranks/rank_9_pain.png)

 Less More- Posts: 258
-
-
-
- [](https://ozymandias81.wixsite.com/ozy81-site)
-

   10 years 6 months ago - 10 years 6 months ago [\#3143](#3143) by ozymandias81  Replied by *ozymandias81* on topic *[Ambient sounds crash due to SNDINFO missing volume](https://www.realm667.com/forum/let-us-know/592-ambient-sounds-crash-due-to-sndinfo-missing-volume#3143 "Hey guys,

I notice that the majority of ambient sound packs cause a crash when loaded up. The second "$ambient" line in SNDINFO is causing an error. For example:
"Script error, "ComputerMachines.pk3:sndinfo.txt" line 7:
SC_GetFloat: Bad numeric constant "$AMBIENT"."
This appears to be due to the fact that no volume is defined for the majority of ambient sounds; if a volume level is added to each, no crash occurs. The wiki is a little unclear as to whether volume is optional or mandatory. Was the volume definition optional at one point in the past? Is it mandatory now? Does it need to be added into the submissions?")*

 Well those are ***[ ambient sounds](http://zdoom.org/wiki/Ambient_sound)*** and a floating point value is needed, from 0.0 to 1.0 at max. I think those needs to be updated then, so they were broken even with older ports imho. :oops:

 Last edit: 10 years 6 months ago by ozymandias81. Reason: typo

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2xldC11cy1rbm93LzU5Mi1hbWJpZW50LXNvdW5kcy1jcmFzaC1kdWUtdG8tc25kaW5mby1taXNzaW5nLXZvbHVtZQ==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **MagicWazard**
- ![MagicWazard's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar517.png) Topic Author
- Moderator
- ![Moderator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 808
-
-
-
-

   10 years 6 months ago [\#3146](#3146) by MagicWazard  Replied by *MagicWazard* on topic *[Ambient sounds crash due to SNDINFO missing volume](https://www.realm667.com/forum/let-us-know/592-ambient-sounds-crash-due-to-sndinfo-missing-volume#3146 "Hey guys,

I notice that the majority of ambient sound packs cause a crash when loaded up. The second "$ambient" line in SNDINFO is causing an error. For example:
"Script error, "ComputerMachines.pk3:sndinfo.txt" line 7:
SC_GetFloat: Bad numeric constant "$AMBIENT"."
This appears to be due to the fact that no volume is defined for the majority of ambient sounds; if a volume level is added to each, no crash occurs. The wiki is a little unclear as to whether volume is optional or mandatory. Was the volume definition optional at one point in the past? Is it mandatory now? Does it need to be added into the submissions?")*

 The wiki entry on ambient entries in [ SNDINFO](http://zdoom.org/wiki/SNDINFO#ambient) makes volume look optional (the &lt;volume&gt; value is in between angle brackets&lt;&gt;). I'm going to assume this isn't the case anymore, if it ever was. I'll put together a list of everything that is affected by this. I'll probably just update them myself while I'm at it, too.

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2xldC11cy1rbm93LzU5Mi1hbWJpZW50LXNvdW5kcy1jcmFzaC1kdWUtdG8tc25kaW5mby1taXNzaW5nLXZvbHVtZQ==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **Blue Shadow**
- ![Blue Shadow's Avatar](https://www.realm667.com/media/kunena/core/svg/person.svg)
- Administrator
- ![Administrator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 1131
-
-
-

   10 years 6 months ago [\#3147](#3147) by Blue Shadow  Replied by *Blue Shadow* on topic *[Ambient sounds crash due to SNDINFO missing volume](https://www.realm667.com/forum/let-us-know/592-ambient-sounds-crash-due-to-sndinfo-missing-volume#3147 "Hey guys,

I notice that the majority of ambient sound packs cause a crash when loaded up. The second "$ambient" line in SNDINFO is causing an error. For example:
"Script error, "ComputerMachines.pk3:sndinfo.txt" line 7:
SC_GetFloat: Bad numeric constant "$AMBIENT"."
This appears to be due to the fact that no volume is defined for the majority of ambient sounds; if a volume level is added to each, no crash occurs. The wiki is a little unclear as to whether volume is optional or mandatory. Was the volume definition optional at one point in the past? Is it mandatory now? Does it need to be added into the submissions?")*

> MagicWazard wrote: The wiki entry on ambient entries in [ SNDINFO](http://zdoom.org/wiki/SNDINFO#ambient) makes volume look optional (the &lt;volume&gt; value is in between angle brackets&lt;&gt;).

It's square brackets that usually designate a parameter being optional.

 Warning: Spoiler!

 The syntax has been fixed for the $ambient command on the wiki, by the way.

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2xldC11cy1rbm93LzU5Mi1hbWJpZW50LXNvdW5kcy1jcmFzaC1kdWUtdG8tc25kaW5mby1taXNzaW5nLXZvbHVtZQ==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

[Powered by](https://www.realm667.com/forum/credits) [Kunena Forum](https://www.kunena.org)
