mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
examples/audio: Change the Ogg file (#270)
This commit is contained in:
parent
411721a4da
commit
b3bd0d8596
BIN
examples/_resources/audio/game.ogg
Normal file
BIN
examples/_resources/audio/game.ogg
Normal file
Binary file not shown.
Binary file not shown.
@ -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
|
||||
|
||||
```
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user