Recent

Author Topic: Lazarus/ACS and playing mp3 files  (Read 627 times)

vercetti

  • New member
  • *
  • Posts: 7
Lazarus/ACS and playing mp3 files
« on: August 14, 2024, 01:27:10 pm »
Hi guys. Need your advice by work with this package in lazarus.

I downloaded this ACS 3.0.3 latest release version and install it on the latest versions of Lazarus (Version 3.4 for Windows 64 bit and for Debian 64 bit).

Windows:
Trying to play mp3 file in included demo project - player2. AudioOut1.DriverName has only one possible to select property - Wavemapper. It works fine for wav files.
For playing mp3 files suggest i should use this unit:
  {$IFDEF WINDOWS}
  //,ACS_DXAudio  //DirectSound Driver
  {$ELSE}
 Having uncommented this unit and adding laz_acs_directx in dependencies in project inspector i've get error with dependencies of package laz_acs_directx 3.0.3 with package pl_directx. I dont't know where can i get this package(pl_directx).

Linux Ubuntu:
There is a two variant of playing files with Alsa Driver and AO Live Driver. Both of them perfect works with wav files in demo project player2. When i trying to open mp3 files, i've get error 'External SIGSEGV'.

No one demo project work with mp3 files for me. What i'm doing wrong ? Maybe anyone has simple working demo project with playing mp3 with ACS.

 

cdbc

  • Hero Member
  • *****
  • Posts: 1496
    • http://www.cdbc.dk
Re: Lazarus/ACS and playing mp3 files
« Reply #1 on: August 15, 2024, 12:16:31 am »
Hi
1) Q= "pl_directx", A= meThinks this is a (P)ilot(L)ogic unit, i.e.: CodeTyphon.
    Go ask them about it, not us here in the Lazarus forum!
2) Q= "No one demo project work with mp3 files for me...", A= If you read the
    source of the component(s), you'll see that the mp3-side of things is limited
    in its implementation, only 128 kbit, the rest you'll have to figure out for
    yourself. Also the import-unit of e.g.: libLame is not fully implemented...
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

 

TinyPortal © 2005-2018