diff --git a/RecorderPlugin.c b/RecorderPlugin.c index 5ae41fc..ddd7555 100644 --- a/RecorderPlugin.c +++ b/RecorderPlugin.c @@ -140,22 +140,16 @@ static void PlaybackEvent(void * v, int samples, float * samps, int channel_ct) else force_white = 0; - if( rp->TimeSinceStart > rp->BypassLength ) + int r = fwrite( samps, channel_ct * sizeof( float ), samples, rp->fRec ); + if( r != samples ) { - rp->DunBoop = 1; - } - else - { - int r = fwrite( samps, channel_ct * sizeof( float ), samples, rp->fRec ); - if( r != samples ) - { - StopRecording( rp ); - } + StopRecording( rp ); } } else { force_white = 0; + rp->DunBoop = 1; } } diff --git a/dmx.conf b/dmx.conf index eee1895..698f74c 100644 --- a/dmx.conf +++ b/dmx.conf @@ -1,5 +1,12 @@ outdrivers = DisplayDMX, OutputLinear, DisplayArray, RecorderPlugin + +play = 1 +buffer = 512 +player_filename = inchristalone.raw +recorder_filename = recfile.raw +recorder_bypass = 44100 + byte_offset = 32 ledoutamp = 1.0 leds = 4 diff --git a/embedded8266/image.elf b/embedded8266/image.elf old mode 100755 new mode 100644 diff --git a/linearpie.conf b/linearpie.conf old mode 100755 new mode 100644