Home
last modified time | relevance | path

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

/external/adhd/cras/src/server/
Dcras_mix_ops.c84 float volume_scaler) in copy_scaled_s16_le() argument
88 if (volume_scaler > MAX_VOLUME_TO_SCALE) { in copy_scaled_s16_le()
94 dst[i] = src[i] * volume_scaler; in copy_scaled_s16_le()
273 float volume_scaler) in copy_scaled_s24_le() argument
277 if (volume_scaler > MAX_VOLUME_TO_SCALE) { in copy_scaled_s24_le()
283 dst[i] = src[i] * volume_scaler; in copy_scaled_s24_le()
446 float volume_scaler) in copy_scaled_s32_le() argument
450 if (volume_scaler > MAX_VOLUME_TO_SCALE) { in copy_scaled_s32_le()
456 dst[i] = src[i] * volume_scaler; in copy_scaled_s32_le()
644 float volume_scaler) in copy_scaled_s24_3le() argument
[all …]
/external/adhd/cras/src/common/
Dcras_shm.h56 float volume_scaler; member
392 void cras_shm_set_volume_scaler(struct cras_audio_shm *shm, float volume_scaler) in cras_shm_set_volume_scaler() argument
394 volume_scaler = MAX(volume_scaler, 0.0); in cras_shm_set_volume_scaler()
395 shm->area->volume_scaler = MIN(volume_scaler, 1.0); in cras_shm_set_volume_scaler()
401 return shm->area->volume_scaler; in cras_shm_get_volume_scaler()
/external/adhd/cras/src/tests/
Dcras_router.c132 float volume_scaler = 1.0; in run_file_io_stream() local
156 start_stream(client, &stream_id, params, volume_scaler) == 0; in run_file_io_stream()
177 loop_params, volume_scaler) == 0; in run_file_io_stream()
Dshm_unittest.cc193 EXPECT_EQ(shm_.area->volume_scaler, 1.0); in TEST_F()
195 EXPECT_EQ(shm_.area->volume_scaler, 1.0); in TEST_F()
197 EXPECT_EQ(shm_.area->volume_scaler, 0.0); in TEST_F()
199 EXPECT_EQ(shm_.area->volume_scaler, 0.5); in TEST_F()
Dcras_test_client.c773 float volume_scaler = 1.0; in run_file_io_stream() local
848 start_stream(client, &stream_id, params, volume_scaler) == 0; in run_file_io_stream()
905 volume_scaler) == 0; in run_file_io_stream()
914 volume_scaler = MIN(volume_scaler + 0.1, 1.0); in run_file_io_stream()
917 volume_scaler); in run_file_io_stream()
920 volume_scaler = MAX(volume_scaler - 0.1, 0.0); in run_file_io_stream()
923 volume_scaler); in run_file_io_stream()
Ddev_io_stubs.cc30 shm->volume_scaler = 1.0; in create_shm()
Diodev_unittest.cc867 float volume_scaler = 0.435; in TEST() local
885 softvol_scalers[volume] = volume_scaler; in TEST()
902 softvol_scalers[volume] = volume_scaler; in TEST()
/external/adhd/cras/src/libcras/
Dcras_client.c81 float volume_scaler; member
156 float volume_scaler; member
1476 stream->volume_scaler); in stream_connected()
1636 float volume_scaler) in client_thread_set_stream_volume() argument
1641 if (stream == NULL || volume_scaler > 1.0 || volume_scaler < 0.0) in client_thread_set_stream_volume()
1644 stream->volume_scaler = volume_scaler; in client_thread_set_stream_volume()
1646 cras_shm_set_volume_scaler(&stream->play_shm, volume_scaler); in client_thread_set_stream_volume()
1948 vol_msg->volume_scaler); in handle_command_message()
2075 float volume_scaler) in send_stream_volume_command_msg() argument
2082 msg.volume_scaler = volume_scaler; in send_stream_volume_command_msg()
[all …]
Dcras_client.h653 float volume_scaler);