Revision control
Copy as Markdown
/* -*- Mode: Java; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: nil; -*-
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
package org.mozilla.vrbrowser.audio;
public class VRAudioTheme implements AudioEngine.AudioTheme {
@Override
public String getPath(AudioEngine.Sound aSound) {
String name = filename(aSound);
if (name != null) {
return "sounds/" + name;
}
return null;
}
private String filename(AudioEngine.Sound aSound) {
switch (aSound) {
case CLICK: return "click.wav";
case BACK: return "back.wav";
case EXIT: return "exit.wav";
}
return null;
}
}