aaudio: fix routing for FAST track

Pass correct attribute flags instead of INPUT or OUTPUT flags.

Bug: 72880176
Test: write_sine_callback -pl -c2 -m1
Change-Id: Ia6b0b01fcc31e649e90568c9baa493f9c4927a3d
gugelfrei
Phil Burk 7 years ago
parent 1bfabb36f5
commit ed816010d3

@ -113,7 +113,7 @@ aaudio_result_t AudioStreamRecord::open(const AudioStreamBuilder& builder)
.content_type = contentType,
.usage = AUDIO_USAGE_UNKNOWN, // only used for output
.source = source,
.flags = flags, // If attributes are set then the other flags parameter is ignored.
.flags = AUDIO_FLAG_NONE, // Different than the AUDIO_INPUT_FLAGS
.tags = ""
};

@ -22,6 +22,7 @@
#include <media/AudioTrack.h>
#include <aaudio/AAudio.h>
#include <system/audio.h>
#include "utility/AudioClock.h"
#include "legacy/AudioStreamLegacy.h"
#include "legacy/AudioStreamTrack.h"
@ -130,7 +131,7 @@ aaudio_result_t AudioStreamTrack::open(const AudioStreamBuilder& builder)
.content_type = contentType,
.usage = usage,
.source = AUDIO_SOURCE_DEFAULT, // only used for recording
.flags = flags, // If attributes are set then the other flags parameter is ignored.
.flags = AUDIO_FLAG_NONE, // Different than the AUDIO_OUTPUT_FLAGS
.tags = ""
};

Loading…
Cancel
Save