Re: [Lazarus] Playing audio files - which package do you prefer?
Hi again, I found interesting page for Free Pascal and SDL: http://www.freepascal-meets-sdl.net/ I am testing SDL now, API is very simple and works amazing, but I am puzzled with dependencys. To compile my project (ubuntu linux) I must install libsdl1.2-dev, libsdl-mixer-dev (those librarys are obvious), but why libopenal-dev (I saw this as another lazarus audio component) and libsmpg-dev? How to distribute those librarys? On windows I can put it into application directory but how about linux? Does it also work? Regards -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Playing audio files - which package do you prefer?
On Sun, Jul 29, 2012 at 5:44 PM, Graeme Geldenhuys wrote: > SDL developed and used extensively by Loki Software. It was proof that > it works very well, and is a very capable DirectX alternative with the > bonus that it is cross platform and open source. Here are just some of > the Games ported to Linux by Loki Software. Other developers and > vendors have written lots of other software and games based on SDL > too. > > http://www.lokigames.com/products/ Totally off topic: SDL Creator and former Loki Games employee, Sam Lantinga, is now(since July at least) working at Valve helping port Steam and Valve Games to Linux: http://www.phoronix.com/scan.php?page=article&item=valve_linux_sdl&num=1 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Playing audio files - which package do you prefer?
On 29 July 2012 20:15, Krzysztof wrote: > > @Graeme Geldenhuys: what exactly means SDL? SDL = Simple DirectMedia Layer See the homepage: http://www.libsdl.org/ Simple DirectMedia Layer is a cross-platform multimedia library designed to provide low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer. It is used by MPEG playback software, emulators, and many popular games, including the award winning Linux port of "Civilization: Call To Power." SDL supports Linux, Windows, Windows CE, BeOS, MacOS, Mac OS X, FreeBSD, NetBSD, OpenBSD, BSD/OS, Solaris, IRIX, and QNX. The code contains support for AmigaOS, Dreamcast, Atari, AIX, OSF/Tru64, RISC OS, SymbianOS, and OS/2, but these are not officially supported. SDL is written in C, but works with C++ natively, and has bindings to several other languages, including Ada, C#, D, Eiffel, Erlang, Euphoria, Go, Guile, Haskell, Java, Lisp, Lua, ML, Objective C, Pascal, Perl, PHP, Pike, Pliant, Python, Ruby, Smalltalk, and Tcl. SDL is distributed under GNU LGPL version 2. This license allows you to use SDL freely in commercial programs as long as you link with the dynamic library. SDL developed and used extensively by Loki Software. It was proof that it works very well, and is a very capable DirectX alternative with the bonus that it is cross platform and open source. Here are just some of the Games ported to Linux by Loki Software. Other developers and vendors have written lots of other software and games based on SDL too. http://www.lokigames.com/products/ I own a few of those Linux games, and they work beautifully. -- Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Playing audio files - which package do you prefer?
2012/7/29 Krzysztof : > @Corpsman thanks for info about Bass. I'm reading about it and > functionality looks amazing (especially internet streaming, but this > behavior is not major right now) and is really multiplatform. But > license... I must ask authors, my player will be free (and probably > opensource), but it will have other functionality which is payable > (getting info from other web service) > > @Graeme Geldenhuys: what exactly means SDL? Wiki page ( > http://wiki.freepascal.org/Multimedia_Programming#SDL_.2B_SDL_mixer ) > has only short note: > "The basic SDL library comes with a very simple sound system. On top > of that, SDL mixer adds more sound APIs which build a more flexible > solution". What are requirements and dependencies? What about internet > streaming (not necessary for now)? Please see this topic: http://lists.freepascal.org/lists/fpc-pascal/2012-June/033683.html And: https://code.google.com/p/lazarus-br/source/browse/#svn%2Ftrunk%2Fmultimedia http://lists.freepascal.org/lists/fpc-pascal/attachments/20120613/b4120dca/wav-0001.zip -- Silvio Clécio My public projects - github.com/silvioprog -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Playing audio files - which package do you prefer?
@Corpsman thanks for info about Bass. I'm reading about it and functionality looks amazing (especially internet streaming, but this behavior is not major right now) and is really multiplatform. But license... I must ask authors, my player will be free (and probably opensource), but it will have other functionality which is payable (getting info from other web service) @Graeme Geldenhuys: what exactly means SDL? Wiki page ( http://wiki.freepascal.org/Multimedia_Programming#SDL_.2B_SDL_mixer ) has only short note: "The basic SDL library comes with a very simple sound system. On top of that, SDL mixer adds more sound APIs which build a more flexible solution". What are requirements and dependencies? What about internet streaming (not necessary for now)? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Playing audio files - which package do you prefer?
Hi, > Question is: what is better, lazarus > native components or console players? Lazarus doesn't include sound components. The Free Pascal's FCL does include header translations though for many different sound libraries. So you can use a procedural method of calling the API functions to do what you want, or you could create a class that wraps the various API calls into an easier to use interface. A few week back I posted sample code of how we use SDL to play sounds in our application. Below is the link to the discussion from the fpc-pascal mailing list. http://free-pascal-general.1045716.n5.nabble.com/Playing-sounds-with-standard-components-td5709976.html I would not recommend the "console player" idea. The API method should give you much better control. -- Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Playing audio files - which package do you prefer?
One exe is not restrict. The more I care to make sure that user do not have anything extra to install. Additional libraries in my application directory is not a problem. Question is: what is better, lazarus native components or console players? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Playing audio files - which package do you prefer?
I use Bass.dll and on Linux bass.so, works great on both win32 and Linux, you have to ship the corresponding .dll or .so file streaming from the internet works fine. Corpsman. On 07/29/2012 06:32 PM, Krzysztof wrote: Hi, I'm reading about audio components (OpenAL, ACS). Which package do you prefer? What I need: 1. Play most popular formats (mp3, ogg, wav) 2. Must be native. I mean, everything should be compiled in one executable. There should be no dependencies like directx installed or special codecs installed in system. 3. In future, I would like to extend the functionality by adding internet streaming. I don't expect "build-in" solution (but it would be great) but flexibility for adding this functionality (like playing from TMemoryStream) Maybe it is better to use some console player like ffmpeg + TProcess? Regards. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Auf meiner Homepage www.Corpsman.de ist immer was los, ständig wird sie aktualisiert und erweitert. Da ist für jeden was dabei. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Playing audio files - which package do you prefer?
Hi, > 2. Must be native. I mean, everything should be compiled in one > executable. ...snip... > Maybe it is better to use some console player like ffmpeg + TProcess? Don't those two contradict each other? There is definitely no ffmpeg implementation in Object Pascal, so there is no why it can be compiled into ONE application executable with no external dependencies. What our company uses is SDL to play all our audio. We simply need to ship one or two DLL's (under windows) with our apps. Under Linux, most distros include SDL as standard, so there is no extra libraries we need to worry about. But then, I don't know how this fits into your requirements, because as I stated, they seem to contradict each other. BTW: SDL is not implemented in Object Pascal either, but the SDL library interface is defined in Free Pascal's FCL. -- Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Playing audio files - which package do you prefer?
Hi, I'm reading about audio components (OpenAL, ACS). Which package do you prefer? What I need: 1. Play most popular formats (mp3, ogg, wav) 2. Must be native. I mean, everything should be compiled in one executable. There should be no dependencies like directx installed or special codecs installed in system. 3. In future, I would like to extend the functionality by adding internet streaming. I don't expect "build-in" solution (but it would be great) but flexibility for adding this functionality (like playing from TMemoryStream) Maybe it is better to use some console player like ffmpeg + TProcess? Regards. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus