diff --git a/examples/brew-volley/README.md b/examples/brew-volley/README.md index cd009fc979..e39d943d0e 100755 --- a/examples/brew-volley/README.md +++ b/examples/brew-volley/README.md @@ -8,7 +8,7 @@ This example shows how one can easily build a simple game with unstable Libdrago # Assets attributions -Music: Be Chillin' by Alexander Nakarada ["(www.serpentsoundstudios.com)"](http://www.serpentsoundstudios.com) Licensed under ["Creative Commons: By Attribution 4.0 License"](http://creativecommons.org/licenses/by/4.0/) +Music: [Autang](https://modarchive.org/index.php?request=view_by_moduleid&query=167849) by JAM is licensed under Public Domain. Background: ["Coconut tree near shore within mountain range" by Elizeu Dias](https://unsplash.com/photos/RN6ts8IZ4_0) Licensed under Unsplash license. diff --git a/examples/brew-volley/assets/autang.xm b/examples/brew-volley/assets/autang.xm new file mode 100644 index 0000000000..bf1e74ae94 Binary files /dev/null and b/examples/brew-volley/assets/autang.xm differ diff --git a/examples/brew-volley/main.c b/examples/brew-volley/main.c index ee1d6c8126..16693116c6 100755 --- a/examples/brew-volley/main.c +++ b/examples/brew-volley/main.c @@ -7,9 +7,9 @@ static sprite_t *ball_sprite; static sprite_t *net_sprite; static rspq_block_t* background_block; +static xm64player_t sfx_music; static wav64_t sfx_hit; static wav64_t sfx_halt; -static wav64_t sfx_music; static wav64_t sfx_win; enum { @@ -466,16 +466,16 @@ int main() rdpq_init(); audio_init(44100, 4); - mixer_init(8); + mixer_init(20); wav64_open(&sfx_hit, "rom:/hit.wav64"); wav64_open(&sfx_halt, "rom:/halt.wav64"); wav64_open(&sfx_win, "rom:/win.wav64"); - wav64_open(&sfx_music, "rom:/music.wav64"); - wav64_set_loop(&sfx_music, true); - mixer_ch_set_vol(CHANNEL_MUSIC, 0.55f, 0.55f); - wav64_play(&sfx_music, CHANNEL_MUSIC); + xm64player_open(&sfx_music, "rom:/autang.xm64"); + xm64player_set_loop(&sfx_music, true); + xm64player_set_vol(&sfx_music, 0.55); + xm64player_play(&sfx_music, CHANNEL_MUSIC); background_sprite = sprite_load("rom:/background.sprite");