Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@ Li-Ri Game

Official site : http://github.com/petitlapin/Li-Ri

Copyright (c) 2023
Copyright (c) 2023-2026
Johnny Jazeix <jazeix@gmail.com>: port to SDL2 + android + cmake

Copyright (c) 2026
Polishyk Mykyta "zabidentwfan@ukr.net" : musics ("menu.ogg", "ingame1.ogg")

Copyright (c) 2006
Dominique Roux-Serret: roux-serret@ifrance.com : design & programming & graphics & website.
Maf464 : site= http://maf464.free.fr : musics
Maf464 : site= http://maf464.free.fr : musics ("ingame1_legacy.xm", "ingame2_legacy.xm", "menu_legacy.mod")

Thanks to:
Christian H. and Adrian F. for the German correction.
Expand All @@ -25,4 +28,4 @@ F. Doruk "http://www.fisek.org.tr" for Turkish translation.
S. Etienne for the Hungarian translation.
W. Bas for Dutch translation.
An, Sanggap for the Korean version and translation.
M. Juhasz for the Hungarian corrections.
M. Juhasz for the Hungarian corrections.
6 changes: 5 additions & 1 deletion COPYING.Music
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
LICENSE FOR 'jeu1.xm', 'jeu2.xm' and 'menu.mod' musics in Sounds directory.
LICENSE FOR 'ingame1_legacy.xm', 'ingame2_legacy.xm' and 'menu_legacy.mod' musics in Sounds directory.

Copyright (c) 2006 - Maf464 - Charcosset B. - charcosset.b@free.fr
site= http://maf464.free.fr

LICENSE FOR 'menu.ogg' (Li-Ri main theme), 'ingame1.ogg' musics in Sounds directory.

Copyright (c) 2026 - ZABIDEN - Mykyta Polishyk - zabidentwfan@ukr.net


GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Expand Down
5 changes: 5 additions & 0 deletions NEWS.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---
Version: 3.1.7
Date: 2026-xx-xx
Description:
- New audio menu music created by zabidenhtf (Mykyta Polishyk)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this line fine for you for credits in the NEWS?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, sure 😄

---
Version: 3.1.6
Date: 2025-12-24
Description:
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,16 @@ Information on how to compile Li-Ri is available in the INSTALL file.

-------------

Copyright (c) 2023
Copyright (c) 2023-2026
Johnny Jazeix: port to SDL2 + android + cmake

Copyright (c) 2026
Polishyk Mykyta "zabidentwfan@ukr.net" : musics ("menu.ogg")

Copyright (c) 2006
Dominique Roux-Serret: design & programming & graphics & website.
Maf464: musics
Maf464: musics ("jeu1.xm", "jeu2.xm", "menu_legacy.mod")


[<img src="https://fdroid.gitlab.io/artwork/badge/get-it-on.png"
alt="Get it on F-Droid"
Expand Down
Binary file added Sounds/ingame1.mmpz
Binary file not shown.
Binary file added Sounds/ingame1.ogg
Binary file not shown.
File renamed without changes.
File renamed without changes.
Binary file added Sounds/menu.mmpz
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the one pushed is the one with the blank at the end, and not the updated one (infinite loop). Can you please double check and update it if needed?

Binary file not shown.
Binary file added Sounds/menu.ogg
Binary file not shown.
File renamed without changes.
4 changes: 4 additions & 0 deletions Sounds/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
To open mmpz file you have to install LMMS DAW
You can make it using "sudo apt-get install lmms" on debian linux
After you can just open it using double click
To generate the ogg in command line: `lmms render menu.mmpz -f ogg -b 128 -o menu2.ogg`
34 changes: 23 additions & 11 deletions src/audio.cc
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ bool Audio::Init()
{
char PathFile[512];

if (Mix_OpenAudio(22050, AUDIO_S16, 1, 1024)) {
if (Mix_OpenAudio(44100, AUDIO_S16, 1, 1024)) {
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION, "Enable to init Sound card: %s", SDL_GetError());
return false;
}
Expand Down Expand Up @@ -103,18 +103,14 @@ bool Audio::Init()
Utils::GetPath(PathFile);
Son[sLive] = Mix_LoadWAV(PathFile);

strcpy(PathFile, "Sounds/menu.mod");
Utils::GetPath(PathFile);
Music = Mix_LoadMUS(PathFile);

return true;
}

/*** Charge une music 0=menu 1,2,3,4 = game ***/
/**********************************************/
void Audio::LoadMusic(int Num)
{
char Provi[512] = "Sounds/jeu1.xm";
char Provi[512];

if (!N) {
return;
Expand All @@ -124,18 +120,34 @@ void Audio::LoadMusic(int Num)

if (Music) {
PauseMusic(true);
Mix_HaltMusic(); // Arrete la music
Mix_HaltMusic();
Mix_FreeMusic(Music);
Music = nullptr;
}

if (Num == 0) { // Si music du menu
strcpy(Provi, "Sounds/menu.mod");
if (Num == 0) { // menu music
switch (Pref.AudioTheme) {
case mMaf:
strcpy(Provi, "Sounds/menu_legacy.mod");
break;
case mZabiden:
strcpy(Provi, "Sounds/menu.ogg");
break;
}
Utils::GetPath(Provi);
Music = Mix_LoadMUS(Provi);
}
else {
Provi[10] = (char)(Num) + '0';
else { // in game music
switch (Pref.AudioTheme) {
case mMaf:
strcpy(Provi, "Sounds/ingame_legacy1.xm");
Provi[20] = (char)(Num) + '0';
break;
case mZabiden:
strcpy(Provi, "Sounds/ingame1.ogg");
Provi[13] = (char)(Num) + '0';
break;
}
Utils::GetPath(Provi);
Music = Mix_LoadMUS(Provi);
}
Expand Down
4 changes: 3 additions & 1 deletion src/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ int main(int narg, char *argv[])
exit(-1);
}

audio.PlayMusic();
// Start background music
audio.LoadMusic(0);

Mouse mouse { audio };
mouse.InitStart();

Expand Down
Loading
Loading