# 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:** 4

<div class="post-metadata">

**Author:** ![vulkans](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/vulkans/32/46_2.png) [@vulkans](https://discourse.cataclysmdda.org/u/vulkans)\
**Post date:** [June 25, 2015, 8:45am UTC](https://discourse.cataclysmdda.org/t/ambient-sounds/9710/61 "2015-06-25T08:45:41Z")

</div>

AdonaiJr: Looks like you might be missing SDL\_mixer in your linker dependencies, go to Project/Build Options, select Release/SDL on the left panel and click the linker settings tab, make sure SDL\_mixer2.lib is listed in link libraries. You can find it here if you don’t have it: [https://www.libsdl.org/projects/SDL\_mixer/release/SDL2\_mixer-devel-2.0.0-VC.zip](https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-devel-2.0.0-VC.zip)

Also check in compiler settings/#defines and make sure that SDL\_SOUND appears there, if not, add it.

Another little demo, this time for some vehicle stuff I’ve done over the past few days: [https://youtu.be/dq\_H2BlsE9A](https://youtu.be/dq_H2BlsE9A)

---

<div class="post-metadata">

**Author:** ![CIB](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/cib/32/903_2.png) [@CIB](https://discourse.cataclysmdda.org/u/CIB)\
**Post date:** [June 25, 2015, 9:13am UTC](https://discourse.cataclysmdda.org/t/ambient-sounds/9710/62 "2015-06-25T09:13:51Z")

</div>

> [@vulkans](#):
>
> Another little demo, this time for some vehicle stuff I’ve done over the past few days: [https://youtu.be/dq\_H2BlsE9A](https://youtu.be/dq_H2BlsE9A)

Love it! \<3 Cataclysm: Grant Theft Auto! Great work, as always. 🙂

---

<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:** [June 26, 2015, 2:41pm UTC](https://discourse.cataclysmdda.org/t/ambient-sounds/9710/63 "2015-06-26T14:41:31Z")

</div>

In car radios a la GTA!?!

You my friend, are amazing.

---

<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:** [June 26, 2015, 4:49pm UTC](https://discourse.cataclysmdda.org/t/ambient-sounds/9710/64 "2015-06-26T16:49:34Z")

</div>

Wow

The way the sound fades out as you get further away then gets loud again when you go back I love this 😮

---

<div class="post-metadata">

**Author:** ![Fniff](https://avatars.discourse-cdn.com/v4/letter/f/ecd19e/32.png) [@Fniff](https://discourse.cataclysmdda.org/u/Fniff)\
**Post date:** [June 27, 2015, 12:47am UTC](https://discourse.cataclysmdda.org/t/ambient-sounds/9710/65 "2015-06-27T00:47:01Z")

</div>

Man, that video is extremely evocative. Just driving through the wasteland, old music playing on the stereo, going past towns full of zeds. The moments where the you’re almost cornered by a brute and when the bandits throw bombs and shoot at you are actually genuinely tense.  
This is the coolest thing.

---

<div class="post-metadata">

**Author:** ![SilverDragon](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@SilverDragon](https://discourse.cataclysmdda.org/u/SilverDragon)\
**Post date:** [June 27, 2015, 4:46am UTC](https://discourse.cataclysmdda.org/t/ambient-sounds/9710/66 "2015-06-27T04:46:27Z")

</div>

Spent around 3-4 hours today trying to get this darn thing compiled and failed horribly at it XD i dont suppose someone that succeeded could zip the file and toss it on dropbox or something

---

<div class="post-metadata">

**Author:** ![DanmakuDan](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/danmakudan/32/5057_2.png) [@DanmakuDan](https://discourse.cataclysmdda.org/u/DanmakuDan)\
**Post date:** [June 28, 2015, 1:37am UTC](https://discourse.cataclysmdda.org/t/ambient-sounds/9710/67 "2015-06-28T01:37:36Z")

</div>

I think based on the last error you had compiling, you need to use the codeblocks-13.12mingw-setup-TDM-GCC-481.exe download from the Code::Blocks site, since the default download containing GCC 4.7.1 can’t build the current code without errors.

---

<div class="post-metadata">

**Author:** ![Zakkor](https://avatars.discourse-cdn.com/v4/letter/z/57b2e6/32.png) [@Zakkor](https://discourse.cataclysmdda.org/u/Zakkor)\
**Post date:** [June 29, 2015, 11:50pm UTC](https://discourse.cataclysmdda.org/t/ambient-sounds/9710/68 "2015-06-29T23:50:57Z")

</div>

Really nice job you’ve done with this so far!  
I just wanted to ask, do you need help with anything? Programming-related or perhaps searching for sounds?

---

<div class="post-metadata">

**Author:** ![SilverDragon](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@SilverDragon](https://discourse.cataclysmdda.org/u/SilverDragon)\
**Post date:** [June 30, 2015, 3:23am UTC](https://discourse.cataclysmdda.org/t/ambient-sounds/9710/69 "2015-06-30T03:23:19Z")

</div>

> [@DanmakuDan](#):
>
> I think based on the last error you had compiling, you need to use the codeblocks-13.12mingw-setup-TDM-GCC-481.exe download from the Code::Blocks site, since the default download containing GCC 4.7.1 can’t build the current code without errors.

I actually was using that one, problem is when i go into the list of compilers under project/build options there is no mingw compiler, though theres about 10-20 others, with no idea which one im actually suppose to use in compiling it.  
Thats likely my main issue, still i look forward to the day this gets integrated into the core game vulkans is doing a damn fine job, hats off to you mate.

---

<div class="post-metadata">

**Author:** ![SilverDragon](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@SilverDragon](https://discourse.cataclysmdda.org/u/SilverDragon)\
**Post date:** [July 15, 2015, 7:46pm UTC](https://discourse.cataclysmdda.org/t/ambient-sounds/9710/70 "2015-07-15T19:46:19Z")

</div>

Its been quite awile since we have heard anything on this project, i was going to wait till it had been a month since last dev post to bump this but if worse comes to worse he is forced to put this aside for RL or whatever other reason, i dont suppose anyone else out there has the skills/interest to continue this fine work, its something i personally think CDDA dearly needs and id hate to see it get abandoned.

---

<div class="post-metadata">

**Author:** ![StopSignal](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/stopsignal/32/1923_2.png) [@StopSignal](https://discourse.cataclysmdda.org/u/StopSignal)\
**Post date:** [July 15, 2015, 10:36pm UTC](https://discourse.cataclysmdda.org/t/ambient-sounds/9710/71 "2015-07-15T22:36:04Z")

</div>

Damn, this is indeed problematic for my sound purposes.  
Anyone knows what happened to him? I hope he is alright

---

<div class="post-metadata">

**Author:** ![WIndburns](https://avatars.discourse-cdn.com/v4/letter/w/c77e96/32.png) [@WIndburns](https://discourse.cataclysmdda.org/u/WIndburns)\
**Post date:** [July 16, 2015, 8:36am UTC](https://discourse.cataclysmdda.org/t/ambient-sounds/9710/72 "2015-07-16T08:36:21Z")

</div>

I’m guessing the sound setting in options in the latest experimental build isn’t related to this?

---

<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:** [July 16, 2015, 3:54pm UTC](https://discourse.cataclysmdda.org/t/ambient-sounds/9710/73 "2015-07-16T15:54:37Z")

</div>

Only vaguely, that is a proof of concept that plays sound on demand and just has a few places where it tests it, this is a big set of infrastructure and content building on top of that.

---

<div class="post-metadata">

**Author:** ![SilverDragon](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@SilverDragon](https://discourse.cataclysmdda.org/u/SilverDragon)\
**Post date:** [July 20, 2015, 12:43am UTC](https://discourse.cataclysmdda.org/t/ambient-sounds/9710/74 "2015-07-20T00:43:32Z")

</div>

Aye it seemed like he was having issues with the current built in sound system and had to use some third party program to handle multiple audio samples playing/stopping at the same time, makes me wonder how hard this project would be for someone to continue, really wish i had the skills for it, sadly i even failed at something as simple as compiling this version of the game, so ya, i suck XD

---

<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:** [July 20, 2015, 5:48pm UTC](https://discourse.cataclysmdda.org/t/ambient-sounds/9710/75 "2015-07-20T17:48:42Z")

</div>

Are you compiling with linux, SilverDragon? I was having a hard time finding what I needed to apt-get to compile with SOUND=1, what with the new vorbis stuff.

But I got it! You’ve gotta:

```auto

```

And you can’t just cut and paste from Vulkans’ repo, either. It gives a ton of errors. You have to just cut and paste everything in the sounds folder.

Somebody correct me if I’m wrong, but if you’re using Windows, can’t you just copy the sounds folder in Vulkans’ repo to your sounds folder, with the latest experimental?

---

<div class="post-metadata">

**Author:** ![Reaper310](https://avatars.discourse-cdn.com/v4/letter/r/f4b2a3/32.png) [@Reaper310](https://discourse.cataclysmdda.org/u/Reaper310)\
**Post date:** [July 21, 2015, 4:08am UTC](https://discourse.cataclysmdda.org/t/ambient-sounds/9710/76 "2015-07-21T04:08:07Z")

</div>

I got sounds to work with what you said for windows Chezzo, I only replaced my “Sound” folder with vulkans sound folder on [https://github.com/vulkans22/CataSounds/tree/master/data](https://github.com/vulkans22/CataSounds/tree/master/data)

but to keep it from crashing I had to change the file extension of “soundset.old” to “soundset.json”  
and had to fix “menu\_move” sound effect because it had the wrong path.

` {
 "id" : "menu_move",
 "volume" : 100,
 "file" : "menu/menu_selection_click1.ogg"
 },`

changed to

` {
 "id" : "menu_move",
 "volume" : 100,
 "file" : "menu/nenadsimic_menu_selection_click.wav"
 },`

this stopped it from crashing on startup and allowed me to play the game with some sounds ,but the file on github didn’t include all the sound effects that vulkan had in the YouTube video. I don’t think he has released the new sounds on GitHub yet but I would love to know when we will get them.

On a separate note I’ve tried to compile the mod using CB but failed due to the same error as AdonaiJr and idk how to fix that if anyone has any suggestions on what the problem is I’m pretty sure that a lot of us are stuck on this part when compiling.

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

---

<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:** [July 21, 2015, 5:02am UTC](https://discourse.cataclysmdda.org/t/ambient-sounds/9710/77 "2015-07-21T05:02:49Z")

</div>

I got it compiled in Linux!

What I did was I edited src/sounds.cpp like this:

`case WEATHER_RAINY:
            play_ambient_variant_sound( "environment", "WEATHER_RAINY", get_heard_volume( g->u.pos() ), 8,
                                        1000 );
            break;
	case WEATHER_NULL:
	case WEATHER_THUNDER:
        case WEATHER_CLEAR:
	case WEATHER_SUNNY:
	case WEATHER_CLOUDY:
	case WEATHER_ACID_DRIZZLE:
	case WEATHER_ACID_RAIN:
	case NUM_WEATHER_TYPES:
        case WEATHER_LIGHTNING:
            play_ambient_variant_sound( "environment", "WEATHER_THUNDER", get_heard_volume( g->u.pos() ), 7,
                                        1000 );`

Which I think makes the thunder noise when it’s clear and sunny and such. You can put it above whatever one you want to.

And then I saved this file to /src:

ftp://sourceware.org/pub/pthreads-win32/dll-latest/include/pthread.h

And it works so far! No car noises though, which is a bummer. But weather, danger, and multiple sounds for things.

---

<div class="post-metadata">

**Author:** ![Reaper310](https://avatars.discourse-cdn.com/v4/letter/r/f4b2a3/32.png) [@Reaper310](https://discourse.cataclysmdda.org/u/Reaper310)\
**Post date:** [July 21, 2015, 11:27am UTC](https://discourse.cataclysmdda.org/t/ambient-sounds/9710/78 "2015-07-21T11:27:50Z")

</div>

So I’ve fixed my previous error with compiling with the file you gave me but now it seems like the source items.cpp file is messed up. even trying to compile a clean build I run into multiple errors within the items file. I’m going to have to wait till they finish reorganizing the experimental build before I can rebuild it.

I do hope we get an update from the author soon I’d hate to see this project left unfinished, the work that that vulkan put into this is amazing I hope he keeps it up.

---

<div class="post-metadata">

**Author:** ![SilverDragon](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@SilverDragon](https://discourse.cataclysmdda.org/u/SilverDragon)\
**Post date:** [July 21, 2015, 7:48pm UTC](https://discourse.cataclysmdda.org/t/ambient-sounds/9710/79 "2015-07-21T19:48:28Z")

</div>

Na i was using codeblocks and windows, i followed a guide for it but still didn’t manage it, maby due to it being a bit out of date and missing detail in places 😛

---

<div class="post-metadata">

**Author:** ![user512](https://avatars.discourse-cdn.com/v4/letter/u/6bbea6/32.png) [@user512](https://discourse.cataclysmdda.org/u/user512)\
**Post date:** [July 25, 2015, 12:57am UTC](https://discourse.cataclysmdda.org/t/ambient-sounds/9710/80 "2015-07-25T00:57:16Z")

</div>

I only got this game today, and after playing for 15 minutes I found this thread.

This is so incredible that:

A) I registered just to say how amazing it is  
B) I stopped playing - this sound is so good I can’t imagine continuing until it’s done or someone else does it

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

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