Lines Matching refs:val
102 static int32_t CheckInputName(int type, void *val)
104 if (val == NULL) {
126 *(int *)val = inputInt;
131 *(float *)val = inputFloat;
139 *(uint32_t *)val = inputUint;
754 int32_t val;
764 ret = CheckInputName(INPUT_INT, (void *)&val);
774 if (val == 1) {
788 float val = 0.0;
790 ret = g_render->GetVolume((void *)g_render, &val);
797 printf("Now the volume is %f ,Please enter the volume value you want to set (0.0-1.0):", val);
799 ret = CheckInputName(INPUT_FLOAT, (void *)&val);
804 if (val < 0.0 || val > 1.0) {
816 ret = g_render->SetVolume((void *)g_render, val);
831 float val = 1.0;
833 int32_t ret = g_render->GetGain((void *)g_render, &val);
839 printf("Now the gain is %f,", val);
910 int val = 0;
916 int32_t ret = CheckInputName(INPUT_INT, (void *)&val);
922 switch (val) {
1010 int32_t val = 0;
1011 int32_t ret = CheckInputName(INPUT_INT, (void *)&val);
1018 if (val == 1) {
1037 int32_t val = 0;
1038 int32_t ret = CheckInputName(INPUT_INT, (void *)&val);
1045 if (val == 1) {
1047 } else if (val == 0) {
1065 int32_t val = 0;
1066 int32_t ret = CheckInputName(INPUT_INT, (void *)&val);
1073 if (val == 1) {
1097 int32_t val = 0;
1103 int32_t ret = CheckInputName(INPUT_INT, (void *)&val);
1110 switch (val) {