-Debugging strange distortion
This commit is contained in:
parent
3c765ba4cb
commit
2ecbd47742
4 changed files with 13 additions and 5 deletions
|
@ -68,7 +68,7 @@ Jack::Jack()
|
|||
|
||||
trackOutputs.push_back( new TrackOutput(i, loopers.back() ) );
|
||||
|
||||
//buffers.audio[Buffers::TRACK_0 + i] = new float( nframes ); // (float*) malloc( sizeof(float) * nframes );
|
||||
buffers.audio[Buffers::TRACK_0 + i] = new float( nframes ); // (float*) malloc( sizeof(float) * nframes );
|
||||
}
|
||||
|
||||
timeManager.registerObserver( &metronome );
|
||||
|
@ -114,11 +114,13 @@ int Jack::process (jack_nframes_t nframes)
|
|||
|
||||
|
||||
// pre-zero output buffers
|
||||
/*
|
||||
memset( buffers.audio[Buffers::MASTER_OUTPUT] , 0, sizeof(float) * nframes );
|
||||
memset( buffers.audio[Buffers::JACK_MASTER_OUTPUT], 0, sizeof(float) * nframes );
|
||||
memset( buffers.audio[Buffers::REVERB] , 0, sizeof(float) * nframes );
|
||||
memset( buffers.audio[Buffers::SIDECHAIN] , 0, sizeof(float) * nframes );
|
||||
memset( buffers.audio[Buffers::POST_SIDECHAIN] , 0, sizeof(float) * nframes );
|
||||
*/
|
||||
|
||||
jack_midi_clear_buffer( buffers.midi[Buffers::APC_OUTPUT] );
|
||||
|
||||
|
@ -152,7 +154,7 @@ int Jack::process (jack_nframes_t nframes)
|
|||
// process each track, starting at output and working up signal path
|
||||
for(uint i = 0; i < NTRACKS; i++)
|
||||
{
|
||||
loopers.at(i)->process( nframes, &buffers );
|
||||
trackOutputs.at(i)->process( nframes, &buffers );
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -30,8 +30,9 @@ Looper::Looper(int t) :
|
|||
// init faust pitch shift variables
|
||||
fSamplingFreq = 44100;
|
||||
IOTA = 0;
|
||||
for ( int i = 0; i < MAX_BUFFER_SIZE; i++)
|
||||
tmpBuffer.push_back(0.f);
|
||||
|
||||
tmpBuffer.resize(MAX_BUFFER_SIZE);
|
||||
|
||||
for (int i=0; i<65536; i++)
|
||||
fVec0[i] = 0;
|
||||
for (int i=0; i<2; i++)
|
||||
|
|
|
@ -13,6 +13,7 @@ class TrackOutput : public AudioProcessor
|
|||
{
|
||||
public:
|
||||
TrackOutput(int t, AudioProcessor* ap) :
|
||||
AudioProcessor(),
|
||||
track(t),
|
||||
previousInChain(ap),
|
||||
dbMeter(44100)
|
||||
|
|
|
@ -29,7 +29,11 @@ namespace Worker
|
|||
ab->nonRtSetSample( buf );
|
||||
|
||||
cout << "Worker: loadSample() " << path << " size: " << infile.frames() << endl;
|
||||
return ab;
|
||||
|
||||
if ( infile.frames() > 0 )
|
||||
return ab;
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue