Merge lp:~ken-vandine/dropping-letters/sound into lp:dropping-letters

Proposed by Ken VanDine
Status: Merged
Approved by: Alan Pope 🍺🐧🐱 πŸ¦„
Approved revision: 28
Merged at revision: 28
Proposed branch: lp:~ken-vandine/dropping-letters/sound
Merge into: lp:dropping-letters
Diff against target: 435 lines (+254/-69)
4 files modified
audio-volume-high-symbolic.svg (+109/-28)
audio-volume-muted-symbolic.svg (+112/-29)
debian/changelog (+2/-1)
dropping-letters.qml (+31/-11)
To merge this branch: bzr merge lp:~ken-vandine/dropping-letters/sound
Reviewer Review Type Date Requested Status
Alan Pope 🍺🐧🐱 πŸ¦„ (community) Approve
Review via email: mp+162783@code.launchpad.net

Commit message

Updated string on toolbar to Sound, it's more appropriate than Volume. Darkened
the sound icon a bit to make it easier to see on the toolbar.

Description of the change

Updated string on toolbar to Sound, it's more appropriate than Volume. Darkened
the sound icon a bit to make it easier to see on the toolbar.

To post a comment you must log in.
Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) wrote :

Looks good.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'audio-volume-high-symbolic.svg'
2--- audio-volume-high-symbolic.svg 2013-01-22 19:16:44 +0000
3+++ audio-volume-high-symbolic.svg 2013-05-07 17:55:30 +0000
4@@ -1,31 +1,112 @@
5 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
6 <!-- Created with Inkscape (http://www.inkscape.org/) -->
7-<svg id="svg7384" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" height="16" width="16" version="1.1" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/">
8- <title id="title9167">Gnome Symbolic Icon Theme</title>
9- <metadata id="metadata90">
10- <rdf:RDF>
11- <cc:Work rdf:about="">
12- <dc:format>image/svg+xml</dc:format>
13- <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
14- <dc:title>Gnome Symbolic Icon Theme</dc:title>
15- </cc:Work>
16- </rdf:RDF>
17- </metadata>
18- <defs id="defs7386">
19- <clipPath id="clipPath6279-3">
20- <rect id="rect6281-9" style="color:#bebebe;fill:#bebebe" height="6.375" width="3.825" y="220.75" x="26.85"/>
21- </clipPath>
22- <clipPath id="clipPath6265-334">
23- <rect id="rect6267-61" style="color:#bebebe;fill:#bebebe" height="5.2159" width="2.8977" y="221.33" x="26.966"/>
24- </clipPath>
25- <clipPath id="clipPath6259-5">
26- <rect id="rect6261-61" style="color:#bebebe;fill:#bebebe" height="4.8735" width="1.8763" y="221.5" x="26.999"/>
27- </clipPath>
28- </defs>
29- <g id="layer9" transform="translate(-41 -197)">
30- <path id="path3718" style="block-progression:tb;text-indent:0;color:#000000;text-transform:none;fill:#bebebe" d="m26.938 220.41a1.2751 1.2751 0 0 0 -0.65625 2.1875c0.75756 0.75756 0.75756 1.9299 0 2.6875a1.2816 1.2816 0 1 0 1.8125 1.8125c1.732-1.732 1.732-4.5805 0-6.3125a1.2751 1.2751 0 0 0 -1.1562 -0.375z" clip-path="url(#clipPath6279-3)" transform="matrix(.78431 0 0 .78431 26.941 28.863)"/>
31- <path id="path3726" style="block-progression:tb;text-indent:0;color:#000000;text-transform:none;fill:#bebebe" d="m27.125 221.09a0.5796 0.5796 0 0 0 -0.34375 1c1.0233 1.0233 1.0233 2.6642 0 3.6875a0.5796 0.5796 0 1 0 0.8125 0.8125c1.4663-1.4663 1.4663-3.8462 0-5.3125a0.5796 0.5796 0 0 0 -0.46875 -0.1875z" clip-path="url(#clipPath6265-334)" transform="matrix(1.7255 0 0 1.7255 3.4708 -181.9)"/>
32- <path id="path3728" style="block-progression:tb;text-indent:0;color:#000000;text-transform:none;fill:#bebebe" d="m27.062 221.31a0.37504 0.37504 0 0 0 -0.125 0.625c1.1015 1.1015 1.1015 2.8985 0 4a0.37565 0.37565 0 1 0 0.53125 0.53125c1.3881-1.3881 1.3881-3.6744 0-5.0625a0.37504 0.37504 0 0 0 -0.40625 -0.0937z" clip-path="url(#clipPath6259-5)" transform="matrix(2.6667 0 0 2.6667 -20 -392.67)"/>
33- <path id="path5491" style="color:#bebebe;fill:#bebebe" d="m41 202h2.4844l2.9688-3 0.54687 0.0156v11l-0.4753 0.00083-3.04-3.02h-2.4844v-5z"/>
34- </g>
35+
36+<svg
37+ xmlns:dc="http://purl.org/dc/elements/1.1/"
38+ xmlns:cc="http://creativecommons.org/ns#"
39+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
40+ xmlns:svg="http://www.w3.org/2000/svg"
41+ xmlns="http://www.w3.org/2000/svg"
42+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
43+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
44+ id="svg7384"
45+ height="16"
46+ width="16"
47+ version="1.1"
48+ inkscape:version="0.48.4 r9939"
49+ sodipodi:docname="audio-volume-high-symbolic.svg">
50+ <sodipodi:namedview
51+ pagecolor="#ffffff"
52+ bordercolor="#666666"
53+ borderopacity="1"
54+ objecttolerance="10"
55+ gridtolerance="10"
56+ guidetolerance="10"
57+ inkscape:pageopacity="0"
58+ inkscape:pageshadow="2"
59+ inkscape:window-width="1623"
60+ inkscape:window-height="861"
61+ id="namedview17"
62+ showgrid="false"
63+ inkscape:zoom="14.75"
64+ inkscape:cx="8"
65+ inkscape:cy="8"
66+ inkscape:window-x="49"
67+ inkscape:window-y="24"
68+ inkscape:window-maximized="0"
69+ inkscape:current-layer="svg7384" />
70+ <title
71+ id="title9167">Gnome Symbolic Icon Theme</title>
72+ <metadata
73+ id="metadata90">
74+ <rdf:RDF>
75+ <cc:Work
76+ rdf:about="">
77+ <dc:format>image/svg+xml</dc:format>
78+ <dc:type
79+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
80+ <dc:title>Gnome Symbolic Icon Theme</dc:title>
81+ </cc:Work>
82+ </rdf:RDF>
83+ </metadata>
84+ <defs
85+ id="defs7386">
86+ <clipPath
87+ id="clipPath6279-3">
88+ <rect
89+ id="rect6281-9"
90+ style="color:#bebebe;fill:#bebebe"
91+ height="6.375"
92+ width="3.825"
93+ y="220.75"
94+ x="26.85" />
95+ </clipPath>
96+ <clipPath
97+ id="clipPath6265-334">
98+ <rect
99+ id="rect6267-61"
100+ style="color:#bebebe;fill:#bebebe"
101+ height="5.2159"
102+ width="2.8977"
103+ y="221.33"
104+ x="26.966" />
105+ </clipPath>
106+ <clipPath
107+ id="clipPath6259-5">
108+ <rect
109+ id="rect6261-61"
110+ style="color:#bebebe;fill:#bebebe"
111+ height="4.8735"
112+ width="1.8763"
113+ y="221.5"
114+ x="26.999" />
115+ </clipPath>
116+ </defs>
117+ <g
118+ id="layer9"
119+ transform="translate(-41 -197)"
120+ style="fill:#808080">
121+ <path
122+ id="path3718"
123+ style="block-progression:tb;text-indent:0;color:#000000;text-transform:none;fill:#808080"
124+ d="m26.938 220.41a1.2751 1.2751 0 0 0 -0.65625 2.1875c0.75756 0.75756 0.75756 1.9299 0 2.6875a1.2816 1.2816 0 1 0 1.8125 1.8125c1.732-1.732 1.732-4.5805 0-6.3125a1.2751 1.2751 0 0 0 -1.1562 -0.375z"
125+ clip-path="url(#clipPath6279-3)"
126+ transform="matrix(.78431 0 0 .78431 26.941 28.863)" />
127+ <path
128+ id="path3726"
129+ style="block-progression:tb;text-indent:0;color:#000000;text-transform:none;fill:#808080"
130+ d="m27.125 221.09a0.5796 0.5796 0 0 0 -0.34375 1c1.0233 1.0233 1.0233 2.6642 0 3.6875a0.5796 0.5796 0 1 0 0.8125 0.8125c1.4663-1.4663 1.4663-3.8462 0-5.3125a0.5796 0.5796 0 0 0 -0.46875 -0.1875z"
131+ clip-path="url(#clipPath6265-334)"
132+ transform="matrix(1.7255 0 0 1.7255 3.4708 -181.9)" />
133+ <path
134+ id="path3728"
135+ style="block-progression:tb;text-indent:0;color:#000000;text-transform:none;fill:#808080"
136+ d="m27.062 221.31a0.37504 0.37504 0 0 0 -0.125 0.625c1.1015 1.1015 1.1015 2.8985 0 4a0.37565 0.37565 0 1 0 0.53125 0.53125c1.3881-1.3881 1.3881-3.6744 0-5.0625a0.37504 0.37504 0 0 0 -0.40625 -0.0937z"
137+ clip-path="url(#clipPath6259-5)"
138+ transform="matrix(2.6667 0 0 2.6667 -20 -392.67)" />
139+ <path
140+ id="path5491"
141+ style="color:#bebebe;fill:#808080"
142+ d="m41 202h2.4844l2.9688-3 0.54687 0.0156v11l-0.4753 0.00083-3.04-3.02h-2.4844v-5z" />
143+ </g>
144 </svg>
145
146=== modified file 'audio-volume-muted-symbolic.svg'
147--- audio-volume-muted-symbolic.svg 2013-01-22 19:16:44 +0000
148+++ audio-volume-muted-symbolic.svg 2013-05-07 17:55:30 +0000
149@@ -1,32 +1,115 @@
150 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
151 <!-- Created with Inkscape (http://www.inkscape.org/) -->
152-<svg id="svg7384" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" height="16" width="16" version="1.1" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/">
153- <metadata id="metadata90">
154- <rdf:RDF>
155- <cc:Work rdf:about="">
156- <dc:format>image/svg+xml</dc:format>
157- <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
158- <dc:title>Gnome Symbolic Icon Theme</dc:title>
159- </cc:Work>
160- </rdf:RDF>
161- </metadata>
162- <title id="title9167">Gnome Symbolic Icon Theme</title>
163- <defs id="defs7386">
164- <clipPath id="clipPath6279-2-3" clipPathUnits="userSpaceOnUse">
165- <rect id="rect6281-5-3" style="color:#bebebe;fill:#bebebe" height="6.375" width="3.825" y="220.75" x="26.85"/>
166- </clipPath>
167- <clipPath id="clipPath3668" clipPathUnits="userSpaceOnUse">
168- <rect id="rect3670" style="color:#bebebe;fill:#bebebe" height="3.3729" width="1.8763" y="221.5" x="26.999"/>
169- </clipPath>
170- <clipPath id="clipPath3697" clipPathUnits="userSpaceOnUse">
171- <path id="path3699" style="color:#bebebe;fill:#bebebe" d="m26.966 221.33v5.2159h0.57955v-1.1591h2.3182v-4.0568h-2.8977z"/>
172- </clipPath>
173- </defs>
174- <g id="layer9" transform="translate(-101 -197)">
175- <path id="path3268" style="opacity:.35;color:#bebebe;fill:#bebebe" d="m101 202h2.4844l2.9688-3 0.54687 0.0156v11l-0.4753 0.00083-3.0403-3.0164h-2.4844v-5z"/>
176- <path id="path3272" style="opacity:.35;block-progression:tb;text-indent:0;color:#000000;text-transform:none;fill:#bebebe" d="m26.938 220.41a1.2751 1.2751 0 0 0 -0.65625 2.1875c0.75756 0.75756 0.75756 1.9299 0 2.6875a1.2816 1.2816 0 1 0 1.8125 1.8125c1.732-1.732 1.732-4.5805 0-6.3125a1.2751 1.2751 0 0 0 -1.1562 -0.375z" clip-path="url(#clipPath6279-2-3)" transform="matrix(.78431 0 0 .78431 86.941 28.863)"/>
177- <path id="path3274" style="opacity:.35;block-progression:tb;text-indent:0;color:#000000;text-transform:none;fill:#bebebe" d="m27.125 221.09a0.5796 0.5796 0 0 0 -0.34375 1c1.0233 1.0233 1.0233 2.6642 0 3.6875a0.5796 0.5796 0 1 0 0.8125 0.8125c1.4663-1.4663 1.4663-3.8462 0-5.3125a0.5796 0.5796 0 0 0 -0.46875 -0.1875z" clip-path="url(#clipPath3697)" transform="matrix(1.7255 0 0 1.7255 63.471 -181.9)"/>
178- <path id="path3276" style="opacity:.35;block-progression:tb;text-indent:0;color:#000000;text-transform:none;fill:#bebebe" d="m27.062 221.31a0.37504 0.37504 0 0 0 -0.125 0.625c1.1015 1.1015 1.1015 2.8985 0 4a0.37565 0.37565 0 1 0 0.53125 0.53125c1.3881-1.3881 1.3881-3.6744 0-5.0625a0.37504 0.37504 0 0 0 -0.40625 -0.0937z" clip-path="url(#clipPath3668)" transform="matrix(2.6667 0 0 2.6667 40 -392.67)"/>
179- <path id="path3761-2-3-5-4-8-9-8-0-1-7" style="color:#bebebe;fill:#bebebe" d="m112 208h1.375l1.125 1.0938 1.0938-1.0938h1.4062v1.4688l-1.0938 1.0625 1.0938 1.0625v1.4062h-1.4375l-1.0625-1.0625-1.0625 1.0625h-1.4375v-1.4062l1.0625-1.0625-1.0625-1.0625v-1.4688z"/>
180- </g>
181+
182+<svg
183+ xmlns:dc="http://purl.org/dc/elements/1.1/"
184+ xmlns:cc="http://creativecommons.org/ns#"
185+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
186+ xmlns:svg="http://www.w3.org/2000/svg"
187+ xmlns="http://www.w3.org/2000/svg"
188+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
189+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
190+ id="svg7384"
191+ height="16"
192+ width="16"
193+ version="1.1"
194+ inkscape:version="0.48.4 r9939"
195+ sodipodi:docname="audio-volume-muted-symbolic.svg">
196+ <sodipodi:namedview
197+ pagecolor="#ffffff"
198+ bordercolor="#666666"
199+ borderopacity="1"
200+ objecttolerance="10"
201+ gridtolerance="10"
202+ guidetolerance="10"
203+ inkscape:pageopacity="0"
204+ inkscape:pageshadow="2"
205+ inkscape:window-width="640"
206+ inkscape:window-height="480"
207+ id="namedview3834"
208+ showgrid="false"
209+ inkscape:zoom="14.75"
210+ inkscape:cx="8"
211+ inkscape:cy="8"
212+ inkscape:window-x="49"
213+ inkscape:window-y="24"
214+ inkscape:window-maximized="0"
215+ inkscape:current-layer="layer9" />
216+ <metadata
217+ id="metadata90">
218+ <rdf:RDF>
219+ <cc:Work
220+ rdf:about="">
221+ <dc:format>image/svg+xml</dc:format>
222+ <dc:type
223+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
224+ <dc:title>Gnome Symbolic Icon Theme</dc:title>
225+ </cc:Work>
226+ </rdf:RDF>
227+ </metadata>
228+ <title
229+ id="title9167">Gnome Symbolic Icon Theme</title>
230+ <defs
231+ id="defs7386">
232+ <clipPath
233+ id="clipPath6279-2-3"
234+ clipPathUnits="userSpaceOnUse">
235+ <rect
236+ id="rect6281-5-3"
237+ style="color:#bebebe;fill:#bebebe"
238+ height="6.375"
239+ width="3.825"
240+ y="220.75"
241+ x="26.85" />
242+ </clipPath>
243+ <clipPath
244+ id="clipPath3668"
245+ clipPathUnits="userSpaceOnUse">
246+ <rect
247+ id="rect3670"
248+ style="color:#bebebe;fill:#bebebe"
249+ height="3.3729"
250+ width="1.8763"
251+ y="221.5"
252+ x="26.999" />
253+ </clipPath>
254+ <clipPath
255+ id="clipPath3697"
256+ clipPathUnits="userSpaceOnUse">
257+ <path
258+ id="path3699"
259+ style="color:#bebebe;fill:#bebebe"
260+ d="m26.966 221.33v5.2159h0.57955v-1.1591h2.3182v-4.0568h-2.8977z" />
261+ </clipPath>
262+ </defs>
263+ <g
264+ id="layer9"
265+ transform="translate(-101 -197)">
266+ <path
267+ id="path3268"
268+ style="opacity:0.34999999999999998;color:#bebebe;fill:#4d4d4d"
269+ d="m101 202h2.4844l2.9688-3 0.54687 0.0156v11l-0.4753 0.00083-3.0403-3.0164h-2.4844v-5z" />
270+ <path
271+ id="path3272"
272+ style="opacity:0.34999999999999998;block-progression:tb;text-indent:0;color:#000000;text-transform:none;fill:#4d4d4d"
273+ d="m26.938 220.41a1.2751 1.2751 0 0 0 -0.65625 2.1875c0.75756 0.75756 0.75756 1.9299 0 2.6875a1.2816 1.2816 0 1 0 1.8125 1.8125c1.732-1.732 1.732-4.5805 0-6.3125a1.2751 1.2751 0 0 0 -1.1562 -0.375z"
274+ clip-path="url(#clipPath6279-2-3)"
275+ transform="matrix(.78431 0 0 .78431 86.941 28.863)" />
276+ <path
277+ id="path3274"
278+ style="opacity:0.34999999999999998;block-progression:tb;text-indent:0;color:#000000;text-transform:none;fill:#4d4d4d"
279+ d="m27.125 221.09a0.5796 0.5796 0 0 0 -0.34375 1c1.0233 1.0233 1.0233 2.6642 0 3.6875a0.5796 0.5796 0 1 0 0.8125 0.8125c1.4663-1.4663 1.4663-3.8462 0-5.3125a0.5796 0.5796 0 0 0 -0.46875 -0.1875z"
280+ clip-path="url(#clipPath3697)"
281+ transform="matrix(1.7255 0 0 1.7255 63.471 -181.9)" />
282+ <path
283+ id="path3276"
284+ style="opacity:0.34999999999999998;block-progression:tb;text-indent:0;color:#000000;text-transform:none;fill:#4d4d4d"
285+ d="m27.062 221.31a0.37504 0.37504 0 0 0 -0.125 0.625c1.1015 1.1015 1.1015 2.8985 0 4a0.37565 0.37565 0 1 0 0.53125 0.53125c1.3881-1.3881 1.3881-3.6744 0-5.0625a0.37504 0.37504 0 0 0 -0.40625 -0.0937z"
286+ clip-path="url(#clipPath3668)"
287+ transform="matrix(2.6667 0 0 2.6667 40 -392.67)" />
288+ <path
289+ id="path3761-2-3-5-4-8-9-8-0-1-7"
290+ style="color:#bebebe;fill:#4d4d4d"
291+ d="m112 208h1.375l1.125 1.0938 1.0938-1.0938h1.4062v1.4688l-1.0938 1.0625 1.0938 1.0625v1.4062h-1.4375l-1.0625-1.0625-1.0625 1.0625h-1.4375v-1.4062l1.0625-1.0625-1.0625-1.0625v-1.4688z" />
292+ </g>
293 </svg>
294
295=== modified file 'debian/changelog'
296--- debian/changelog 2013-05-07 05:05:47 +0000
297+++ debian/changelog 2013-05-07 17:55:30 +0000
298@@ -1,7 +1,8 @@
299-dropping-letters (0.1.1) UNRELEASED; urgency=low
300+dropping-letters (0.1.1) raring; urgency=low
301
302 * Use a toolbar for volume and new game instead of the small items on the
303 bottombar
304+ * disable all the audio playback code for now, it is broken on devices
305 * Add HUD support
306 * debian/control
307 - depend on qtdeclarative5-hud1.0
308
309=== modified file 'dropping-letters.qml'
310--- dropping-letters.qml 2013-05-07 05:09:41 +0000
311+++ dropping-letters.qml 2013-05-07 17:55:30 +0000
312@@ -27,8 +27,9 @@
313 Page {
314 tools: ToolbarActions {
315 Action {
316- text: i18n.tr("Volume")
317+ text: i18n.tr("Sound")
318 iconSource: (volume.audible ? "audio-volume-high-symbolic.svg" : "audio-volume-muted-symbolic.svg")
319+ visible: volume.supportsMedia
320 onTriggered: {
321 volume.audible = !volume.audible;
322 }
323@@ -47,6 +48,11 @@
324 property int frame: 0
325 property bool reverse: false
326 property bool audible: true
327+ // we are using this to disable audio playback, it is breaking
328+ // on devices. Set this to true when playback is fixed or
329+ // find a way to fail gracefully. When this can be enabled again,
330+ // be sure to uncomment all the Audio elements
331+ property bool supportsMedia: false
332 }
333
334 Flipable {
335@@ -264,44 +270,50 @@
336 }
337 }
338
339+ /* Uncomment this out when volume.supportsMedia can be set to true
340 Audio {
341 id: music
342 source: "Easy_Lemon_60_second.ogg"
343- autoPlay: true
344- onStopped: music.play()
345+ autoPlay: volume.supportsMedia
346+ onStopped: {
347+ if (volume.supportsMedia) {
348+ music.play();
349+ }
350+ }
351 muted: !volume.audible
352 }
353
354 Audio {
355 id: click
356 source: "407__tictacshutup__click-1-off-click.ogg"
357- autoLoad: true
358+ autoLoad: volume.supportsMedia
359 muted: !volume.audible
360 }
361
362 Audio {
363 id: success
364 source: "80921__justinbw__buttonchime02up.ogg"
365- autoLoad: true
366+ autoLoad: volume.supportsMedia
367 muted: !volume.audible
368 }
369
370 Audio {
371 id: failure
372 source: "106727__kantouth__cartoon-bing-low.ogg"
373- autoLoad: true
374+ autoLoad: volume.supportsMedia
375 muted: !volume.audible
376 }
377
378 Audio {
379 id: gameover
380 source: "45137__dj-chronos__dark-church-bell.ogg"
381- autoLoad: true
382+ autoLoad: volume.supportsMedia
383 onStopped: {
384 flipable.flipped = false
385 }
386 muted: !volume.audible
387 }
388+ */
389
390 Rectangle {
391 id: bottombar
392@@ -394,7 +406,9 @@
393 }
394 function processSuggestedWord() {
395 if (accum.isValid) {
396- success.play();
397+ if (volume.supportsMedia) {
398+ success.play();
399+ }
400 var thisscore = 0, wordlength = accum.text.length;
401 accum.text = "";
402
403@@ -408,7 +422,9 @@
404 scoredisplay.text = "" + (thisscore * wordlength);
405 showscoredisplay.start();
406 } else {
407- failure.play();
408+ if (volume.supportsMedia) {
409+ failure.play();
410+ }
411 accum.text = "";
412 main.selectedItems.forEach(function(b) { b.selected = false; })
413 main.selectedItems = [];
414@@ -479,7 +495,9 @@
415 lm.get(idx).letters.append({ letter: main.getRandomWeightedLetter() });
416 if (lm.get(idx).letters.count >= 10) {
417 droptimer.stop();
418- gameover.play();
419+ if (volume.supportsMedia) {
420+ gameover.play();
421+ }
422 var db = LocalStorage.openDatabaseSync("dropping-letters", "1.0", "Dropping Letters", 1000);
423 db.transaction(function(tx) {
424 tx.executeSql("insert into Scores values (?,?)", [main.score, 0]);
425@@ -558,7 +576,9 @@
426 if (!box.selected) {
427 box.selected = true;
428 accum.text += letter;
429- click.play();
430+ if (volume.supportsMedia) {
431+ click.play();
432+ }
433 main.selectedItems[main.selectedItems.length] = box;
434 } else {
435 if (box === main.selectedItems[main.selectedItems.length - 1]) {

Subscribers

People subscribed via source and target branches