mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
doc: Explaing about audio syncing
This commit is contained in:
parent
bfb6a2bfe7
commit
8dda875c30
@ -20,7 +20,7 @@ Note: Gamepad is not available on Safari/Android/iOS. Keyboard is not available
|
||||
|
||||
* 2D Graphics (Geometry/Color matrix transformation, Various composition modes, Offscreen rendering, Fullscreen)
|
||||
* Input (Mouse, Keyboard, Gamepads, Touches)
|
||||
* Audio (MP3, Ogg/Vorbis, WAV, PCM)
|
||||
* Audio (MP3, Ogg/Vorbis, WAV, PCM, Syncing with game progress)
|
||||
|
||||
## Web Site
|
||||
|
||||
|
@ -51,7 +51,7 @@
|
||||
<dt>Input</dt>
|
||||
<dd>Mouse, Keyboard, Gamepads, Touches</dd>
|
||||
<dt>Audio</dt>
|
||||
<dd>MP3, Ogg/Vorbis, WAV, PCM</dd>
|
||||
<dd>MP3, Ogg/Vorbis, WAV, PCM, Syncing with game progress</dd>
|
||||
</dl>
|
||||
|
||||
<h2 id="examples">Examples</h2>
|
||||
|
@ -24,6 +24,8 @@
|
||||
// and you can play sound by calling Play function of players.
|
||||
// When multiple players play, mixing is automatically done.
|
||||
// Note that too many players may cause distortion.
|
||||
//
|
||||
// Ebiten's game progress always synchronizes with audio progress.
|
||||
package audio
|
||||
|
||||
import (
|
||||
|
@ -302,6 +302,7 @@ func main() {
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
musicPlayer, err = NewPlayer(audioContext)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
|
@ -51,7 +51,7 @@
|
||||
<dt>Input</dt>
|
||||
<dd>Mouse, Keyboard, Gamepads, Touches</dd>
|
||||
<dt>Audio</dt>
|
||||
<dd>MP3, Ogg/Vorbis, WAV, PCM</dd>
|
||||
<dd>MP3, Ogg/Vorbis, WAV, PCM, Syncing with game progress</dd>
|
||||
</dl>
|
||||
|
||||
<h2 id="examples">Examples</h2>
|
||||
|
Loading…
Reference in New Issue
Block a user