Lines Matching refs:reverb_ctxt
302 reverb_context_t *reverb_ctxt = (reverb_context_t *)context; in reverb_get_parameter() local
314 if (reverb_ctxt->preset) { in reverb_get_parameter()
317 *(uint16_t *)value = reverb_ctxt->next_preset; in reverb_get_parameter()
318 ALOGV("get REVERB_PARAM_PRESET, preset %d", reverb_ctxt->next_preset); in reverb_get_parameter()
390 reverb_settings->roomLevel = reverb_get_room_level(reverb_ctxt); in reverb_get_parameter()
391 reverb_settings->roomHFLevel = reverb_get_room_hf_level(reverb_ctxt); in reverb_get_parameter()
392 reverb_settings->decayTime = reverb_get_decay_time(reverb_ctxt); in reverb_get_parameter()
393 reverb_settings->decayHFRatio = reverb_get_decay_hf_ratio(reverb_ctxt); in reverb_get_parameter()
397 reverb_settings->reverbLevel = reverb_get_reverb_level(reverb_ctxt); in reverb_get_parameter()
398 reverb_settings->diffusion = reverb_get_diffusion(reverb_ctxt); in reverb_get_parameter()
399 reverb_settings->density = reverb_get_density(reverb_ctxt); in reverb_get_parameter()
403 *(int16_t *)value = reverb_get_room_level(reverb_ctxt); in reverb_get_parameter()
407 *(int16_t *)value = reverb_get_room_hf_level(reverb_ctxt); in reverb_get_parameter()
411 *(uint32_t *)value = reverb_get_decay_time(reverb_ctxt); in reverb_get_parameter()
415 *(int16_t *)value = reverb_get_decay_hf_ratio(reverb_ctxt); in reverb_get_parameter()
419 *(int16_t *)value = reverb_get_reverb_level(reverb_ctxt); in reverb_get_parameter()
423 *(int16_t *)value = reverb_get_diffusion(reverb_ctxt); in reverb_get_parameter()
427 *(int16_t *)value = reverb_get_density(reverb_ctxt); in reverb_get_parameter()
452 reverb_context_t *reverb_ctxt = (reverb_context_t *)context; in reverb_set_parameter() local
466 if (reverb_ctxt->preset) { in reverb_set_parameter()
474 reverb_set_preset(reverb_ctxt, preset); in reverb_set_parameter()
485 reverb_set_room_level(reverb_ctxt, level); in reverb_set_parameter()
490 reverb_set_room_hf_level(reverb_ctxt, level); in reverb_set_parameter()
495 reverb_set_decay_time(reverb_ctxt, time); in reverb_set_parameter()
500 reverb_set_decay_hf_ratio(reverb_ctxt, ratio); in reverb_set_parameter()
505 reverb_set_reverb_level(reverb_ctxt, level); in reverb_set_parameter()
510 reverb_set_diffusion(reverb_ctxt, ratio); in reverb_set_parameter()
515 reverb_set_density(reverb_ctxt, ratio); in reverb_set_parameter()
531 reverb_context_t *reverb_ctxt = (reverb_context_t *)context; in reverb_set_device() local
534 reverb_ctxt->device = device; in reverb_set_device()
535 offload_reverb_set_device(&(reverb_ctxt->offload_reverb), device); in reverb_set_device()
541 reverb_context_t *reverb_ctxt = (reverb_context_t *)context; in reverb_reset() local
548 reverb_context_t *reverb_ctxt = (reverb_context_t *)context; in reverb_init() local
573 memset(&(reverb_ctxt->reverb_settings), 0, sizeof(reverb_settings_t)); in reverb_init()
574 memset(&(reverb_ctxt->offload_reverb), 0, sizeof(struct reverb_params)); in reverb_init()
576 if (reverb_ctxt->preset && in reverb_init()
577 reverb_ctxt->next_preset != reverb_ctxt->cur_preset) in reverb_init()
578 reverb_load_preset(reverb_ctxt); in reverb_init()
585 reverb_context_t *reverb_ctxt = (reverb_context_t *)context; in reverb_enable() local
589 if (!offload_reverb_get_enable_flag(&(reverb_ctxt->offload_reverb))) in reverb_enable()
590 offload_reverb_set_enable_flag(&(reverb_ctxt->offload_reverb), true); in reverb_enable()
596 reverb_context_t *reverb_ctxt = (reverb_context_t *)context; in reverb_disable() local
599 if (offload_reverb_get_enable_flag(&(reverb_ctxt->offload_reverb))) { in reverb_disable()
600 offload_reverb_set_enable_flag(&(reverb_ctxt->offload_reverb), false); in reverb_disable()
601 if (reverb_ctxt->ctl) in reverb_disable()
602 offload_reverb_send_params(reverb_ctxt->ctl, in reverb_disable()
603 &reverb_ctxt->offload_reverb, in reverb_disable()
611 reverb_context_t *reverb_ctxt = (reverb_context_t *)context; in reverb_start() local
614 reverb_ctxt->ctl = output->ctl; in reverb_start()
615 if (offload_reverb_get_enable_flag(&(reverb_ctxt->offload_reverb))) { in reverb_start()
616 if (reverb_ctxt->ctl && reverb_ctxt->preset) { in reverb_start()
617 offload_reverb_send_params(reverb_ctxt->ctl, &reverb_ctxt->offload_reverb, in reverb_start()
628 reverb_context_t *reverb_ctxt = (reverb_context_t *)context; in reverb_stop() local
631 reverb_ctxt->ctl = NULL; in reverb_stop()