Loading media/libaudioclient/include/media/AudioPolicyHelper.h +4 −6 Original line number Diff line number Diff line Loading @@ -18,9 +18,8 @@ #include <system/audio.h> // TODO: fix this among dependencies __attribute__((unused)) static audio_stream_type_t audio_attributes_to_stream_type(const audio_attributes_t *attr) static inline audio_stream_type_t audio_attributes_to_stream_type(const audio_attributes_t *attr) { // flags to stream type mapping if ((attr->flags & AUDIO_FLAG_AUDIBILITY_ENFORCED) == AUDIO_FLAG_AUDIBILITY_ENFORCED) { Loading Loading @@ -65,9 +64,8 @@ static audio_stream_type_t audio_attributes_to_stream_type(const audio_attribute } } // TODO: fix this among dependencies __attribute__((unused)) static void stream_type_to_audio_attributes(audio_stream_type_t streamType, static inline void stream_type_to_audio_attributes(audio_stream_type_t streamType, audio_attributes_t *attr) { memset(attr, 0, sizeof(audio_attributes_t)); Loading Loading
media/libaudioclient/include/media/AudioPolicyHelper.h +4 −6 Original line number Diff line number Diff line Loading @@ -18,9 +18,8 @@ #include <system/audio.h> // TODO: fix this among dependencies __attribute__((unused)) static audio_stream_type_t audio_attributes_to_stream_type(const audio_attributes_t *attr) static inline audio_stream_type_t audio_attributes_to_stream_type(const audio_attributes_t *attr) { // flags to stream type mapping if ((attr->flags & AUDIO_FLAG_AUDIBILITY_ENFORCED) == AUDIO_FLAG_AUDIBILITY_ENFORCED) { Loading Loading @@ -65,9 +64,8 @@ static audio_stream_type_t audio_attributes_to_stream_type(const audio_attribute } } // TODO: fix this among dependencies __attribute__((unused)) static void stream_type_to_audio_attributes(audio_stream_type_t streamType, static inline void stream_type_to_audio_attributes(audio_stream_type_t streamType, audio_attributes_t *attr) { memset(attr, 0, sizeof(audio_attributes_t)); Loading