Custom sound "Can't create mixer"-problem

Avatar
beecake
484 Posts
Posted Dec 11, 2013
Hi.
It's great to be back modding in hammer!

Now, I want to add a custom sound to my map.
I followed a tutorial and did the following:
-Recorded a .mp3 file.
-Double checked that it recorded in 44.1 khz.
-Put the sound in the correct folder.
-Placed an ambient_generic in my map and made the soundfile my sound. (Yes, it appeared).
-(In hammer)Pressed F9>Expert and added a new path with $game_exe and -addlist $path\$file.bsp $path\$file.txt $path\$file.bsp
-I've created a .cfg file in the cfg folder saying snd_updateaudiocache

Even though I've done all that, when I start my map and the sound is triggered by a logic_auto i get the error from the console:
"Can't create mixer".

Does anyone have a solution to this?
I've been searching a lot, both on this forum and on google in general, but nothing seems to work.

Advertisement
Registered users don’t see ads! Register now!
Avatar
Gemarakup
1,183 Posts
Posted Dec 11, 2013
Replied 22 minutes later
You don't need the cfg. You just need to make the command "snd_updateaudiocache". Try renaming your file without spaces.
Avatar
beecake
484 Posts
Posted Dec 11, 2013
Replied 3 minutes later

yishbarr wrote:
You don't need the cfg. You just need to make the command "snd_updateaudiocache". Try renaming your file without spaces.

No, but I thought, just to be sure.
My file has no spaces.
It's called alone.mp3

Avatar
Gemarakup
1,183 Posts
Posted Dec 11, 2013
Replied 7 minutes later
Is it looped? If it's not, enable "is not looped" flag. If you want the music to restart, you need to loop it with "wavosaur" or a program like that.
Avatar
beecake
484 Posts
Posted Dec 11, 2013
Replied 11 minutes later

yishbarr wrote:
Is it looped? If it's not, enable "is not looped" flag. If you want the music to restart, you need to loop it with "wavosaur" or a program like that.

No. It's supposed to be me talking. Therefore it's not looped.

Avatar
Tmast98
210 Posts
Posted Dec 11, 2013
Replied 8 minutes later
This is all I can recoommend:

Re-Double check if the sound is in the right settings for Portal 2

Make sure there are no odd charactors in the name or the directory it is saved in.

Snd_rebuildaudiocahce command.

Delete the ambient geneirc and remake it in hammer.

Try using it in a blank room map with a button that starts the sound, see if it's just that map for some odd reason.

If I think of anything else I'll put it here....Goodluck :thumbup:

Advertisement
Registered users don’t see ads! Register now!
Avatar
beecake
484 Posts
Posted Dec 11, 2013
Replied 54 minutes later

Tmast98 wrote:
This is all I can recoommend:

Re-Double check if the sound is in the right settings for Portal 2

Make sure there are no odd charactors in the name or the directory it is saved in.

Snd_rebuildaudiocahce command.

Delete the ambient geneirc and remake it in hammer.

Try using it in a blank room map with a button that starts the sound, see if it's just that map for some odd reason.

If I think of anything else I'll put it here....Goodluck :thumbup:

Apparently all I had to do was replace it with the exact same entity. Thank you :smile: