Recent

Author Topic: TrAudioPlayer - Audio Component for Lazarus  (Read 526 times)

Guva

  • Full Member
  • ***
  • Posts: 204
  • 🌈 ZX-Spectrum !!!
TrAudioPlayer - Audio Component for Lazarus
« on: November 01, 2025, 04:30:00 pm »
TrAudioPlayer - Audio Component for Lazarus

https://github.com/GuvaCode/TrAudioPlayer
Universal audio playback component built on rAudio (Raylib backend) with multi-format support and extensible interface architecture.

Key Features
  • 🎵 Multi-format: MP3, WAV, QOA via rAudio + ZxTune, VGMPlay, LibXmp, WavPack, LibSndFile
  • 🎛️ Band EQ: Professional equalizer (all players EXCEPT all players EXCEPT default player(rAudio) )
  • 🔧 Extensible: Add custom players via IMusicPlayer interface
  • 🔄 Auto-conversion: 24-bit → 16-bit for compatibility
  • 📱 Cross-platform: Windows, Linux

Supported Formats

BackendFormatsEqualizer
rAudio (Default)MP3, WAV, QOA, OGG, FLAC❌ Not supported
ZxTuneZX Spectrum, Amiga, Atari✅ Supported
VGMPlayVGM✅ Supported
OpenMPT  LibXmpMOD, XM, IT, S3M✅ Supported
WavPackWV (lossless)✅ Supported
LibSndFile40+ formats incl. AIFF, AU✅ Supported

Important Limitations
  • 🚫 Single instance: Only one player per application
  • 🎚️ EQ restrictions: Works with ALL players EXCEPT DefaultPlayer
  • 💽 Bit depth: 24-bit files auto-converted to 16-bit (quality loss)

Band Equalizer Frequencies

BandFrequencyControl Range
032 Hz-12dB to +12dB
164 Hz-12dB to +12dB
2125 Hz-12dB to +12dB
3250 Hz-12dB to +12dB
4500 Hz-12dB to +12dB
51 kHz-12dB to +12dB
62 kHz-12dB to +12dB
74 kHz-12dB to +12dB
88 kHz-12dB to +12dB
916 kHz-12dB to +12dB

Many thanks to the users  @Gigatron , @Fred vS, @TRon
« Last Edit: November 02, 2025, 06:54:07 pm by Guva »

AlexTP

  • Hero Member
  • *****
  • Posts: 2671
    • UVviewsoft
Re: TrAudioPlayer - Audio Component for Lazarus
« Reply #1 on: November 01, 2025, 06:56:32 pm »
good work, thanks!

I wonder will component appear, to support FFMPEG engine video playback in Laz... for Delphi such a component exists. it is shareware, about 100$.

Guva

  • Full Member
  • ***
  • Posts: 204
  • 🌈 ZX-Spectrum !!!
Re: TrAudioPlayer - Audio Component for Lazarus
« Reply #2 on: November 02, 2025, 06:52:19 pm »
Addressed Windows-specific issues to ensure correct operation.
The initial implementation was developed and tested on a Linux environment, and these fixes resolve the problems discovered during Windows testing.

  • Fixed libvgmplay for Windows, no longer requires the zlib library.
  • Fixes for correct operation in Windows.
  • Removed OpenMPT as some cross-compilation issues with the library have not yet been resolved.
  • Added libXmp as a replacement for OpenMPT.

Gigatron

  • Sr. Member
  • ****
  • Posts: 367
  • Amiga Rulez !!
    • Gigatron Shader Network Demo
Re: TrAudioPlayer - Audio Component for Lazarus
« Reply #3 on: November 02, 2025, 10:05:31 pm »
Very good job @guva, Thank you very much.
Coding faster than Light !

 

TinyPortal © 2005-2018