Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- line 688 void S_Base_ClearSoundBuffer( void ) {
- int clear;
- if (!s_soundStarted)
- return;
- // stop looping sounds
- Com_Memset(loopSounds, 0, MAX_GENTITIES*sizeof(loopSound_t));
- Com_Memset(loop_channels, 0, MAX_CHANNELS*sizeof(channel_t));
- numLoopChannels = 0;
- S_ChannelSetup();
- Com_Memset(s_rawend, '\0', sizeof (s_rawend));
- if (dma.samplebits == 8)
- clear = 0x80;
- else
- clear = 0;
- SNDDMA_BeginPainting ();
- if (dma.buffer)
- Com_Memset(dma.buffer, clear, dma.samples * dma.samplebits/8);
- SNDDMA_Submit ();
- line 712 }
- line 729 Cmd_AddCommand("s_ClearBuffer", S_Base_ClearSoundBuffer);
- line 1565 Cmd_RemoveCommand("s_ClearBuffer");
- seta shoot2 "s_mixAhead 0.140 ; s_mixPreStep 0.05 ; s_testSound 1 ; wait 100 ; s_testSound 0; s_clearBuffer ; wait 100 ; +attack ; wait 5 ; -attack"
- 250-260 ms
- seta shoot "s_mixAhead 0.140 ; s_mixPreStep 0.05 ; s_testSound 1 ; wait 100 ; s_testSound 0; s_mixAhead 0.060 ; s_mixPreStep 0.05 ; s_clearBuffer ; wait 100 ; +attack ; wait 5 ; -attack"
- 250-260 ms
- seta shoot "s_mixAhead 0.140 ; s_mixPreStep 0.05 ; s_testSound 1 ; wait 100 ; s_testSound 0; s_mixAhead 0.060 ; s_mixPreStep 0.03 ; s_clearBuffer ; wait 100 ; +attack ; wait 5 ; -attack"
- 230-240 ms
- seta shoot "s_clearBuffer ; s_mixAhead 0.140 ; s_mixPreStep 0.05 ; s_testSound 1 ; wait 100 ; s_testSound 0; s_mixAhead 0.060 ; s_mixPreStep 0.03 ; s_clearBuffer ; wait 100 ; +attack ; wait 5 ; -attack"
- 230-240 ms
- seta shoot2 "s_clearBuffer ; s_mixAhead 0.140 ; s_mixPreStep 0.05 ; s_testSound 1 ; wait 100 ; s_testSound 0; s_clearBuffer ; wait 100 ; +attack ; wait 5 ; -attack"
- 250-260 ms
- seta shoot "s_clearBuffer ; s_mixAhead 0.140 ; s_mixPreStep 0.05 ; s_testSound 1 ; wait 50 ; s_testSound 0; s_mixAhead 0.060 ; s_mixPreStep 0.05 ; s_clearBuffer ; wait 50 ; +attack ; wait 5 ; -attack"
- 160 ms
- seta shoot2 "s_clearBuffer ; s_mixAhead 0.140 ; s_mixPreStep 0.05 ; s_testSound 1 ; wait 50 ; s_testSound 0; s_clearBuffer ; wait 50 ; +attack ; wait 5 ; -attack"
- 160 ms
- seta shoot "s_clearBuffer ; s_mixAhead 0.140 ; s_mixPreStep 0.05 ; s_testSound 1 ; wait 50 ; s_testSound 0; s_mixAhead 0.060 ; s_mixPreStep 0.03 ; s_clearBuffer ; wait 50 ; +attack ; wait 5 ; -attack"
- 130 - 140 ms
- seta shoot2 "s_clearBuffer ; s_mixAhead 0.140 ; s_mixPreStep 0.05 ; s_testSound 1 ; wait 50 ; s_testSound 0; wait 50 ; +attack ; wait 5 ; -attack"
- 100 ms
- seta shoot "s_clearBuffer ; s_mixAhead 0.140 ; s_mixPreStep 0.05 ; s_testSound 1 ; wait 50 ; s_testSound 0; s_clearBuffer ; s_mixAhead 0.060 ; s_mixPreStep 0.03 ; wait 50 ; +attack ; wait 5 ; -attack"
- 130 ms
- seta shoot2 "s_clearBuffer ; s_mixAhead 0.140 ; s_mixPreStep 0.05 ; s_testSound 1 ; wait 50 ; s_testSound 0; s_clearBuffer ; wait 50 ; +attack ; wait 5 ; -attack"
- 150-160 ms
- seta shoot "s_clearBuffer ; s_mixAhead 0.140 ; s_mixPreStep 0.05 ; s_testSound 1 ; wait 50 ; s_testSound 0; s_clearBuffer ; s_mixAhead 0.060 ; s_mixPreStep 0.05 ; wait 50 ; +attack ; wait 5 ; -attack"
- 150-160 ms
- seta shoot "s_clearBuffer ; s_mixAhead 0.140 ; s_mixPreStep 0.05 ; s_testSound 1 ; wait 50 ; s_testSound 0; s_clearBuffer ; s_mixAhead 0.060 ; s_mixPreStep 0.03 ; wait 50 ; +attack ; wait 5 ; -attack"
- 130-140 ms
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement