Advertisement
Lorfa

Sound Testing

Aug 23rd, 2022 (edited)
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.17 KB | Gaming | 0 0
  1. line 688 void S_Base_ClearSoundBuffer( void ) {
  2. int clear;
  3.  
  4. if (!s_soundStarted)
  5. return;
  6.  
  7. // stop looping sounds
  8. Com_Memset(loopSounds, 0, MAX_GENTITIES*sizeof(loopSound_t));
  9. Com_Memset(loop_channels, 0, MAX_CHANNELS*sizeof(channel_t));
  10. numLoopChannels = 0;
  11.  
  12. S_ChannelSetup();
  13.  
  14. Com_Memset(s_rawend, '\0', sizeof (s_rawend));
  15.  
  16. if (dma.samplebits == 8)
  17. clear = 0x80;
  18. else
  19. clear = 0;
  20.  
  21. SNDDMA_BeginPainting ();
  22. if (dma.buffer)
  23. Com_Memset(dma.buffer, clear, dma.samples * dma.samplebits/8);
  24. SNDDMA_Submit ();
  25. line 712 }
  26.  
  27.  
  28.  
  29.  
  30. line 729 Cmd_AddCommand("s_ClearBuffer", S_Base_ClearSoundBuffer);
  31. line 1565 Cmd_RemoveCommand("s_ClearBuffer");
  32.  
  33.  
  34.  
  35. 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"
  36. 250-260 ms
  37.  
  38. 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"
  39. 250-260 ms
  40.  
  41. 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"
  42. 230-240 ms
  43.  
  44. 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"
  45. 230-240 ms
  46.  
  47. 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"
  48. 250-260 ms
  49.  
  50. 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"
  51. 160 ms
  52.  
  53. 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"
  54. 160 ms
  55.  
  56. 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"
  57. 130 - 140 ms
  58.  
  59. 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"
  60. 100 ms
  61.  
  62. 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"
  63. 130 ms
  64.  
  65. 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"
  66. 150-160 ms
  67.  
  68. 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"
  69. 150-160 ms
  70.  
  71. 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"
  72. 130-140 ms
  73.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement