examples/audio: Change the Ogg file (#270)

This commit is contained in:
Hajime Hoshi 2016-11-26 03:48:54 +09:00
parent 411721a4da
commit b3bd0d8596
4 changed files with 10 additions and 2 deletions

Binary file not shown.

Binary file not shown.

View File

@ -9,6 +9,14 @@ Recorded by Mike Koenig
Attribution 3.0: https://creativecommons.org/licenses/by/3.0/
```
## game.ogg
```
http://mart.kitunebi.com/music_act.html
Harpie's Feather (ハルピュイアの羽) by Napi
```
## ragtime.ogg
```

View File

@ -244,11 +244,11 @@ func main() {
if err != nil {
log.Fatal(err)
}
oggF, err := ebitenutil.OpenFile("_resources/audio/ragtime.ogg")
oggF, err := ebitenutil.OpenFile("_resources/audio/game.ogg")
if err != nil {
log.Fatal(err)
}
const sampleRate = 22050
const sampleRate = 44100
const bytesPerSample = 4 // TODO: This should be defined in audio package
audioContext, err = audio.NewContext(sampleRate)
if err != nil {