audio/internal/oboe: Use a bigger buffer for safety

There were sometimes slight noises on a low-end device like Asus
Zenfone (ASUS_X013DB).

Updates #1662
This commit is contained in:
Hajime Hoshi 2021-06-07 03:52:27 +09:00
parent 61682d6d5c
commit 4276e2964e

View File

@ -163,7 +163,7 @@ oboe::DataCallbackResult Stream::onAudioReady(oboe::AudioStream *oboe_stream,
Stream::Stream() = default;
void Stream::Loop(int num_frames) {
std::vector<float> tmp(num_frames * channel_num_ * 2);
std::vector<float> tmp(num_frames * channel_num_ * 3);
for (;;) {
{
std::unique_lock<std::mutex> lock{mutex_};