summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
author Justin Kerk <dopefishjustin@gmail.com>2016-02-21 23:03:38 -0800
committer Justin Kerk <dopefishjustin@gmail.com>2016-02-21 23:03:38 -0800
commit83abe3fa3da43d057d54e5aa22ead5ca2847ad66 (patch)
treeec6fdfd870dbee4420f4bde734349adc22debeec /src
parent8f4a353b4114aa129664def6d671934c72dec48b (diff)
Emscripten cleanup (nw)
Diffstat (limited to 'src')
-rw-r--r--src/osd/modules/sound/js_sound.js24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/osd/modules/sound/js_sound.js b/src/osd/modules/sound/js_sound.js
index b06cbb44365..90756018a05 100644
--- a/src/osd/modules/sound/js_sound.js
+++ b/src/osd/modules/sound/js_sound.js
@@ -185,18 +185,18 @@ function get_context() {
};
function sample_count() {
- //TODO get someone to call this from the emulator,
- //so the emulator can do proper audio buffering by
- //knowing how many samples are left:
- if (!context) {
- //Use impossible value as an error code:
- return -1;
- }
- var count = rear - start;
- if (start > rear) {
- count += bufferSize;
- }
- return count;
+ //TODO get someone to call this from the emulator,
+ //so the emulator can do proper audio buffering by
+ //knowing how many samples are left:
+ if (!context) {
+ //Use impossible value as an error code:
+ return -1;
+ }
+ var count = rear - start;
+ if (start > rear) {
+ count += bufferSize;
+ }
+ return count;
}
return {