Audio - cwtickle/danoniplus-docs GitHub Wiki
English | Japanese
| < Local storage specification | Audio Specification | Velocity change & Motions > |
Audio Specification
- Sound playback in Dancing Onigiri "CW Edition" uses Web Audio API as much as possible to minimize sound playback delay. However, there are cases where the Web Audio API specification does not allow for this. HTML Audio elements are used in some cases.
Patterns that support Web Audio API
- :heavy_check_mark: supported / :x: unsupported (Substitute with HTML Audio)
- To reduce playback delay both locally and remotely, it is faster to encode the music data in base64.
- js, txt format (with encoding) is the data encoded with the music data.
the Dan-Oni-Js music data conversion tool can create text data encoded with music files.
mp3, ogg format | js, txt format (with encoding) | |
---|---|---|
Local file (How to open html directly) | :x: | :heavy_check_mark: |
Local server (How to set up a server using Xampp) | :heavy_check_mark: | :heavy_check_mark: |
Remote server (Uploaded and published on the Web) | :heavy_check_mark: | :heavy_check_mark: |
Limitations when using the Audio element in HTML
-
HTML Audio is more limited in functionality than the Web Audio API.
-
:heavy_check_mark: No issue / :warning: Some functions not available / :x: Not available
Web Audio API | HTML Audio | |
---|---|---|
Displacement of chart position due to fade-in | :heavy_check_mark:No misalignment | :warning:May be shifted depending on the sound source |
Volume setting | :heavy_check_mark:No issue | :heavy_check_mark: (Windows) No issue:x: (Mac / iPad) Always 100% |
Fade-in volume | :heavy_check_mark:No issue | :heavy_check_mark: (Windows) No issue:x: (Mac / iPad) No fade-in |
Fade-out volume | :heavy_check_mark:No issue | :heavy_check_mark: (Windows) No issue:x: (Mac / iPad) No fade-out |
Decimal Adjustment | :heavy_check_mark:valid | :x:invalid |
Differences in how to start playing on iOS
- In the case of iOS, it is not possible to automatically play a music without user operation. For this reason, a start confirmation button is added just before the start only for iOS.
| < Local storage specification | Audio Specification | Velocity change & Motions > |