Please or Register to create posts and topics.

Custom sound "Can't create mixer"-problem

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.

Mostly lurking

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

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

Mostly lurking

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.

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.

Mostly lurking

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:

This Signature is Beyond Your Range of Seeing.

Image
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 :)

Mostly lurking