Hello hl2coders,

what is the meaning of the flag - SoundFlags_t::SND_CHANGE_VOL (defined in
src/public/soundflags.h)?

The following code (client-side):

// ----------------------------------------------------------------------------
EmitSound_t params;
params.m_flVolume = flCustomVol;
params.m_nFlags |= SND_CHANGE_VOL;
//...
C_BaseEntity::EmitSound( filter, SOUND_FROM_WORLD, params );
// ----------------------------------------------------------------------------

starts sound with volume set at flCustomVol, but... it stops playing previous
sounds (resets mixer channel). It might be an engine bug.

Are modders able to set sound sample volume in a different way?

--
Grzegorz Łabuzek (SieQ)
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to