git ssb

0+

kode54 / syntrax-c



Commit a503656b63beaf40b364f00cc949ad146d517243

Okay, it does make sound now. Worst PWM generator ever.

anonymous authored on 12/31/2015, 11:39:21 AM
Christopher Snowhill committed on 6/13/2018, 12:10:58 AM
Parent: c3f9fac332da3f478e273f6331fd38974cc07666

Files changed

src/main.cchanged
src/main.cView
@@ -91,18 +91,17 @@
9191 header[i].dwBufferLength = ((44100*2*2)/50);
9292 header[i].lpData = (LPSTR)audiobuffer[i];
9393 }
9494 for ( i=0; i<BUFFNUM-1; i++ ){
95- mixChunk(audiobuffer[nextbuf], 1024);
95+ mixChunk(audiobuffer[nextbuf], 512);
9696 waveOutPrepareHeader( hWaveOut, &header[nextbuf], sizeof( WAVEHDR ) );
9797 waveOutWrite( hWaveOut, &header[nextbuf], sizeof( WAVEHDR ) );
9898 nextbuf = (nextbuf+1)%BUFFNUM;
9999 }
100-
101100 resumePlay();
102101 for(;;)
103102 {
104- mixChunk(audiobuffer[nextbuf], 1024);
103+ mixChunk(audiobuffer[nextbuf], 512);
105104 waveOutPrepareHeader( hWaveOut, &header[nextbuf], sizeof( WAVEHDR ) );
106105 waveOutWrite( hWaveOut, &header[nextbuf], sizeof( WAVEHDR ) );
107106 nextbuf = (nextbuf+1)%BUFFNUM;
108107

Built with git-ssb-web