Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c483bdb0 authored by codeworkx's avatar codeworkx
Browse files

libmedia: implement samsungs isSeparatedStream, built audioparameter

Change-Id: I96ec5b79c08e37c9bca59470addb5a9f7869eaea
parent e0df2e7b
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -62,6 +62,15 @@ LOCAL_SRC_FILES:= \
    SoundPool.cpp \
    SoundPoolThread.cpp

ifeq ($(BOARD_USES_LIBMEDIA_WITH_AUDIOPARAMETER),true)
LOCAL_SRC_FILES+= \
    AudioParameter.cpp
endif

ifeq ($(BOARD_USE_SAMSUNG_SEPARATEDSTREAM),true)
LOCAL_CFLAGS += -DUSE_SAMSUNG_SEPARATEDSTREAM
endif

ifeq ($(BOARD_USES_QCOM_HARDWARE),true)
LOCAL_SRC_FILES += \
    IDirectTrack.cpp \
+9 −0
Original line number Diff line number Diff line
@@ -788,4 +788,13 @@ void AudioSystem::AudioPolicyServiceClient::binderDied(const wp<IBinder>& who) {
    ALOGW("AudioPolicyService server died!");
}

#ifdef USE_SAMSUNG_SEPARATEDSTREAM
extern "C" bool _ZN7android11AudioSystem17isSeparatedStreamE19audio_stream_type_t(audio_stream_type_t stream)
{
    ALOGD("audio_stream_type_t: %d", stream);
    ALOGD("isSeparatedStream: false");
    return false;
}
#endif // USE_SAMSUNG_SEPARATEDSTREAM

}; // namespace android