You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when I finish phone call, can't restart recording.
when incoming call
the app will receive message "AUDIOFOCUS_LOSS_TRANSIENT" , then turn off recording. It work well.
when pick up the call, then hang up, the app will receive message "AUDIOFOCUS_GAIN" , then I want to restart recording, but will be failed. Here is the error message:
E/IAudioFlinger: createRecord returned error -1
E/AudioRecord: createRecord_l(0): AudioFlinger could not create record track, status: -1
But the permission "android.permission.RECORD_AUDIO" had been allowed.
Logcat as bellow:
E/com.zipcom.pyAiHear.Work2Activity: AUDIOFOCUS_GAIN
need start analysis
after click bAnalysis_Active:true
I/OboeAudio: openStream() OUTPUT -------- OboeVersion1.6.0 --------
I/AAudio: AAudioStreamBuilder_openStream() called ----------------------------------------
I/AudioStreamBuilder: rate = 0, channels = 1, format = 5, sharing = EX, dir = OUTPUT
device = 0, sessionId = 0, perfMode = 12, callback: ON with frames = 0
usage = 1, contentType = 2, inputPreset = 6, allowedCapturePolicy = 0
I/AudioStreamBuilder: privacy sensitive = false
D/AudioStreamBuilder: build() EXCLUSIVE sharing mode not supported. Use SHARED.
D/AudioStreamBuilder: build() MMAP not used because sessionId specified.
D/zipcom.pyAiHea: PlayerBase::PlayerBase()
D/AudioStreamTrack: open(), request notificationFrames = -8, frameCount = 0
I/AudioTrack: createTrack_l(1195): AUDIO_OUTPUT_FLAG_FAST successful; frameCount 0 -> 1536
D/AudioTrack: setVolume(1.000000, 1.000000) pid : 27294
W/AudioStreamTrack: open() sampleRate changed from 0 to 48000
D/AAudioStream: setState(s#9) from 0 to 2
I/AAudio: AAudioStreamBuilder_openStream() returns 0 = AAUDIO_OK for s#9 ----------------
D/OboeAudio: AudioStreamAAudio.open() format=2, sampleRate=48000, capacity = 1536
AudioStreamAAudio.open: AAudioStream_Open() returned AAUDIO_OK
I/OboeAudio: openStream() INPUT -------- OboeVersion1.6.0 --------
I/AAudio: AAudioStreamBuilder_openStream() called ----------------------------------------
I/AudioStreamBuilder: rate = 48000, channels = 1, format = 5, sharing = EX, dir = INPUT
device = 0, sessionId = -1, perfMode = 12, callback: OFF with frames = 0
usage = 1, contentType = 2, inputPreset = 6, allowedCapturePolicy = 0
privacy sensitive = false
D/AudioStreamBuilder: build() EXCLUSIVE sharing mode not supported. Use SHARED.
D/zipcom.pyAiHea: PlayerBase::PlayerBase() E/IAudioFlinger: createRecord returned error -1
E/AudioRecord: createRecord_l(0): AudioFlinger could not create record track, status: -1
W/AudioRecord: removeAudioDeviceCallback(0): removing different callback!
D/AAudioStream: setState(s#10) from 0 to 11
D/AAudioStream: setState(s#10) from 11 to 12 E/AudioStreamRecord: open(), initCheck() returned -1
D/zipcom.pyAiHea: PlayerBase::~PlayerBase() I/AAudio: AAudioStreamBuilder_openStream() returns -896 = AAUDIO_ERROR_INTERNAL for s#0 ----------------
W/OboeAudio: AudioStreamAAudio.open() may have failed due to lack of audio recording permission.
D/OboeAudio: AudioStreamAAudio.open: AAudioStream_Open() returned AAUDIO_ERROR_INTERNAL
D/AAudio: AAudioStream_requestStop(s#9) called
D/AAudioStream: setState(s#9) from 2 to 10
D/zipcom.pyAiHea: PlayerBase::stop() from IPlayer
D/AAudio: AAudioStream_requestStop(s#9) called
D/zipcom.pyAiHea: PlayerBase::stop() from IPlayer
D/AAudio: AAudioStream_close(s#9) called ---------------
D/AAudioStream: setState(s#9) from 10 to 11
D/AAudioStream: setState(s#9) from 11 to 12
D/AAudio: AAudioStream_close(s#9) returned 0 ---------
W/octopus: Successfully closed streams
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
when I finish phone call, can't restart recording.
when incoming call
E/IAudioFlinger: createRecord returned error -1
E/AudioRecord: createRecord_l(0): AudioFlinger could not create record track, status: -1
But the permission "android.permission.RECORD_AUDIO" had been allowed.
Logcat as bellow:
E/com.zipcom.pyAiHear.Work2Activity: AUDIOFOCUS_GAIN
need start analysis
after click bAnalysis_Active:true
I/OboeAudio: openStream() OUTPUT -------- OboeVersion1.6.0 --------
I/AAudio: AAudioStreamBuilder_openStream() called ----------------------------------------
I/AudioStreamBuilder: rate = 0, channels = 1, format = 5, sharing = EX, dir = OUTPUT
device = 0, sessionId = 0, perfMode = 12, callback: ON with frames = 0
usage = 1, contentType = 2, inputPreset = 6, allowedCapturePolicy = 0
I/AudioStreamBuilder: privacy sensitive = false
D/AudioStreamBuilder: build() EXCLUSIVE sharing mode not supported. Use SHARED.
D/AudioStreamBuilder: build() MMAP not used because sessionId specified.
D/zipcom.pyAiHea: PlayerBase::PlayerBase()
D/AudioStreamTrack: open(), request notificationFrames = -8, frameCount = 0
I/AudioTrack: createTrack_l(1195): AUDIO_OUTPUT_FLAG_FAST successful; frameCount 0 -> 1536
D/AudioTrack: setVolume(1.000000, 1.000000) pid : 27294
W/AudioStreamTrack: open() sampleRate changed from 0 to 48000
D/AAudioStream: setState(s#9) from 0 to 2
I/AAudio: AAudioStreamBuilder_openStream() returns 0 = AAUDIO_OK for s#9 ----------------
D/OboeAudio: AudioStreamAAudio.open() format=2, sampleRate=48000, capacity = 1536
AudioStreamAAudio.open: AAudioStream_Open() returned AAUDIO_OK
I/OboeAudio: openStream() INPUT -------- OboeVersion1.6.0 --------
I/AAudio: AAudioStreamBuilder_openStream() called ----------------------------------------
I/AudioStreamBuilder: rate = 48000, channels = 1, format = 5, sharing = EX, dir = INPUT
device = 0, sessionId = -1, perfMode = 12, callback: OFF with frames = 0
usage = 1, contentType = 2, inputPreset = 6, allowedCapturePolicy = 0
privacy sensitive = false
D/AudioStreamBuilder: build() EXCLUSIVE sharing mode not supported. Use SHARED.
D/zipcom.pyAiHea: PlayerBase::PlayerBase()
E/IAudioFlinger: createRecord returned error -1
E/AudioRecord: createRecord_l(0): AudioFlinger could not create record track, status: -1
W/AudioRecord: removeAudioDeviceCallback(0): removing different callback!
D/AAudioStream: setState(s#10) from 0 to 11
D/AAudioStream: setState(s#10) from 11 to 12
E/AudioStreamRecord: open(), initCheck() returned -1
D/zipcom.pyAiHea: PlayerBase::~PlayerBase()
I/AAudio: AAudioStreamBuilder_openStream() returns -896 = AAUDIO_ERROR_INTERNAL for s#0 ----------------
W/OboeAudio: AudioStreamAAudio.open() may have failed due to lack of audio recording permission.
D/OboeAudio: AudioStreamAAudio.open: AAudioStream_Open() returned AAUDIO_ERROR_INTERNAL
D/AAudio: AAudioStream_requestStop(s#9) called
D/AAudioStream: setState(s#9) from 2 to 10
D/zipcom.pyAiHea: PlayerBase::stop() from IPlayer
D/AAudio: AAudioStream_requestStop(s#9) called
D/zipcom.pyAiHea: PlayerBase::stop() from IPlayer
D/AAudio: AAudioStream_close(s#9) called ---------------
D/AAudioStream: setState(s#9) from 10 to 11
D/AAudioStream: setState(s#9) from 11 to 12
D/AAudio: AAudioStream_close(s#9) returned 0 ---------
W/octopus: Successfully closed streams
How can I resolve problem?
TKS
Beta Was this translation helpful? Give feedback.
All reactions