Custom sound "Can't create mixer"-problem
Quote from beecake on December 11, 2013, 12:35 pmHi.
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_updateaudiocacheEven 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.
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.

Quote from Gemarakup on December 11, 2013, 12:57 pmYou don't need the cfg. You just need to make the command "snd_updateaudiocache". Try renaming your file without spaces.
You don't need the cfg. You just need to make the command "snd_updateaudiocache". Try renaming your file without spaces.
Quote from beecake on December 11, 2013, 1:01 pmyishbarr 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
No, but I thought, just to be sure.
My file has no spaces.
It's called alone.mp3

Quote from Gemarakup on December 11, 2013, 1:09 pmIs 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.
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.
Quote from beecake on December 11, 2013, 1:20 pmyishbarr 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.
No. It's supposed to be me talking. Therefore it's not looped.
Quote from Tmast98 on December 11, 2013, 1:29 pmThis 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
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
Quote from beecake on December 11, 2013, 2:23 pmTmast98 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
Apparently all I had to do was replace it with the exact same entity. Thank you
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
Apparently all I had to do was replace it with the exact same entity. Thank you