[CSM] Client Music [cmus]

Post Reply
User avatar
AntumDeluge
Member
Posts: 213
Joined: Sun Aug 07, 2016 05:42
GitHub: AntumDeluge
IRC: AntumDeluge
Contact:

[CSM] Client Music [cmus]

by AntumDeluge » Post

Description:

Simple client-side music player.

NOTE: Unfortunately, until Minetest supports media with client-side mods, only music provided by the server can be played.

Licensing: MIT

Usage:

Chat commands:

Code: Select all

.cmus <command> [<sound_file>]
	- Manage music.
	- commands:
		- play: Play a music file.
		- stop: Stop playing music.
	- sound_file: file basename to be played
Links:

User avatar
Lone_Wolf
Member
Posts: 2575
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

Re: [CSM] Client Music [cmus]

by Lone_Wolf » Post

Doesn't work if you put something in `Minetest/sounds/` and try to play it?
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

Hello_death
Member
Posts: 96
Joined: Mon Sep 13, 2021 07:33
GitHub: Hello-death
IRC: Hello-death
In-game: riptiderazor

Re: [CSM] Client Music [cmus]

by Hello_death » Post

Hello all

I have inserted a sound a mp3 file called 'sound' in the master directory but when i enter the command to play it i gat the error message 'failed to play file : sound' . i have checked evrything but all seems in order .

please help me out.
PLease fix mcl5 tridents :,,(

wsor4035
Member
Posts: 182
Joined: Sun Aug 11, 2019 21:23
GitHub: wsor4035
IRC: wsor
In-game: wsor

Re: [CSM] Client Music [cmus]

by wsor4035 » Post

Hello_death wrote:
Mon Dec 06, 2021 13:59
Hello all

I have inserted a sound a mp3 file called 'sound' in the master directory but when i enter the command to play it i gat the error message 'failed to play file : sound' . i have checked evrything but all seems in order .

please help me out.
minetest only supports .ogg audio format, not mp3
j5uBLfc6NxgersvVj5D5dIsiKDkoQb0o

Hello_death
Member
Posts: 96
Joined: Mon Sep 13, 2021 07:33
GitHub: Hello-death
IRC: Hello-death
In-game: riptiderazor

Re: [CSM] Client Music [cmus]

by Hello_death » Post

wsor4035 wrote:
Mon Dec 06, 2021 14:26
Hello_death wrote:
Mon Dec 06, 2021 13:59
Hello all

I have inserted a sound a mp3 file called 'sound' in the master directory but when i enter the command to play it i gat the error message 'failed to play file : sound' . i have checked evrything but all seems in order .

please help me out.
minetest only supports .ogg audio format, not mp3
I changed the file type but still doesnt work. it gives the same error message.
PLease fix mcl5 tridents :,,(

User avatar
Lone_Wolf
Member
Posts: 2575
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

Re: [CSM] Client Music [cmus]

by Lone_Wolf » Post

Hello_death wrote:
Tue Dec 07, 2021 03:33
wsor4035 wrote:
Mon Dec 06, 2021 14:26
Hello_death wrote:
Mon Dec 06, 2021 13:59
Hello all

I have inserted a sound a mp3 file called 'sound' in the master directory but when i enter the command to play it i gat the error message 'failed to play file : sound' . i have checked evrything but all seems in order .

please help me out.
minetest only supports .ogg audio format, not mp3
I changed the file type but still doesnt work. it gives the same error message.
You need to convert it (via Audacity or something) to a .ogg file, renaming it does nothing.
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

Hello_death
Member
Posts: 96
Joined: Mon Sep 13, 2021 07:33
GitHub: Hello-death
IRC: Hello-death
In-game: riptiderazor

Re: [CSM] Client Music [cmus]

by Hello_death » Post

k thank you.have converted it but it still doesnt play :(.
same error
PLease fix mcl5 tridents :,,(

User avatar
Lone_Wolf
Member
Posts: 2575
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

Re: [CSM] Client Music [cmus]

by Lone_Wolf » Post

Hello_death wrote:
Sat Dec 18, 2021 04:43
k thank you.have converted it but it still doesnt play :(.
same error
Did you put the music file in Minetest/sounds/ ?
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

Hello_death
Member
Posts: 96
Joined: Mon Sep 13, 2021 07:33
GitHub: Hello-death
IRC: Hello-death
In-game: riptiderazor

Re: [CSM] Client Music [cmus]

by Hello_death » Post

Lone_Wolf wrote:
Mon Dec 20, 2021 16:56
Hello_death wrote:
Sat Dec 18, 2021 04:43
k thank you.have converted it but it still doesnt play :(.
same error
Did you put the music file in Minetest/sounds/ ?
no and i cant find it cause im on ubuntu
will search and cappypast it there
i found the files env_sounds_lava.1.ogg along with 4 others in usr/share/minetest/games/minetest_game/mods/env_sound.
is it there?
if not pls tell me the path to the directory for ubuntu linux.
or is it in default/sounds?
i put it in default/sounds but it still doesnt play
PLease fix mcl5 tridents :,,(

User avatar
Lone_Wolf
Member
Posts: 2575
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

Re: [CSM] Client Music [cmus]

by Lone_Wolf » Post

Hello_death wrote:
Tue Dec 21, 2021 06:04
Lone_Wolf wrote:
Mon Dec 20, 2021 16:56
Hello_death wrote:
Sat Dec 18, 2021 04:43
k thank you.have converted it but it still doesnt play :(.
same error
Did you put the music file in Minetest/sounds/ ?
no and i cant find it cause im on ubuntu
will search and cappypast it there
i found the files env_sounds_lava.1.ogg along with 4 others in usr/share/minetest/games/minetest_game/mods/env_sound.
is it there?
if not pls tell me the path to the directory for ubuntu linux.
or is it in default/sounds?
i put it in default/sounds but it still doesnt play
Create a sounds folder in ~/.minetest/, it should look like ~/.minetest/sounds/
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests