Skip to content

Commit

Permalink
random crashes when starting stopping
Browse files Browse the repository at this point in the history
Meter.cpp update meter output
  • Loading branch information
Shaji Khan committed Mar 9, 2024
1 parent 19d252f commit e245220
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/src/main/cpp/LockFreeQueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ void LockFreeQueueManager::init (int _buffer_size) {
pAudioBuffer [i] -> raw = static_cast<float *>(malloc(buffer_size * sizeof(float)));
pAudioBuffer [i] -> pos = 0 ;

for (int x = 0 ; x < buffer_size ; x ++) {
pAudioBuffer [i]->data [x] = 0.0f ;
pAudioBuffer [i]->raw [x] = 0.0f ;
}
// for (int x = 0 ; x < buffer_size ; x ++) {
// pAudioBuffer [i]->data [x] = 0.0f ;
// pAudioBuffer [i]->raw [x] = 0.0f ;
// }
}

buffer_counter = 0 ;
Expand Down

0 comments on commit e245220

Please sign in to comment.