Recent

Author Topic: Play mp3 file in lazarus  (Read 9816 times)

m4u_hoahoctro

  • Full Member
  • ***
  • Posts: 160
Play mp3 file in lazarus
« on: August 04, 2013, 01:12:27 pm »
Hi all
I am a newbie
I read some articles about how to play mp3 file with audio libs as uos, omega, acs,.... I also downloaded them to my computer, but now i don't know how to use it.
Please help me
Thanks!

User137

  • Hero Member
  • *****
  • Posts: 1791
    • Nxpascal home
Re: Play mp3 file in lazarus
« Reply #1 on: August 04, 2013, 01:32:09 pm »
Aren't the libraries coming with demos, showing you how to use them? Some form of documentation also.

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Play mp3 file in lazarus
« Reply #2 on: August 04, 2013, 01:59:19 pm »
By the way, nobody can help if you cannot specify what is wrong exactly.

Try giving more information; see http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 1290
Re: Play mp3 file in lazarus
« Reply #3 on: August 04, 2013, 04:24:59 pm »
hello,
if you have vlc installed on your computer, you can use the api interface libvlc with paslibvlc  here.
there is a lazarus package PasLibVlcPlayer.lpk and a demo to play sound file from a form menu
( DemoPasLibVlc ) . Of course can play mp3.

Friendly, J.P
Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

DJMaster

  • New Member
  • *
  • Posts: 44
    • DJMaster on GitHub
Re: Play mp3 file in lazarus
« Reply #4 on: September 09, 2016, 03:08:08 pm »
Take a look at the following fresh new bindings:

mpg123: https://github.com/DJMaster/mpg123-fpc
PortAudio: https://github.com/DJMaster/portaudio-fpc

Strongly tested under Windows. Linux and other OSs will be available soon.

 

TinyPortal © 2005-2018