Audio Player for Computercraft

Started by GroupXyz, Feb 04, 2024, 09:46 PM

Previous topic - Next topic

GroupXyz

Hello, here is my audioplayer script!

You will require a computer and a speaker placed next to it, then run this command:
pastebin get https://pastebin.com/5V2V95Xn audioplayer
Now run audioplayer and it will generate a folder called "sounds/" where you place your audiofiles.
After you added audiofiles (see below), audioplayer will list them and give you the option to play them.

Important:
To add new audiofiles, you have to convert them into DFPWM format which these websites do for example (please note, these websites are not mine and i am not responsible for changes with them):

https://music.madefor.cc/
https://remote.craftos-pc.cc/music/

Now copy the output link and do:
wget (link) (filename)
You can just move it into the sounds/ folder and it will be detected by the script when you start it.

Update-history:
2.0: Added repeat option
2.1: Added queue feature, overhauled info screen, added scrolling

Original version:
https://pastebin.com/q9M7z9nz

QuickMuffin8782

Quote from: GroupXyz on Feb 04, 2024, 09:46 PMImportant:
To add new audiofiles, you have to convert them into DFPWM format which this website does for example (please note, this website is not mine and i am not responsible for changes with it):

https://remote.craftos-pc.cc/music/

Pretty nice, however there is one website dedicated for converting. (It's open source though I've downloaded it via HTTTrack for offline use) It's located here if you are wondering.
"The Blue Blur" - Working on Net Star OS, a new frontier for Red Star OS 3.0
linktr.ee/quickmuffin8782

GroupXyz

Quote from: QuickMuffin8782 on Feb 11, 2024, 04:39 AMPretty nice, however there is one website dedicated for converting. (It's open source though I've downloaded it via HTTTrack for offline use) It's located here if you are wondering.

Thank you, i will include it

bish

Hi!

Is there anyway to " queue " songs up to play after eachother?

GroupXyz

Hello, there was none, but i implemented it, as well as some other quality changes, tell me if you like it or want something changed :)

bish

Hey again!

Whenever playing an audio file now it just plays a static type sound, when i type " queue 1 " as well it does nothing

bish

Quote from: bish on Dec 17, 2024, 10:21 AMHey again!

Whenever playing an audio file now it just plays a static type sound, when i type " queue 1 " as well it does nothing

So i got the audio to work again it was an error on my end but the queue doesnt seem to work

bish

Quote from: bish on Dec 17, 2024, 10:46 AM
Quote from: bish on Dec 17, 2024, 10:21 AMHey again!

Whenever playing an audio file now it just plays a static type sound, when i type " queue 1 " as well it does nothing

So i got the audio to work again it was an error on my end but the queue doesnt seem to work

i also just got the queue to work im a dumbass