i have a player that records audio into a ByteArrayOutputStream. is it possible to access this bytearray every n recorded bytes or seconds and do some calculations with it? right now the problem is i have to call rc.commit() in order to do so, but this stops the entire recording process and i'd have to start again, which i dont want since then there will be gaps between the recordings.
to get a picture, here's the idea:
Code:// initialize and start recording while (!quit) { this.sleep(500); // do some stuff with the recorded data so far - in another thread // reset output bytearray so it can be filled with new data }

Reply With Quote

