Hi,
in the past I was used to take care about many things in device apps (not datafield!!!) for record session. One point was playing sounds if start/stop/lap session recordings.
On Venu 2 plus I'm surprized now. Start/stop/lap of session recordings are playing sounds automatically. Now two questions:
- Is it correct, that sonds are played automaticalle on start/stop/lap a session recording?
- How to mute? Some users do not want to hear sounds but vibe is sufficient
Following simple code. If sound is off, sound is played once. If sound is on, sound is doubled.
class BaseInputDelegate extends Ui.BehaviorDelegate { function initialize() { Ui.BehaviorDelegate.initialize(); } function onSelect() { if (session == null) { session = Record.createSession({:name=>"Running", :sport=>1, :subSport=>0}); playAtt(Att.TONE_START); } if (session.isRecording()) { session.stop(); playAtt(Att.TONE_STOP); } else { session.start(); playAtt(Att.TONE_START); } return true; } function onBack() { if (session != null) { if (session.isRecording()) { session.addLap(); playAtt(Att.TONE_LAP); } else { session.save(); playAtt(Att.TONE_STOP); Ui.popView(Ui.SLIDE_DOWN); } } return true; } function onMenu() { tone = !tone; } function playAtt(type) { if (Att has :playTone && tone == true) { Att.playTone(type); } } }