main/task_sound.c

branch
novnc
changeset 38
537ffe280775
parent 4
6d1f512cd074
child 42
c6a1a6ca5437
equal deleted inserted replaced
37:1b82a6d50a39 38:537ffe280775
102 if (uxBits & SOUND_STARTUP) { 102 if (uxBits & SOUND_STARTUP) {
103 BuzzerPlay(_sound_Startup); 103 BuzzerPlay(_sound_Startup);
104 xEventGroupClearBits(xEventGroupSound, SOUND_STARTUP); 104 xEventGroupClearBits(xEventGroupSound, SOUND_STARTUP);
105 } 105 }
106 if (uxBits & SOUND_PROMPT) { 106 if (uxBits & SOUND_PROMPT) {
107 VncSoundBell();
108 BuzzerPlay(_sound_Prompt); 107 BuzzerPlay(_sound_Prompt);
109 xEventGroupClearBits(xEventGroupSound, SOUND_PROMPT); 108 xEventGroupClearBits(xEventGroupSound, SOUND_PROMPT);
110 } 109 }
111 if (uxBits & SOUND_TEMPREACHED) { 110 if (uxBits & SOUND_TEMPREACHED) {
112 VncSoundBell();
113 BuzzerPlay(_sound_TempReached); 111 BuzzerPlay(_sound_TempReached);
114 VncSoundBell();
115 xEventGroupClearBits(xEventGroupSound, SOUND_TEMPREACHED); 112 xEventGroupClearBits(xEventGroupSound, SOUND_TEMPREACHED);
116 } 113 }
117 if (uxBits & SOUND_TIMEOUT) { 114 if (uxBits & SOUND_TIMEOUT) {
118 BuzzerPlay(_sound_TimeOut); 115 BuzzerPlay(_sound_TimeOut);
119 xEventGroupClearBits(xEventGroupSound, SOUND_TIMEOUT); 116 xEventGroupClearBits(xEventGroupSound, SOUND_TIMEOUT);
120 } 117 }
121 if (uxBits & SOUND_ADDHOP) { 118 if (uxBits & SOUND_ADDHOP) {
122 VncSoundBell();
123 VncSoundBell();
124 BuzzerPlay(_sound_AddHop); 119 BuzzerPlay(_sound_AddHop);
125 VncSoundBell();
126 VncSoundBell();
127 xEventGroupClearBits(xEventGroupSound, SOUND_ADDHOP); 120 xEventGroupClearBits(xEventGroupSound, SOUND_ADDHOP);
128 } 121 }
129 if (uxBits & SOUND_END) { 122 if (uxBits & SOUND_END) {
130 BuzzerPlay(_sound_End); 123 BuzzerPlay(_sound_End);
131 xEventGroupClearBits(xEventGroupSound, SOUND_END); 124 xEventGroupClearBits(xEventGroupSound, SOUND_END);
132 } 125 }
133 if (uxBits & SOUND_WARN) { 126 if (uxBits & SOUND_WARN) {
134 VncSoundBell();
135 BuzzerPlay(_sound_Warn); 127 BuzzerPlay(_sound_Warn);
136 xEventGroupClearBits(xEventGroupSound, SOUND_WARN); 128 xEventGroupClearBits(xEventGroupSound, SOUND_WARN);
137 } 129 }
138 130
139 vTaskDelay(10 / portTICK_PERIOD_MS); 131 vTaskDelay(10 / portTICK_PERIOD_MS);

mercurial