# Ambient sounds

**URL:** <https://discourse.cataclysmdda.org/t/ambient-sounds/9710>\
**Category:** The Lab\
**Created:** [May 31, 2015, 8:52am UTC](https://discourse.cataclysmdda.org/t/ambient-sounds/9710 "2015-05-31T08:52:35Z")\
**Posts on this page:** 20\
**Page:** 10

<div class="post-metadata">

**Author:** ![Malkeus](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/malkeus/32/12037_2.png) [@Malkeus](https://discourse.cataclysmdda.org/u/Malkeus)\
**Post date:** [December 8, 2015, 3:28am UTC](https://discourse.cataclysmdda.org/t/ambient-sounds/9710/181 "2015-12-08T03:28:36Z")

</div>

One is happy to be of service.

---

<div class="post-metadata">

**Author:** ![Chezzo](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/chezzo/32/429_2.png) [@Chezzo](https://discourse.cataclysmdda.org/u/Chezzo)\
**Post date:** [December 11, 2015, 8:45pm UTC](https://discourse.cataclysmdda.org/t/ambient-sounds/9710/182 "2015-12-11T20:45:03Z")

</div>

Here you go everybody. I changed a few sounds out to legal sounds, and added an attributions list. I intend to keep working on it.

[http://www.chezzo.com/cdda/ChestHoleSoundSet.zip](http://www.chezzo.com/cdda/ChestHoleSoundSet.zip)

This works with the new sound sets.

Edit: This is not like tilesets where you have to be able to draw. Anybody can go to [freesounds.org](http://freesounds.org) and pick new sounds. I will get this up on Github so everyone can help.

---

<div class="post-metadata">

**Author:** ![kevin.granade](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kevin.granade/32/1316_2.png) [@kevin.granade](https://discourse.cataclysmdda.org/u/kevin.granade)\
**Post date:** [December 12, 2015, 7:57am UTC](https://discourse.cataclysmdda.org/t/ambient-sounds/9710/183 "2015-12-12T07:57:14Z")

</div>

> [@Chezzo](#):
>
> Edit: This is not like tilesets where you have to be able to draw. Anybody can go to [freesounds.org](http://freesounds.org) and pick new sounds. I will get this up on Github so everyone can help.

Yes please! We might have to sort something out on the side for distribution depending on how big the soundpack is, but I _REALLY_ want one we can ship with the game.

---

<div class="post-metadata">

**Author:** ![stk2008](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@stk2008](https://discourse.cataclysmdda.org/u/stk2008)\
**Post date:** [December 12, 2015, 9:52am UTC](https://discourse.cataclysmdda.org/t/ambient-sounds/9710/184 "2015-12-12T09:52:52Z")

</div>

Chezzo the tile and sound wizard 🙂

---

<div class="post-metadata">

**Author:** ![Avaa](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/avaa/32/883_2.png) [@Avaa](https://discourse.cataclysmdda.org/u/Avaa)\
**Post date:** [December 13, 2015, 4:04pm UTC](https://discourse.cataclysmdda.org/t/ambient-sounds/9710/185 "2015-12-13T16:04:38Z")

</div>

How would I go about updating the documentation for the sound packs ?

Melee Sounds are currently based on weapon skill and weapon size, not on the weapon type.  
I also have yet to understand how to format the json so that the game randomly choses a sound for an event out off the one defined in the soundpack.  
But the sfx::play\_variant\_sound() function should be capable of that, right?

Would adding more hooks for sounds simply involve adding a call of that function somewhere, like it has been done already in some places?

---

<div class="post-metadata">

**Author:** ![Azetepii](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@Azetepii](https://discourse.cataclysmdda.org/u/Azetepii)\
**Post date:** [December 13, 2015, 6:49pm UTC](https://discourse.cataclysmdda.org/t/ambient-sounds/9710/186 "2015-12-13T18:49:52Z")

</div>

Thank you, Chezzo!

---

<div class="post-metadata">

**Author:** ![Chezzo](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/chezzo/32/429_2.png) [@Chezzo](https://discourse.cataclysmdda.org/u/Chezzo)\
**Post date:** [December 22, 2015, 9:31pm UTC](https://discourse.cataclysmdda.org/t/ambient-sounds/9710/187 "2015-12-22T21:31:21Z")

</div>

> [@Kevin Granade](#):
>
> Yes please! We might have to sort something out on the side for distribution depending on how big the soundpack is, but I _REALLY_ want one we can ship with the game.

You got it, Kevin! [Here](https://github.com/Chezzo/Cataclysm-DDA/tree/ChezzoSounds) is my fork on github where we can all work together on getting legal sounds that can ship with CDDA.

YOU can help by [installing git](https://backlogtool.com/git-guide/en/intro/intro2_1.html), cloning the ChezzoSounds branch in my repository with the command:

```auto
git clone -b ChezzoSounds https://github.com/Chezzo/Cataclysm-DDA/tree/ChezzoSounds
```

[Then](http://www.hongkiat.com/blog/55-great-websites-to-download-free-sound-effects/) [go](https://freesound.org/) [get](http://www.pacdv.com/sounds/) [sounds](http://www.grsites.com/archive/sounds/) [from](http://www.audiomicro.com/free-sound-effects) [one](http://soundbible.com/free-sound-effects-1.html) [of](http://www.findsounds.com/) [the](http://www.partnersinrhyme.com/pir/PIRsfx.shtml) [dozens](http://www.freesfx.co.uk/) [of](http://www.freesoundeffects.com/) [free](http://www.soundsnap.com/browse) [sound](http://soungle.com/) [websites](http://www.sfxsource.com/sound-effects.html). [All](https://www.audioblocks.com/) [these](https://http) [words](http://www.orangefreesounds.com/category/sound-effects/) [are](http://www.sounddogs.com/) [links](http://www.thefreesite.com/Free_Sounds/Free_WAVs/) to a different site with free sound effects. Or you can pull them out of public domain cartoons or movies or music. Or you can record them yourself!

[Audacity](http://audacityteam.org/) is an awesome program for most OSes that I use for sound editing. Make sure you export in the ogg format, as it provides the smallest file size.

Add the sound in data/sound/ChestHole in the correct directory. Edit /data/sounds/ChestHole/soundset.json to point to your new file. (I just realized NONE of my new legal files are hooked up.)

Then change the file in [data/sound/ChestHole/Attribution](https://github.com/Chezzo/Cataclysm-DDA/edit/ChezzoSounds/data/sound/ChestHole/Attribution) to give credit to whoever made the sound, like this:

`Percy Duke //Name of creator
http://www.freesound.org/people/Percy%20Duke/sounds/23448/ //Website where you got the sound
/env/open_close/23448 __percy-duke__ door-creak-short.ogg //File name in data/sounds/ChestHole `

Then submit a pull request to the ChezzoSounds branch, and I will put it in the set!

---

<div class="post-metadata">

**Author:** ![sick\_trigger](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@sick\_trigger](https://discourse.cataclysmdda.org/u/sick_trigger)\
**Post date:** [December 23, 2015, 12:43am UTC](https://discourse.cataclysmdda.org/t/ambient-sounds/9710/188 "2015-12-23T00:43:56Z")

</div>

what would need to be done to get sounds working in the console/curses build of the game?

---

<div class="post-metadata">

**Author:** ![Litppunk](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/litppunk/32/409_2.png) [@Litppunk](https://discourse.cataclysmdda.org/u/Litppunk)\
**Post date:** [December 23, 2015, 12:56am UTC](https://discourse.cataclysmdda.org/t/ambient-sounds/9710/189 "2015-12-23T00:56:19Z")

</div>

I have been playing one of the “more recent” builds (C-4036) but I have not noticed any sounds yet. Is this not mainlined? Or are there to few sounds, and I should update to get rain, footsteps, exhaustion, etc. And or find the sounds and post em for you?

---

<div class="post-metadata">

**Author:** ![kevin.granade](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kevin.granade/32/1316_2.png) [@kevin.granade](https://discourse.cataclysmdda.org/u/kevin.granade)\
**Post date:** [December 23, 2015, 2:50am UTC](https://discourse.cataclysmdda.org/t/ambient-sounds/9710/190 "2015-12-23T02:50:56Z")

</div>

We have no plans to add sounds to the console builds, does the sdl build with tiles turned off not work for you?

---

<div class="post-metadata">

**Author:** ![Litppunk](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/litppunk/32/409_2.png) [@Litppunk](https://discourse.cataclysmdda.org/u/Litppunk)\
**Post date:** [December 23, 2015, 3:39am UTC](https://discourse.cataclysmdda.org/t/ambient-sounds/9710/191 "2015-12-23T03:39:05Z")

</div>

remined me whats sdl?

Also… why have music and sound settings in mainlined options if no intention to mainline ANY sounds or music O.o

---

<div class="post-metadata">

**Author:** ![kevin.granade](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kevin.granade/32/1316_2.png) [@kevin.granade](https://discourse.cataclysmdda.org/u/kevin.granade)\
**Post date:** [December 23, 2015, 4:26pm UTC](https://discourse.cataclysmdda.org/t/ambient-sounds/9710/192 "2015-12-23T16:26:20Z")

</div>

SDL is Simple Direct Layer, a library that abstracts away hardware support (video acceleration, sound support, some networking, etc). SDL is what we use for both displaying tilesets and sound support.

Read what I said again,

> [@Kevin Granade](#):
>
> We have no plans to add sounds to the console builds

The reason for which is that in order to add sound support to the console build, we’d need to build in SDL, at which point you’d have the SDL build, so… just use the SDL build.

---

<div class="post-metadata">

**Author:** ![sick\_trigger](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@sick\_trigger](https://discourse.cataclysmdda.org/u/sick_trigger)\
**Post date:** [December 24, 2015, 2:11am UTC](https://discourse.cataclysmdda.org/t/ambient-sounds/9710/193 "2015-12-24T02:11:44Z")

</div>

what I mean is, would it be possible to compile a custom build with the SDL mixer and sounds enabled, but without tiles? Or is sound implemented in such a way that tiles are explicitly required?

I get significantly slower performance on the graphical build, whether using tiles or not

---

<div class="post-metadata">

**Author:** ![kevin.granade](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kevin.granade/32/1316_2.png) [@kevin.granade](https://discourse.cataclysmdda.org/u/kevin.granade)\
**Post date:** [December 24, 2015, 3:17am UTC](https://discourse.cataclysmdda.org/t/ambient-sounds/9710/194 "2015-12-24T03:17:08Z")

</div>

It should be possible, but it would also be very invasive to the code and probably break a bunch of things.

---

<div class="post-metadata">

**Author:** ![sick\_trigger](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@sick\_trigger](https://discourse.cataclysmdda.org/u/sick_trigger)\
**Post date:** [December 24, 2015, 3:33am UTC](https://discourse.cataclysmdda.org/t/ambient-sounds/9710/195 "2015-12-24T03:33:17Z")

</div>

I suppose I’ll get to breaking a bunch of things then! I’ll probably end up with the same performance problems even if I do manage to finagle something out, but it’s worth a fiddle I guess

Cheers

---

<div class="post-metadata">

**Author:** ![pip12345](https://avatars.discourse-cdn.com/v4/letter/p/a6a055/32.png) [@pip12345](https://discourse.cataclysmdda.org/u/pip12345)\
**Post date:** [December 24, 2015, 8:32pm UTC](https://discourse.cataclysmdda.org/t/ambient-sounds/9710/196 "2015-12-24T20:32:28Z")

</div>

To work on my own soundpack I made a little document that includes the paths of all files so I can easily get an overview of what still has to be replaced etc.  
Figured some of you could use this as well.

Here it is: [http://pastebin.com/zwWEWNzr](http://pastebin.com/zwWEWNzr)

---

<div class="post-metadata">

**Author:** ![dharthoorn](https://avatars.discourse-cdn.com/v4/letter/d/e274bd/32.png) [@dharthoorn](https://discourse.cataclysmdda.org/u/dharthoorn)\
**Post date:** [January 8, 2016, 2:18am UTC](https://discourse.cataclysmdda.org/t/ambient-sounds/9710/197 "2016-01-08T02:18:54Z")

</div>

Please please please someone help me for I swear I am going to stomp on my PC in a fit of blind rage and then I’m going to murder the f\*cking cat

Using version Windows SDL/TILES for windows,

Extracted the soundset archive and dumped the folder “Chesthole” into the data\sound, as per instructions from [this thread here](https://github.com/CleverRaven/Cataclysm-DDA/blob/master/doc/SOUNDPACKS.md)

Then in-game in the options menu there is NO “Choose Soundpack” option to turn on sounds, really there is not I have checked 20 times  
There is music volume which does exactly diddly squat since there is no output of sound to begin with

So I go forum surfing and when I manually added the 2 “default” ogg’s that I found in [here](http://smf.cataclysmdda.com/index.php?topic=6455.0) and they play just fine but not the chesthole soundpack even though it adheres to all [rules](https://github.com/CleverRaven/Cataclysm-DDA/blob/master/doc/SOUNDPACKS.md) that it should

Why is Cataclysm sound-trolling me? Hope someone can help before tear out all my hair

---

<div class="post-metadata">

**Author:** ![rremyroy](https://avatars.discourse-cdn.com/v4/letter/r/a183cd/32.png) [@rremyroy](https://discourse.cataclysmdda.org/u/rremyroy)\
**Post date:** [January 8, 2016, 5:16am UTC](https://discourse.cataclysmdda.org/t/ambient-sounds/9710/198 "2016-01-08T05:16:14Z")

</div>

[quote=“dharthoorn, post:197, topic:9710”]Then in-game in the options menu there is NO “Choose Soundpack” option to turn on sounds, really there is not I have checked 20 times  
There is music volume which does exactly diddly squat since there is no output of sound to begin with[/quote]

If you have the latest version of the game, you should see something like this in your options. This is with build 4158.

 ![](http://i.imgur.com/6J47Ag0.png)

---

<div class="post-metadata">

**Author:** ![dharthoorn](https://avatars.discourse-cdn.com/v4/letter/d/e274bd/32.png) [@dharthoorn](https://discourse.cataclysmdda.org/u/dharthoorn)\
**Post date:** [January 8, 2016, 12:59pm UTC](https://discourse.cataclysmdda.org/t/ambient-sounds/9710/199 "2016-01-08T12:59:39Z")

</div>

Thanks for the reply rremyroy

Well that’s my problem right there. I was using 0.C stable, and not an experimental build  
Upon closer examination I [saw mentioned](http://smf.cataclysmdda.com/index.php?topic=11771.0) the new method of sound implementation indeed started at build 4002… well dayum

This thread could use that build restriction up at post #1 IMHO for relative newcomers like me

Thanks again for pointing that out, I just confirmed that it works fine in the experimental builds

---

<div class="post-metadata">

**Author:** ![Malkeus](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/malkeus/32/12037_2.png) [@Malkeus](https://discourse.cataclysmdda.org/u/Malkeus)\
**Post date:** [January 8, 2016, 3:21pm UTC](https://discourse.cataclysmdda.org/t/ambient-sounds/9710/200 "2016-01-08T15:21:55Z")

</div>

[http://smf.cataclysmdda.com/index.php?topic=11833.0](http://smf.cataclysmdda.com/index.php?topic=11833.0)

Contains a link to Chesthole’s soundset. It’s tagged experimental as well.

[Previous page](https://discourse.cataclysmdda.org/t/ambient-sounds/9710.md?page=9)

[Next page](https://discourse.cataclysmdda.org/t/ambient-sounds/9710.md?page=11)
