Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/unstable' into gfx-rdp
Browse files Browse the repository at this point in the history
  • Loading branch information
rasky committed Aug 29, 2023
2 parents eaf833c + 8af2244 commit a75af68
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/brew-volley/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
Binary file added examples/brew-volley/assets/autang.xm
Binary file not shown.
12 changes: 6 additions & 6 deletions examples/brew-volley/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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");

Expand Down

0 comments on commit a75af68

Please sign in to comment.