Recent

Author Topic: Native play MP3/WAV file, raspberry ZERO lite  (Read 2682 times)

pascalbythree

  • Sr. Member
  • ****
  • Posts: 256
Native play MP3/WAV file, raspberry ZERO lite
« on: February 17, 2023, 12:25:12 pm »
Does anyody know a extra component to natively play a WAV or MP3 file in the commandline from Rapios lite ?

ACS: Refuses to install, and old installed backups from me do not compile AcsConsolePlayer
UOS: console player only works on x64 Ubuntu 18, op RPIZERO to many problems with alsa and jack server
fpc-pulseaudio and PascalAudio: both refuses to install

Does anybody know another package to play WAV or MP3 files in the command line ? Without proccess execution ? on RPI ZERO ?

Greets, Wouter van Wegen

PS: I did ask this a couple of years ago, just seeing weather something did change.
« Last Edit: February 17, 2023, 12:44:31 pm by pascalbythree »

KodeZwerg

  • Hero Member
  • *****
  • Posts: 2065
  • Fifty shades of code.
    • Delphi & FreePascal
Re: Native play MP3/WAV file, raspberry ZERO lite
« Reply #1 on: February 17, 2023, 02:28:22 pm »
I am unaware of anything that work without execution.
« Last Edit: Tomorrow at 31:76:97 xm by KodeZwerg »

TRon

  • Hero Member
  • *****
  • Posts: 2513
Re: Native play MP3/WAV file, raspberry ZERO lite
« Reply #2 on: February 17, 2023, 03:12:44 pm »
.... from Rapios lite ?
rapios ?  (very strange search results popped up up  :) )

Only from the mention of RPI-lite i take it that was a typo and you meant raspios ?

There used to be a bass library for rpi (but I have no idea how well that works for a lite) i also have no idea if there is a Pascal header file for it.

hukka

  • New Member
  • *
  • Posts: 30
    • Github
Re: Native play MP3/WAV file, raspberry ZERO lite
« Reply #3 on: February 17, 2023, 03:20:09 pm »
I recommend BASS as mentioned above. It ships with Pascal headers.

Thaddy

  • Hero Member
  • *****
  • Posts: 14373
  • Sensorship about opinions does not belong here.
Re: Native play MP3/WAV file, raspberry ZERO lite
« Reply #4 on: February 17, 2023, 04:30:53 pm »
OpenAL works on RPi Zero. And comes with an example for wave play.
It is in the standard distribution.
Bass is a bit too heavy and has horrible delay, but easy to use.
Mp3 can be done with ffmpeg, but possibly OpenAL too.
Otherwise I have a native MP3 unit, but that is old (written in 2002) and may not work without adapting some code. (that's a unit that actually plays mp3's, not just returns header info. Haven't touch the code since I released it, not entirely mine)
« Last Edit: February 17, 2023, 04:41:21 pm by Thaddy »
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

Fred vS

  • Hero Member
  • *****
  • Posts: 3168
    • StrumPract is the musicians best friend
Re: Native play MP3/WAV file, raspberry ZERO lite
« Reply #5 on: February 17, 2023, 05:30:31 pm »
Bass is a bit too heavy and has horrible delay, but easy to use.

Bass is very good but closed source and free only for no commercial use.
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

Thaddy

  • Hero Member
  • *****
  • Posts: 14373
  • Sensorship about opinions does not belong here.
Re: Native play MP3/WAV file, raspberry ZERO lite
« Reply #6 on: February 17, 2023, 05:59:39 pm »
Bass is very good but closed source and free only for no commercial use.
Afaik it is not closed, but has a cumbersome licence. Anyway: question: Your library is really impressive, but can you specify delays? That is important for people writing recording software, like I did more than 20 years ago.
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

Fred vS

  • Hero Member
  • *****
  • Posts: 3168
    • StrumPract is the musicians best friend
Re: Native play MP3/WAV file, raspberry ZERO lite
« Reply #7 on: February 17, 2023, 06:11:01 pm »
[Bass]   Afaik it is not closed.
Only the demos are open-source, not the Bass library himself.

Anyway: question: Your library is really impressive, but can you specify delays?
Huh, sorry, not sure to understand.
Are you talking about uos?
If so, thanks for the compliment but what do you mean with "delays"?
Latency of direct-wire (input decoding and directly sent to output)?
« Last Edit: February 17, 2023, 06:31:25 pm by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

KodeZwerg

  • Hero Member
  • *****
  • Posts: 2065
  • Fifty shades of code.
    • Delphi & FreePascal
Re: Native play MP3/WAV file, raspberry ZERO lite
« Reply #8 on: February 17, 2023, 06:17:47 pm »
All above needs to execute something but OP wanted not to execute something, he/she wanted magic.
« Last Edit: Tomorrow at 31:76:97 xm by KodeZwerg »

Fred vS

  • Hero Member
  • *****
  • Posts: 3168
    • StrumPract is the musicians best friend
Re: Native play MP3/WAV file, raspberry ZERO lite
« Reply #9 on: February 17, 2023, 06:25:04 pm »
All above needs to execute something but OP wanted not to execute something, he/she wanted magic.
Ha, ok, then it is better to ask it to ChatGPT.  :-X
« Last Edit: February 17, 2023, 06:36:55 pm by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

 

TinyPortal © 2005-2018