Lines Matching refs:value
87 bool setF0(std::string value) override { return set(value, &mF0); } in setF0() argument
88 bool setF0Offset(uint32_t value) override { return set(value, &mF0Offset); } in setF0Offset() argument
89 bool setRedc(std::string value) override { return set(value, &mRedc); } in setRedc() argument
90 bool setQ(std::string value) override { return set(value, &mQ); } in setQ() argument
91 bool getEffectCount(uint32_t *value) override { return get(value, &mEffectCount); } in getEffectCount() argument
92 bool pollVibeState(uint32_t value, int32_t timeoutMs) override { in pollVibeState() argument
93 return poll(value, &mVibeState, timeoutMs); in pollVibeState()
96 bool getOwtFreeSpace(uint32_t *value) override { return get(value, &mOwtFreeSpace); } in getOwtFreeSpace() argument
97 bool setF0CompEnable(bool value) override { return set(value, &mF0CompEnable); } in setF0CompEnable() argument
98 bool setRedcCompEnable(bool value) override { return set(value, &mRedcCompEnable); } in setRedcCompEnable() argument
99 bool setMinOnOffInterval(uint32_t value) override { return set(value, &mMinOnOffInterval); } in setMinOnOffInterval() argument
101 bool setFFGain(int fd, uint16_t value) override { in setFFGain() argument
105 .value = value, in setFFGain()
107 if (value > 100) { in setFFGain()
127 bool setFFPlay(int fd, int8_t index, bool value) override { in setFFPlay() argument
131 .value = value, in setFFPlay()
316 bool getVersion(uint32_t *value) override { in getVersion() argument
317 if (getPersist(VERSION, value)) { in getVersion()
320 *value = VERSION_DEFAULT; in getVersion()
323 bool getLongFrequencyShift(int32_t *value) override { in getLongFrequencyShift() argument
324 return getProperty("long.frequency.shift", value, DEFAULT_FREQUENCY_SHIFT); in getLongFrequencyShift()
326 bool getF0(std::string *value) override { return getPersist(F0_CONFIG, value); } in getF0() argument
327 bool getF0SyncOffset(uint32_t *value) override { in getF0SyncOffset() argument
337 *value = static_cast<uint32_t>(f0_offset * std::pow(2, 14)); in getF0SyncOffset()
339 … *value = static_cast<uint32_t>(std::pow(2, 24) - std::abs(f0_offset) * std::pow(2, 14)); in getF0SyncOffset()
341 *value = 0; in getF0SyncOffset()
347 *value = 0; in getF0SyncOffset()
351 bool getRedc(std::string *value) override { return getPersist(REDC_CONFIG, value); } in getRedc() argument
352 bool getQ(std::string *value) override { return getPersist(Q_CONFIG, value); } in getQ() argument
353 bool getTickVolLevels(std::array<uint32_t, 2> *value) override { in getTickVolLevels() argument
354 if (getPersist(TICK_VOLTAGES_CONFIG, value)) { in getTickVolLevels()
357 *value = V_TICK_DEFAULT; in getTickVolLevels()
360 bool getClickVolLevels(std::array<uint32_t, 2> *value) override { in getClickVolLevels() argument
361 if (getPersist(CLICK_VOLTAGES_CONFIG, value)) { in getClickVolLevels()
364 *value = V_CLICK_DEFAULT; in getClickVolLevels()
367 bool getLongVolLevels(std::array<uint32_t, 2> *value) override { in getLongVolLevels() argument
368 if (getPersist(LONG_VOLTAGES_CONFIG, value)) { in getLongVolLevels()
371 *value = V_LONG_DEFAULT; in getLongVolLevels()
377 bool getSupportedPrimitives(uint32_t *value) override { in getSupportedPrimitives() argument
378 return getProperty("supported_primitives", value, (uint32_t)0); in getSupportedPrimitives()
381 bool value; in isF0CompEnabled() local
382 getProperty("f0.comp.enabled", &value, true); in isF0CompEnabled()
383 return value; in isF0CompEnabled()
386 bool value; in isRedcCompEnabled() local
387 getProperty("redc.comp.enabled", &value, false); in isRedcCompEnabled()
388 return value; in isRedcCompEnabled()