bool JSAudioContext::JSSetter_volume(JSContext *cx, JS::MutableHandleValue vp) { if (vp.isNumber()) { m_Audio->setVolume((float)vp.toNumber()); } return true; }
bool JSAudioNodeCustomSource::JSSetter_position(JSContext *cx, JS::MutableHandleValue vp) { if (vp.isNumber()) { this->getNode<AudioSourceCustom>()->seek(vp.toNumber()); } return true; }