File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -11,17 +11,17 @@ public void DiscardSamples() { }
1111 public int MaxVolume { get ; set ; }
1212 public void GetSamples ( short [ ] samples )
1313 {
14- for ( int i = 0 ; i < samples . Length ; )
15- {
16- short val = 0 ;
17- val = Pulse1 . RenderSample ( ) ;
18- val * = Pulse2 . RenderSample ( ) ;
19- val * = Sawtooth . RenderSample ( ) ;
20- val = ( short ) ( ( val * MaxVolume ) / short . MaxValue ) ;
14+ // for (int i = 0; i < samples.Length; )
15+ // {
16+ // short val = 0;
17+ // val = Pulse1.RenderSample();
18+ // val + = Pulse2.RenderSample();
19+ // val + = Sawtooth.RenderSample();
20+ // val = (short)((val * MaxVolume) / short.MaxValue);
2121
22- samples [ i ++ ] = val ;
23- samples [ i ++ ] = val ;
24- }
22+ // samples[i++] = val;
23+ // samples[i++] = val;
24+ // }
2525 }
2626
2727 public VRC6 ( )
You can’t perform that action at this time.
0 commit comments