/foundation/multimedia/audio_framework/services/audio_service/test/unittest/ |
H A D | volume_tools_unit_test.cpp | 108 int32_t volStart = -1; in HWTEST_F() local 110 ChannelVolumes ret = VolumeTools::GetChannelVolumes(channel, volStart, volEnd); in HWTEST_F() 111 EXPECT_NE(ret.volStart[0], volStart); in HWTEST_F() 122 int32_t volStart = 1; in HWTEST_F() local 124 ChannelVolumes ret = VolumeTools::GetChannelVolumes(channel, volStart, volEnd); in HWTEST_F() 125 EXPECT_NE(ret.volStart[0], volStart); in HWTEST_F() 136 float volStart = -1.0f; in HWTEST_F() local 138 ChannelVolumes ret = VolumeTools::GetChannelVolumes(channel, volStart, volEn in HWTEST_F() 150 float volStart = 1.0f; HWTEST_F() local 164 float volStart = 1.0f; HWTEST_F() local [all...] |
/foundation/multimedia/audio_framework/services/audio_service/common/src/ |
H A D | volume_tools.cpp | 53 if (!IsVolumeValid(vols.volStart[i]) || !IsVolumeValid(vols.volEnd[i])) { in IsVolumeValid() 72 ChannelVolumes VolumeTools::GetChannelVolumes(AudioChannel channel, int32_t volStart, int32_t volEnd) in GetChannelVolumes() argument 75 if (!IsVolumeValid(volStart) || !IsVolumeValid(volEnd) || channel > CHANNEL_16 || channel < MONO) { in GetChannelVolumes() 76 AUDIO_ERR_LOG("GetChannelVolumes failed with invalid vol:%{public}d %{public}d channel: %{public}d", volStart, in GetChannelVolumes() 81 vols.volStart[i] = volStart; in GetChannelVolumes() 88 ChannelVolumes VolumeTools::GetChannelVolumes(AudioChannel channel, float volStart, float volEnd) in GetChannelVolumes() argument 91 if (!IsVolumeValid(volStart) || !IsVolumeValid(volEnd) || channel > CHANNEL_16 || channel < MONO) { in GetChannelVolumes() 92 AUDIO_ERR_LOG("GetChannelVolumes failed with invalid vol:%{public}f %{public}f channel: %{public}d", volStart, in GetChannelVolumes() 97 vols.volStart[ in GetChannelVolumes() 459 ProcessVol(uint8_t *buffer, size_t length, AudioRawFormat rawformat, float volStart, float volEnd) ProcessVol() argument [all...] |
H A D | audio_log_utils.cpp | 34 if (vols.volStart[i] != 0) { in ProcessVolumeData() 71 logTag.c_str(), vols.volStart[0], count); in IncSoundData() 74 logTag.c_str(), vols.channel, vols.volStart[0], vols.volStart[1], count); in IncSoundData()
|
/foundation/multimedia/audio_framework/services/audio_service/common/include/ |
H A D | volume_tools.h | 29 int32_t volStart[CHANNEL_MAX]; member 45 static ChannelVolumes GetChannelVolumes(AudioChannel channel, int32_t volStart, int32_t volEnd); 46 static ChannelVolumes GetChannelVolumes(AudioChannel channel, float volStart, float volEnd); 52 // will count volume for each channel, vol sum will be kept in volStart
|
H A D | volume_tools_c.h | 30 int32_t ProcessVol(uint8_t *buffer, size_t length, AudioRawFormat rawformat, float volStart, float volEnd);
|
/foundation/multimedia/audio_framework/frameworks/native/hdiadapter/sink/bluetooth/ |
H A D | bluetooth_renderer_sink.cpp | 582 Trace::Count(logUtilsTag_, vols.volStart[0]); in DfxOperation() 584 Trace::Count(logUtilsTag_, (vols.volStart[0] + vols.volStart[1]) / HALF_FACTOR); in DfxOperation()
|
/foundation/multimedia/audio_framework/frameworks/native/hdiadapter/sink/remote/ |
H A D | remote_audio_renderer_sink.cpp | 966 Trace::Count(logUtilsTag_, vols.volStart[0]); in DfxOperation() 968 Trace::Count(logUtilsTag_, (vols.volStart[0] + vols.volStart[1]) / HALF_FACTOR); in DfxOperation()
|
/foundation/multimedia/audio_framework/frameworks/native/hdiadapter/sink/primary/ |
H A D | audio_renderer_sink.cpp | 801 Trace::Count(logUtilsTag_, vols.volStart[0]); in DfxOperation() 803 Trace::Count(logUtilsTag_, (vols.volStart[0] + vols.volStart[1]) / HALF_FACTOR); in DfxOperation()
|
/foundation/multimedia/audio_framework/services/audio_service/client/src/ |
H A D | capturer_in_client.cpp | 1679 Trace::Count(logUtilsTag_, vols.volStart[0]); in DfxOperation() 1681 Trace::Count(logUtilsTag_, (vols.volStart[0] + vols.volStart[1]) / HALF_FACTOR); in DfxOperation()
|
H A D | audio_process_in_client.cpp | 916 Trace::Count(logUtilsTag_, vols.volStart[0]); in DfxOperation() 918 Trace::Count(logUtilsTag_, (vols.volStart[0] + vols.volStart[1]) / HALF_FACTOR); in DfxOperation()
|
H A D | renderer_in_client.cpp | 1837 Trace::Count(logUtilsTag_, vols.volStart[0]); in DfxOperation() 1839 Trace::Count(logUtilsTag_, (vols.volStart[0] + vols.volStart[1]) / HALF_FACTOR); in DfxOperation()
|
/foundation/multimedia/audio_framework/frameworks/native/hdiadapter/source/primary/ |
H A D | audio_capturer_source.cpp | 838 Trace::Count(logUtilsTag_, vols.volStart[0]); in DfxOperation() 840 Trace::Count(logUtilsTag_, (vols.volStart[0] + vols.volStart[1]) / HALF_FACTOR); in DfxOperation()
|
/foundation/multimedia/audio_framework/services/audio_service/server/src/ |
H A D | audio_endpoint.cpp | 1643 Trace::Count(logUtilsTag_, vols.volStart[0]); in DfxOperation() 1645 Trace::Count(logUtilsTag_, (vols.volStart[0] + vols.volStart[1]) / HALF_FACTOR); in DfxOperation()
|