Skip to content

Commit a5d203d

Browse files
committed
Use CloudFront for sounds
1 parent 3321235 commit a5d203d

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

app/public/js/main.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,15 +148,15 @@ $(function(){
148148
fn = 'c00' + i;
149149
}
150150
celesta.push(new Howl({
151-
src : ['static/public/sounds/celesta/' + fn + '.ogg',
152-
'static/public/sounds/celesta/' + fn + '.mp3'],
151+
src : ['https://d1fz9d31zqor6x.cloudfront.net/sounds/celesta/' + fn + '.ogg',
152+
'https://d1fz9d31zqor6x.cloudfront.net/sounds/celesta/' + fn + '.mp3'],
153153
volume : 0.7,
154154
onload : sound_load(),
155155
buffer: true,
156156
}))
157157
clav.push(new Howl({
158-
src : ['static/public/sounds/clav/' + fn + '.ogg',
159-
'static/public/sounds/clav/' + fn + '.mp3'],
158+
src : ['https://d1fz9d31zqor6x.cloudfront.net/sounds/clav/' + fn + '.ogg',
159+
'https://d1fz9d31zqor6x.cloudfront.net/sounds/clav/' + fn + '.mp3'],
160160
volume : 0.4,
161161
onload : sound_load(),
162162
buffer: true,
@@ -165,8 +165,8 @@ $(function(){
165165

166166
for (var i = 1; i <= 3; i++) {
167167
swells.push(new Howl({
168-
src : ['static/public/sounds/swells/swell' + i + '.ogg',
169-
'static/public/sounds/swells/swell' + i + '.mp3'],
168+
src : ['https://d1fz9d31zqor6x.cloudfront.net/sounds/swells/swell' + i + '.ogg',
169+
'https://d1fz9d31zqor6x.cloudfront.net/sounds/swells/swell' + i + '.mp3'],
170170
volume : 1,
171171
onload : sound_load(),
172172
buffer: true,

0 commit comments

Comments
 (0)