mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
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:
parent
61682d6d5c
commit
4276e2964e
2
audio/internal/oboe/binding_android.cpp
vendored
2
audio/internal/oboe/binding_android.cpp
vendored
@ -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_};
|
||||
|
Loading…
Reference in New Issue
Block a user