Recent

Author Topic: Tip: Lazarus and BASS, play audio on Linux and Windows  (Read 17795 times)


Joe

  • New Member
  • *
  • Posts: 24
Re: Tip: Lazarus and BASS, play audio on Linux and Windows
« Reply #1 on: January 05, 2013, 03:43:28 am »
Both links are broken :-(

Silvio Clécio

  • Guest
Re: Tip: Lazarus and BASS, play audio on Linux and Windows
« Reply #2 on: January 05, 2013, 03:53:00 am »
Download it via SVN friend:

http://code.google.com/p/lazarus-br/

User137

  • Hero Member
  • *****
  • Posts: 1791
    • Nxpascal home
Re: Tip: Lazarus and BASS, play audio on Linux and Windows
« Reply #3 on: January 05, 2013, 11:29:05 am »
As far as i know, the official BASS delphi (pascal) header is compatible with Lazarus. It works fine with my projects, but then i don't use Linux but Windows 7.
http://www.un4seen.com/
« Last Edit: January 05, 2013, 11:31:32 am by User137 »

Fred vS

  • Hero Member
  • *****
  • Posts: 3836
    • StrumPract is the musicians best friend
Re: Tip: Lazarus and BASS, play audio on Linux and Windows
« Reply #4 on: January 23, 2013, 07:37:02 pm »
Hello everybody.

Here in attachment the Lazarus header for Bass.

Working for Windows 32/64, Linux 32/64 and Mac Osx (other system have not try).

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

Zittergie

  • Full Member
  • ***
  • Posts: 114
    • XiX Music Player
Re: Tip: Lazarus and BASS, play audio on Linux and Windows
« Reply #5 on: January 23, 2013, 09:17:01 pm »
It does also work on ARM Linux.  Tried it on Raspberry Pi.
Be the difference that makes a difference

User137

  • Hero Member
  • *****
  • Posts: 1791
    • Nxpascal home
Re: Tip: Lazarus and BASS, play audio on Linux and Windows
« Reply #6 on: January 23, 2013, 09:47:19 pm »
Here in attachment the Lazarus header for Bass.
I already gave link to the official pascal header in post before yours... If for some reason it wouldn't work, let us know. We can contact the developer for any errors, he has been willing to change those in the past.

Zittergie

  • Full Member
  • ***
  • Posts: 114
    • XiX Music Player
Re: Tip: Lazarus and BASS, play audio on Linux and Windows
« Reply #7 on: January 23, 2013, 10:52:50 pm »
The attached file (from Fred vS) is the dynamic loading of the BASS libraries.

On the official site, the dynamic loader is only for Delphi (windows).  Would indeed be nice if the developer would include a pascal header that is compatible with lazarus.
Be the difference that makes a difference

User137

  • Hero Member
  • *****
  • Posts: 1791
    • Nxpascal home
Re: Tip: Lazarus and BASS, play audio on Linux and Windows
« Reply #8 on: January 23, 2013, 11:45:49 pm »
On the official site, the dynamic loader is only for Delphi (windows).
It is not Delphi only... I use it on nxPascal, crossplatform and compilable on Delphi and Lazarus. Example of 3D sounds with it here: http://www.youtube.com/watch?v=IKoE-JL7OXg
Compiled on Lazarus, using the official header from un4seen.

CaptBill

  • Sr. Member
  • ****
  • Posts: 435
Re: Tip: Lazarus and BASS, play audio on Linux and Windows
« Reply #9 on: January 24, 2013, 01:21:22 am »
BASS looks like the best all-around audio library. Very active/ongoing project. The forum support looks to be excellent even for pascal issues. Users seem very happy with it, and it seems to score high all around.

There is or was a BASS wrapper component in the GLScene library. Don't see it in the newest version of GLScene though.

Zittergie

  • Full Member
  • ***
  • Posts: 114
    • XiX Music Player
Re: Tip: Lazarus and BASS, play audio on Linux and Windows
« Reply #10 on: January 24, 2013, 09:20:25 am »
I Replaced 'bass.pas' with 'lazdynamic_bass.pas' and in the units I did the same.

and now I get the following error:
Code: [Select]
hoofd.pas(5332,25) Error: Incompatible type for arg no. 1: Got "<procedure variable type of function:DWord;CDecl>", expected "QWord"
on

Code: [Select]
if (HI(BASS_GetVersion) <> BASSVERSION) then ShowMessage('An incorrect version of the BASS Library was loaded'); 
Any ideas?  It worked fine with 'bass.pas'
Be the difference that makes a difference

Dibo

  • Hero Member
  • *****
  • Posts: 1057
Re: Tip: Lazarus and BASS, play audio on Linux and Windows
« Reply #11 on: January 24, 2013, 09:57:37 am »
I have also pascal headers for dynamic bass api converted from some delphi project (windows). See attachment.
I have tested it on Linux (32 and 64 bit) and windows 32 bit. Free Pascal 2.7.1

 

TinyPortal © 2005-2018