AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   EmitSoundAny - Cross-game sound emitting (aka CS:GO compatible) (1.0.2, 2014-03-19) (https://forums.alliedmods.net/showthread.php?t=237045)

Powerlord 03-25-2014 18:29

Re: EmitSoundAny - Cross-game sound emitting (aka CS:GO compatible) (1.0.2, 2014-03-1
 
Quote:

Originally Posted by Jargon (Post 2115902)
No just the fakeprecache sound method with the * before the filename. I may have foolishly saved over the changed version I made but I'll try to replicate it.

Just to be sure, even though my sounds aren't in the music folder I tried adjusting the music volume which made no difference, and tried to change the SNDLEVEL in the include which also didn't increase it at all.

That's weird, this should be functionally identical to the method you were using.

Jargon 03-25-2014 18:43

Re: EmitSoundAny - Cross-game sound emitting (aka CS:GO compatible) (1.0.2, 2014-03-1
 
Actually after testing with the original plugin, it seems like it's only some audio files. Checking them with mediainfo shows they're all encoded identically (all mp3's, same bitrate, same sampling rate) yet play at vastly different volumes.

I'll try to replicate with the normal volume sounds using this include and compare like for like. Do you know why some sounds would be quiet though?

Edit: Sorry it's hard to tell as the plugin picks sounds at random to play at the end, but it seems there's a mixed success rate with either method. Is there a file size limit to fake precaching a sound? That's the only discriminating factor between any of my audio files. What plays consistently works, and what doesn't play consistently doesn't.

All sounds can be played in WinAMP, WMP, iTunes and VLC so there's nothing iffy about the files.

Jargon 03-26-2014 03:59

Re: EmitSoundAny - Cross-game sound emitting (aka CS:GO compatible) (1.0.2, 2014-03-1
 
Interestingly enough they play at normal levels on CS:S using the original, non-quirk, version of the plugin.

zozo1121 07-17-2014 13:16

Re: EmitSoundAny - Cross-game sound emitting (aka CS:GO compatible) (1.0.2, 2014-03-1
 
Hi!

I found this page because i searched to a problem because my cs go server has a admin sound plugin and if i want to play a sound the following problem has cought me : Failed to load sound file can't create mixer!

And i found this site for a solution...... and i just don't know whato to do this codes or what this emitting thing.... i'm lost...... so can someone help me to fix this? snd_rebuildaudiocache is not working

Bittersweet 07-17-2014 15:29

Re: EmitSoundAny - Cross-game sound emitting (aka CS:GO compatible) (1.0.2, 2014-03-1
 
Quote:

Originally Posted by zozo1121 (Post 2169340)
Hi!

I found this page because i searched to a problem because my cs go server has a admin sound plugin and if i want to play a sound the following problem has cought me : Failed to load sound file can't create mixer!

And i found this site for a solution...... and i just don't know whato to do this codes or what this emitting thing.... i'm lost...... so can someone help me to fix this? snd_rebuildaudiocache is not working

Well, this thread is actually about a tool for plugin developers: EmitSoundAny. If you acquired your plugin from someone else, then you should post something in the forum/thread where you got the plugin. If you wrote your own plugin, you should probably post the code in a new thread in the Sourcemod "Scripting" forum here at AlliedModders. If nothing else, post the problem in the Sourcemod "General" forum. This is all assuming you are running Sourcemod...if not, you are completely in the wrong area of the forums.

Bara 07-18-2014 11:16

Re: EmitSoundAny - Cross-game sound emitting (aka CS:GO compatible) (1.0.2, 2014-03-1
 
1 Attachment(s)
I've added StopSoundAny (because StopSound not work in csgo..) and works fine with csgo (other games untested).

Powerlord 07-18-2014 12:41

Re: EmitSoundAny - Cross-game sound emitting (aka CS:GO compatible) (1.0.2, 2014-03-1
 
Quote:

Originally Posted by Bara (Post 2169877)
I've added StopSoundAny (because StopSound not work in csgo..) and works fine with csgo (other games untested).

I would have thought StopSound would have the same problem as EmitSound in that you'd need to put a * in front of the sound name in order to stop it.

For that matter, wouldn't playing the same sound again on a different channel with 0.0 volume not actually stop it?

Bara 07-18-2014 12:51

Re: EmitSoundAny - Cross-game sound emitting (aka CS:GO compatible) (1.0.2, 2014-03-1
 
Quote:

Originally Posted by Powerlord (Post 2169936)
I would have thought StopSound would have the same problem as EmitSound in that you'd need to put a * in front of the sound name in order to stop it.

Oh right, you're right. I've updated it. :oops:

Powerlord 07-18-2014 12:54

Re: EmitSoundAny - Cross-game sound emitting (aka CS:GO compatible) (1.0.2, 2014-03-1
 
1 Attachment(s)
Quote:

Originally Posted by Bara (Post 2169944)
Oh right, you're right. I've updated it. :oops:

Except now it assumes the sound is playing on channel 1 (which is )

Besides, I've wrote a version after I saw your first version.

Having said that, there is one problem with it... you should only use StopSoundAny on sounds you've emitted with EmitSoundAny as sounds emitted by the game engine won't necessarily start with * as they're not subject to the CS:GO Quirks restrictions.

Pohearts 10-01-2014 09:29

Re: EmitSoundAny - Cross-game sound emitting (aka CS:GO compatible) (1.0.2, 2014-03-1
 
Somehow the compiler crashed when i compile it :/
possibly i'm using SM 1.7..
i will have to go for traditional way to EmitSound for csgo then ..


All times are GMT -4. The time now is 18:19.

Powered by vBulletin®
Copyright ©2000 - 2021, vBulletin Solutions, Inc.