Recent

Author Topic: Output Sound  (Read 8809 times)

Noval

  • Newbie
  • Posts: 3
Output Sound
« on: April 22, 2017, 04:01:46 pm »
I'm trying to create a metronome in Lazarus version 1.6.4 on Windows 10. I have encountered the problem that Lazarus does not provide an audio solution. I was wondering if anyone could help me in getting sound out of Lazarus.
Kind regards.

wp

  • Hero Member
  • *****
  • Posts: 10281
Re: Output Sound
« Reply #1 on: April 22, 2017, 04:18:25 pm »
There's a nice component playsoundpackage in Lazarus CCR which plays a sound file in Windows and Linux.

Handoko

  • Hero Member
  • *****
  • Posts: 4719
  • My goal: build my own game engine using Lazarus
Re: Output Sound
« Reply #2 on: April 22, 2017, 04:53:10 pm »
Hello Noval.

There are many ways to play sound in Lazarus:
http://wiki.freepascal.org/Multimedia_Programming

Pick one you feel convenient. If you get trouble, people here are nice to help.

Noval

  • Newbie
  • Posts: 3
Re: Output Sound
« Reply #3 on: April 22, 2017, 05:40:44 pm »
I have so far tried the playsoundpackage, Audorra, ACS and Bass, but have failed installing them/ getting them to work. The playsoundpackage and ACS brought up errors whilst compiling.

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 1149
Re: Output Sound
« Reply #4 on: April 22, 2017, 05:53:52 pm »
hello,
another way to make a metronom with lazarus is the tonegrid project.

Friendly, J.P
« Last Edit: April 22, 2017, 05:59:46 pm by Jurassic Pork »
Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

Fred vS

  • Hero Member
  • *****
  • Posts: 2836
    • StrumPract is the musicians best friend
Re: Output Sound
« Reply #5 on: April 22, 2017, 05:56:55 pm »
I have so far tried the playsoundpackage, Audorra, ACS and Bass, but have failed installing them/ getting them to work. The playsoundpackage and ACS brought up errors whilst compiling.

You may try uos.
https://github.com/fredvs/uos
There is SimpleDrums demo in /uos/examples/
You do not need to install anything, just compile and run.

Fre;D
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

Handoko

  • Hero Member
  • *****
  • Posts: 4719
  • My goal: build my own game engine using Lazarus
Re: Output Sound
« Reply #6 on: April 22, 2017, 06:00:44 pm »
Also, try this video tutorial:
https://www.youtube.com/watch?v=SkhV7FuUpI4

Noval

  • Newbie
  • Posts: 3
Re: Output Sound
« Reply #7 on: April 30, 2017, 10:21:14 pm »
Alright, thanks for all the suggestions, the video suited my needs perfectly, so that's great.
Cheers!

 

TinyPortal © 2005-2018