19 Jun '13 - 13:00 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: Bass for Lazarus under linux?  (Read 385 times)
xantippe
Posts: 6


« on: 5 Sep '12 - 07:08 »
Reply with quoteQuote

In Holland magazine C't started (early this year) a free Pascal/Lazarus course for beginners. I'm a beginner (again).

One of the most challenging subjects was a program showing how you can show and listen to a nightingale. The sound came from a .wav file.
The example has been set up for a Windows environment using the MMsystem library.

My question is the following:

I work under Linux Mint 13 (Maya) version Mate 32 bit. Up to now I did not find an alternative for the MMsystem. MMsystem works only under Windows.

More people advised me to use the BASS library. But for me  BAS library is very detailed and I have to translate it to the Lazarus environment. Can somebody help me with a simple start to learn the library. Beginning with a replacement for MMsystem for Lazarus/Linux?
Just to play the .wav file. I like to use that as a start in making use of the BASS library for larger projects later under Lazarus/Linux.

Thies;]
Logged
Chris
Posts: 1507


« Reply #1 on: 5 Sep '12 - 08:41 »
Reply with quoteQuote

Hi just take a look into the delphi examples.
Do want to build a console Program or a Gui Program?
Bass is very easy from the calls.The Delphi Header in the Bass Packages will also work under Lazarus.
Chris
 
Logged
xantippe
Posts: 6


« Reply #2 on: 5 Sep '12 - 10:34 »
Reply with quoteQuote

Thanks Chris,

It is a gui program.
I have the complete program in the zipfile Nightingale_Lazarus.zip. It is 87MB.
Can I attach that to a reply to you?
There you can see how they use MMsystem with
sndPlaySound('..\wav\Nightingale_song.wav', SND_FILENAME or SND_ASYNC);
Typically a Windows environment, not suitable for Linux.

Thies
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines