Forum > Packages and Libraries

Lazarus/ACS and playing mp3 files

(1/1)

vercetti:
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:
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

serbod:

--- Quote from: vercetti on August 14, 2024, 01:27:10 pm ---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).

--- End quote ---

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).


--- Quote from: vercetti on August 14, 2024, 01:27:10 pm ---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.

--- End quote ---

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.

Navigation

[0] Message Index

Go to full version