Home
last modified time | relevance | path

Searched refs:volume_scaler (Results 1 – 10 of 10) sorted by relevance

/external/adhd/cras/src/server/
Dcras_mix_ops.c80 float volume_scaler) in copy_scaled_s16_le() argument
84 if (volume_scaler > MAX_VOLUME_TO_SCALE) { in copy_scaled_s16_le()
90 dst[i] = src[i] * volume_scaler; in copy_scaled_s16_le()
271 float volume_scaler) in copy_scaled_s24_le() argument
275 if (volume_scaler > MAX_VOLUME_TO_SCALE) { in copy_scaled_s24_le()
281 dst[i] = scale_s24_le(src[i], volume_scaler); in copy_scaled_s24_le()
439 float volume_scaler) in copy_scaled_s32_le() argument
443 if (volume_scaler > MAX_VOLUME_TO_SCALE) { in copy_scaled_s32_le()
449 dst[i] = src[i] * volume_scaler; in copy_scaled_s32_le()
632 float volume_scaler) in copy_scaled_s24_3le() argument
[all …]
/external/adhd/cras/src/common/
Dcras_shm.h57 float volume_scaler; member
495 float volume_scaler) in cras_shm_set_volume_scaler() argument
497 volume_scaler = MAX(volume_scaler, 0.0); in cras_shm_set_volume_scaler()
498 shm->header->volume_scaler = MIN(volume_scaler, 1.0); in cras_shm_set_volume_scaler()
504 return shm->header->volume_scaler; in cras_shm_get_volume_scaler()
/external/adhd/cras/src/tools/cras_router/
Dcras_router.c117 float volume_scaler = 1.0; in run_file_io_stream() local
136 start_stream(client, &stream_id, params, volume_scaler) == 0; in run_file_io_stream()
152 volume_scaler) == 0; in run_file_io_stream()
/external/adhd/cras/src/tools/cras_test_client/
Dcras_test_client.c1070 float volume_scaler = 1.0; in run_file_io_stream() local
1143 start_stream(client, &stream_id, params, volume_scaler) == 0; in run_file_io_stream()
1195 volume_scaler) == 0; in run_file_io_stream()
1204 volume_scaler = MIN(volume_scaler + 0.1, 1.0); in run_file_io_stream()
1206 volume_scaler); in run_file_io_stream()
1209 volume_scaler = MAX(volume_scaler - 0.1, 0.0); in run_file_io_stream()
1211 volume_scaler); in run_file_io_stream()
/external/adhd/cras/src/libcras/
Dcras_client.c80 float volume_scaler; member
161 float volume_scaler; member
1424 cras_shm_set_volume_scaler(stream->shm, stream->volume_scaler); in stream_connected()
1590 float volume_scaler) in client_thread_set_stream_volume() argument
1595 if (stream == NULL || volume_scaler > 1.0 || volume_scaler < 0.0) in client_thread_set_stream_volume()
1598 stream->volume_scaler = volume_scaler; in client_thread_set_stream_volume()
1600 cras_shm_set_volume_scaler(stream->shm, volume_scaler); in client_thread_set_stream_volume()
1905 vol_msg->volume_scaler); in handle_command_message()
2030 float volume_scaler) in send_stream_volume_command_msg() argument
2037 msg.volume_scaler = volume_scaler; in send_stream_volume_command_msg()
[all …]
Dcras_client.h675 float volume_scaler);
/external/adhd/cras/src/tests/
Dshm_unittest.cc206 EXPECT_EQ(shm_.header->volume_scaler, 1.0); in TEST_F()
208 EXPECT_EQ(shm_.header->volume_scaler, 1.0); in TEST_F()
210 EXPECT_EQ(shm_.header->volume_scaler, 0.0); in TEST_F()
212 EXPECT_EQ(shm_.header->volume_scaler, 0.5); in TEST_F()
Dcras_client_unittest.cc363 EXPECT_EQ(1.0f, cmd_msg.stream->volume_scaler); in TEST()
Diodev_unittest.cc841 float volume_scaler = 0.435; in TEST() local
860 softvol_scalers[volume] = volume_scaler; in TEST()
878 softvol_scalers[volume] = volume_scaler; in TEST()
/external/adhd/cras/client/cras-sys/src/
Dgen.rs4455 pub volume_scaler: f32, field
4546 &(*(::std::ptr::null::<cras_audio_shm_header>())).volume_scaler as *const _ as usize in bindgen_test_layout_cras_audio_shm_header()
4553 stringify!(volume_scaler) in bindgen_test_layout_cras_audio_shm_header()