/foundation/multimedia/audio_framework/services/audio_service/common/src/ |
H A D | audio_log_utils.cpp | 30 void AudioLogUtils::ProcessVolumeData(const std::string &logTag, const ChannelVolumes &vols, int64_t &count) in ProcessVolumeData() argument 33 for (int32_t i = 0; i < vols.channel; i++) { in ProcessVolumeData() 34 if (vols.volStart[i] != 0) { in ProcessVolumeData() 45 IncSilentData(logTag, vols, -count); in ProcessVolumeData() 52 IncSoundData(logTag, vols, count); in ProcessVolumeData() 56 void AudioLogUtils::IncSilentData(const std::string &logTag, const ChannelVolumes &vols, int64_t count) in IncSilentData() argument 61 logTag.c_str(), vols.channel, count); in IncSilentData() 65 void AudioLogUtils::IncSoundData(const std::string &logTag, const ChannelVolumes &vols, int64_t count) in IncSoundData() argument 69 if (vols.channel == MONO) { in IncSoundData() 71 logTag.c_str(), vols in IncSoundData() [all...] |
H A D | volume_tools.cpp | 47 bool VolumeTools::IsVolumeValid(ChannelVolumes vols) in IsVolumeValid() argument 49 if (vols.channel > CHANNEL_16 || vols.channel < MONO) { in IsVolumeValid() 52 for (size_t i = 0; i < vols.channel; i++) { in IsVolumeValid() 53 if (!IsVolumeValid(vols.volStart[i]) || !IsVolumeValid(vols.volEnd[i])) { in IsVolumeValid() 74 ChannelVolumes vols = {}; in GetChannelVolumes() local 78 return vols; in GetChannelVolumes() 81 vols.volStart[i] = volStart; in GetChannelVolumes() 82 vols in GetChannelVolumes() 90 ChannelVolumes vols = {}; GetChannelVolumes() local 187 Process(const BufferDesc &buffer, AudioSampleFormat format, ChannelVolumes vols) Process() argument [all...] |
/foundation/multimedia/audio_framework/services/audio_service/common/include/ |
H A D | audio_log_utils.h | 24 static void ProcessVolumeData(const std::string &logTag, const ChannelVolumes &vols, int64_t &count); 27 static void IncSilentData(const std::string &logTag, const ChannelVolumes &vols, int64_t count); 28 static void IncSoundData(const std::string &logTag, const ChannelVolumes &vols, int64_t count);
|
H A D | volume_tools.h | 43 static bool IsVolumeValid(ChannelVolumes vols); 50 static int32_t Process(const BufferDesc &buffer, AudioSampleFormat format, ChannelVolumes vols);
|
/foundation/multimedia/audio_framework/frameworks/native/hdiadapter/sink/bluetooth/ |
H A D | bluetooth_renderer_sink.cpp | 580 ChannelVolumes vols = VolumeTools::CountVolumeLevel(buffer, format, channel); in DfxOperation() local 582 Trace::Count(logUtilsTag_, vols.volStart[0]); in DfxOperation() 584 Trace::Count(logUtilsTag_, (vols.volStart[0] + vols.volStart[1]) / HALF_FACTOR); in DfxOperation() 586 AudioLogUtils::ProcessVolumeData(logUtilsTag_, vols, volumeDataCount_); in DfxOperation()
|
/foundation/multimedia/audio_framework/frameworks/native/hdiadapter/sink/remote/ |
H A D | remote_audio_renderer_sink.cpp | 964 ChannelVolumes vols = VolumeTools::CountVolumeLevel(buffer, format, channel); in DfxOperation() local 966 Trace::Count(logUtilsTag_, vols.volStart[0]); in DfxOperation() 968 Trace::Count(logUtilsTag_, (vols.volStart[0] + vols.volStart[1]) / HALF_FACTOR); in DfxOperation() 970 AudioLogUtils::ProcessVolumeData(logUtilsTag_, vols, volumeDataCount_); in DfxOperation()
|
/foundation/multimedia/audio_framework/frameworks/native/hdiadapter/sink/primary/ |
H A D | audio_renderer_sink.cpp | 799 ChannelVolumes vols = VolumeTools::CountVolumeLevel(buffer, format, channel); in DfxOperation() local 801 Trace::Count(logUtilsTag_, vols.volStart[0]); in DfxOperation() 803 Trace::Count(logUtilsTag_, (vols.volStart[0] + vols.volStart[1]) / HALF_FACTOR); in DfxOperation() 805 AudioLogUtils::ProcessVolumeData(logUtilsTag_, vols, volumeDataCount_); in DfxOperation()
|
/foundation/multimedia/audio_framework/services/audio_service/client/src/ |
H A D | capturer_in_client.cpp | 1677 ChannelVolumes vols = VolumeTools::CountVolumeLevel(buffer, format, channel); in DfxOperation() local 1679 Trace::Count(logUtilsTag_, vols.volStart[0]); in DfxOperation() 1681 Trace::Count(logUtilsTag_, (vols.volStart[0] + vols.volStart[1]) / HALF_FACTOR); in DfxOperation() 1683 AudioLogUtils::ProcessVolumeData(logUtilsTag_, vols, volumeDataCount_); in DfxOperation()
|
H A D | audio_process_in_client.cpp | 914 ChannelVolumes vols = VolumeTools::CountVolumeLevel(buffer, format, channel); in DfxOperation() local 916 Trace::Count(logUtilsTag_, vols.volStart[0]); in DfxOperation() 918 Trace::Count(logUtilsTag_, (vols.volStart[0] + vols.volStart[1]) / HALF_FACTOR); in DfxOperation() 920 AudioLogUtils::ProcessVolumeData(logUtilsTag_, vols, volumeDataCount_); in DfxOperation()
|
H A D | renderer_in_client.cpp | 1835 ChannelVolumes vols = VolumeTools::CountVolumeLevel(buffer, format, channel); in DfxOperation() local 1837 Trace::Count(logUtilsTag_, vols.volStart[0]); in DfxOperation() 1839 Trace::Count(logUtilsTag_, (vols.volStart[0] + vols.volStart[1]) / HALF_FACTOR); in DfxOperation() 1841 AudioLogUtils::ProcessVolumeData(logUtilsTag_, vols, volumeDataCount_); in DfxOperation()
|
/foundation/multimedia/audio_framework/frameworks/native/hdiadapter/source/primary/ |
H A D | audio_capturer_source.cpp | 836 ChannelVolumes vols = VolumeTools::CountVolumeLevel(buffer, format, channel); in DfxOperation() local 838 Trace::Count(logUtilsTag_, vols.volStart[0]); in DfxOperation() 840 Trace::Count(logUtilsTag_, (vols.volStart[0] + vols.volStart[1]) / HALF_FACTOR); in DfxOperation() 842 AudioLogUtils::ProcessVolumeData(logUtilsTag_, vols, volumeDataCount_); in DfxOperation()
|
/foundation/multimedia/audio_framework/services/audio_service/server/src/ |
H A D | audio_endpoint.cpp | 1641 ChannelVolumes vols = VolumeTools::CountVolumeLevel(buffer, format, channel); in DfxOperation() local 1643 Trace::Count(logUtilsTag_, vols.volStart[0]); in DfxOperation() 1645 Trace::Count(logUtilsTag_, (vols.volStart[0] + vols.volStart[1]) / HALF_FACTOR); in DfxOperation() 1647 AudioLogUtils::ProcessVolumeData(logUtilsTag_, vols, volumeDataCount_); in DfxOperation()
|