Lines Matching refs:val
123 static int32_t CheckInputName(int type, void *val)
125 if (val == NULL) {
146 *(int *)val = capInputInt;
150 *(float *)val = capInputFloat;
157 *(uint32_t *)val = capInputUint;
816 int32_t val = 0;
829 ret = CheckInputName(INPUT_INT, (void *)&val);
841 if (val == 1) {
850 float val = 0.5;
855 int32_t ret = g_capture->GetVolume((void *)g_capture, &val);
862 printf("Now the volume is %f ,Please enter the volume value you want to set (0.0-1.0):\n", val);
864 ret = CheckInputName(INPUT_FLOAT, (void *)&val);
869 if (val < 0.0 || val > 1.0) {
881 ret = g_capture->SetVolume((void *)g_capture, val);
892 float val = 1.0;
898 int32_t ret = g_capture->GetGain((void *)g_capture, &val);
905 printf("Now the gain is %f, Please enter the gain value you want to set (0.0-15.0):\n", val);
907 ret = CheckInputName(INPUT_FLOAT, (void *)&val);
913 if (val < 0.0 || val > 15.0) {
925 ret = g_capture->SetGain((void *)g_capture, val);
978 int val = 0;
984 if (CheckInputName(INPUT_INT, (void *)&val) < 0) {
987 switch (val) {
1079 int32_t val = 0;
1080 int32_t ret = CheckInputName(INPUT_INT, (void *)&val);
1087 if (val == 1) {
1108 int32_t val = 0;
1114 int32_t ret = CheckInputName(INPUT_INT, (void *)&val);
1121 switch (val) {