KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I need to stream PCM data generated at runtime. So I have a thread with a loop public void run() { while(...) { mAudioTrack.write(getPCM(), ...); } } Unfortunately this doesn't work. It seems it doesn't depend on AudioTrack buffer size. I want it to be very small to simulate sort of low latency behaviour (150 ms) so the user can dinamically change the PCM picked by getPCM() int bufferSize = 0.150 * sampleRate * channels * bitsPerSample / 8; However, I tried to increase the buffer size up to 100k with no result
Tags (comma-separated)
Save Edits
Cancel