-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement SDK21 AudioTrack constructor #14081
Conversation
CJNIAudioManager::AUDIO_SESSION_ID_GENERATE); | ||
} | ||
else | ||
jniAt = new CJNIAudioTrack(stream, |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@@ -574,9 +578,8 @@ bool CAESinkAUDIOTRACK::Initialize(AEAudioFormat &format, std::string &device) | |||
|
|||
void CAESinkAUDIOTRACK::Deinitialize() | |||
{ | |||
#ifdef DEBUG_VERBOSE | |||
CLog::Log(LOGDEBUG, "CAESinkAUDIOTRACK::Deinitialize"); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@@ -786,7 +786,7 @@ void CActiveAE::StateMachine(int signal, Protocol *port, Message *msg) | |||
{ | |||
AEDelayStatus status; | |||
m_stats.GetDelay(status); | |||
m_extDrainTimer.Set(status.GetDelay() * 1000); | |||
m_extDrainTimer.Set(status.GetDelay() * 1000 + 500); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
CJNIAudioAttributesBuilder attrBuilder; | ||
attrBuilder.setContentType(stream == CJNIAudioManager::STREAM_MUSIC | ||
? CJNIAudioAttributes::CONTENT_TYPE_MUSIC | ||
: CJNIAudioAttributes::CONTENT_TYPE_MOVIE); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
? CJNIAudioAttributes::CONTENT_TYPE_MUSIC | ||
: CJNIAudioAttributes::CONTENT_TYPE_MOVIE); | ||
attrBuilder.setUsage(CJNIAudioAttributes::USAGE_MEDIA); | ||
// attrBuilder.setFlags(CJNIAudioAttributes::FLAG_AUDIBILITY_ENFORCED); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
jenkins build this please |
Description
Implement new Audiotrack ctor because the current one is marked deprecated beginning with API 26.
Motivation and Context
Investigating AudioTrack creation issues with Android O
How Has This Been Tested?
Android 6 + 7 / PCM + PT
Types of change