|
|
@ -22,6 +22,7 @@
|
|
|
|
#include <math.h>
|
|
|
|
#include <math.h>
|
|
|
|
#include <sys/resource.h>
|
|
|
|
#include <sys/resource.h>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <android-base/macros.h>
|
|
|
|
#include <audio_utils/clock.h>
|
|
|
|
#include <audio_utils/clock.h>
|
|
|
|
#include <audio_utils/primitives.h>
|
|
|
|
#include <audio_utils/primitives.h>
|
|
|
|
#include <binder/IPCThreadState.h>
|
|
|
|
#include <binder/IPCThreadState.h>
|
|
|
@ -3009,7 +3010,7 @@ bool AudioTrack::hasStarted()
|
|
|
|
if (mProxy->getStreamEndDone()) {
|
|
|
|
if (mProxy->getStreamEndDone()) {
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// fall through
|
|
|
|
FALLTHROUGH_INTENDED;
|
|
|
|
case STATE_ACTIVE:
|
|
|
|
case STATE_ACTIVE:
|
|
|
|
case STATE_STOPPING:
|
|
|
|
case STATE_STOPPING:
|
|
|
|
break;
|
|
|
|
break;
|
|
|
@ -3130,7 +3131,7 @@ bool AudioTrack::AudioTrackThread::threadLoop()
|
|
|
|
case NS_WHENEVER:
|
|
|
|
case NS_WHENEVER:
|
|
|
|
// Event driven: call wake() when callback notifications conditions change.
|
|
|
|
// Event driven: call wake() when callback notifications conditions change.
|
|
|
|
ns = INT64_MAX;
|
|
|
|
ns = INT64_MAX;
|
|
|
|
// fall through
|
|
|
|
FALLTHROUGH_INTENDED;
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
LOG_ALWAYS_FATAL_IF(ns < 0, "%s(%d): processAudioBuffer() returned %lld",
|
|
|
|
LOG_ALWAYS_FATAL_IF(ns < 0, "%s(%d): processAudioBuffer() returned %lld",
|
|
|
|
__func__, mReceiver.mId, (long long)ns);
|
|
|
|
__func__, mReceiver.mId, (long long)ns);
|
|
|
|