什么是“状态-12"?在Android AudioTrack中意味着什么? [英] What does "status -12" mean in Android AudioTrack?
问题描述
使用Android声音池/audioTrack时,出现以下错误:
When using Android soundpool/audioTrack, I keep getting the following error:
AudioFlinger could not create track, status: -12
Error creating AudioTrack
任何人都可以解释-12
是什么吗?它是源代码中某些枚举的值吗?
Can anyone explain what -12
is? Is it the value of some enum from the source code?
我已经看到了其他有关错误-12
的问题,但没有一个结论可以肯定地表明该常数的含义.有人知道AudioFlinger的可能状态列表吗?我也看到过错误-22
,但是我也不知道这是什么意思.
I've seen other questions that deal with error -12
but nowhere conclusively do I see what that constant actually stands for. Does someone know the list of the possible statuses for AudioFlinger? I've also seen error -22
around, but I don't know what that means either.
由源代码或文档备份的答案是最好的,但是我将尽一切可能获得的信息.
Answers backed up by source code or documentation would be best, but I'll take any information I can get at this point.
推荐答案
-12 is ENOMEM Not enough space
-22 is EINVAL Invalid argument.
这些是标准的POSIX错误代码
These are standard POSIX error codes
这篇关于什么是“状态-12"?在Android AudioTrack中意味着什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!