git ssb

0+

kode54 / syntrax-c



Commit 3aa8a437591202761828240a5064926d5acf6a6b

Fixed example player. I think...

anonymous authored on 1/2/2016, 8:58:32 AM
Christopher Snowhill committed on 6/13/2018, 12:10:58 AM
Parent: efafdc395bc8009a01857f057e6746ab4c0db12a

Files changed

src/main.cchanged
src/main.cView
@@ -95,17 +95,17 @@
9595 header[i].dwBufferLength = ((44100*2*2)/50);
9696 header[i].lpData = (LPSTR)audiobuffer[i];
9797 }
9898 for ( i=0; i<BUFFNUM-1; i++ ){
99- mixChunk(player, audiobuffer[nextbuf], 512);
99+ mixChunk(player, audiobuffer[nextbuf], 44100/50);
100100 waveOutPrepareHeader( hWaveOut, &header[nextbuf], sizeof( WAVEHDR ) );
101101 waveOutWrite( hWaveOut, &header[nextbuf], sizeof( WAVEHDR ) );
102102 nextbuf = (nextbuf+1)%BUFFNUM;
103103 }
104- resumePlay();
104+
105105 for(;;)
106106 {
107- mixChunk(player, audiobuffer[nextbuf], 512);
107+ mixChunk(player, audiobuffer[nextbuf], 44100/50);
108108 waveOutPrepareHeader( hWaveOut, &header[nextbuf], sizeof( WAVEHDR ) );
109109 waveOutWrite( hWaveOut, &header[nextbuf], sizeof( WAVEHDR ) );
110110 nextbuf = (nextbuf+1)%BUFFNUM;
111111

Built with git-ssb-web