Recent

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

vercetti

  • New Member
  • *
  • Posts: 12
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: 2464
    • 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 -> KDE6 -> FPC 3.2.2 -> Lazarus 4.0 up until Jan 2025 from then on it's both above &: KDE6/QT6 -> FPC 3.3.1 -> Lazarus 4.99

serbod

  • Full Member
  • ***
  • Posts: 145
Re: Lazarus/ACS and playing mp3 files
« Reply #2 on: September 30, 2024, 11:42:07 am »
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).

AudioOut driver responsible for output raw sound samples to sound card or file. DirectSound do same as WaveMapper, but slightly faster.

pl_Win_DirectX package can be found in OPM (Online Package Manager).

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.

Looks like some trouble decoding MP3 file with built-in decoder. Give me link to your mp3 file example (preferably with new github issue), I try to figure out what wrong.

Also, please, check latest code from Github, maybe your problem already fixed.
« Last Edit: September 30, 2024, 11:44:44 am by serbod »

 

TinyPortal © 2005-2018