[fpc-pascal] Re: Playing sounds with standard components
silvioprog
silvioprog at gmail.com
Wed Jun 13 05:26:22 CEST 2012
2012/6/12 Graeme Geldenhuys <graemeg.lists at gmail.com>:
> On 12 June 2012 16:17, silvioprog <silvioprog at gmail.com> wrote:
>> So, how to play audio (wav/mp3) with only SDL framework in Free Pascal?
> Simply reading a SDL tutorial or two, will quickly let you understand
> the following code. TSoundEngine is just an convenience class we
> created to add extra sound events and possibly swap out sound library
> frameworks in future - without needing to change our application code.
> Simple design pattern practices to simply your application code and
> hide complexity.
>
> This is not the complete code, but is the gist of it.
[...]
I tried playing a wav file with this demo in attached, no errors, but
no sound came out. :(
I downloaded all DLLs here:
http://www.libsdl.org/
http://www.libsdl.org/projects/SDL_mixer/
--
Silvio Clécio
My public projects - github.com/silvioprog
-------------- next part --------------
A non-text attachment was scrubbed...
Name: a.zip
Type: application/zip
Size: 8122 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20120613/d190d0ed/attachment.zip>
More information about the fpc-pascal
mailing list