[fpc-pascal] Re: Playing sounds with standard components
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:
My public projects - github.com/silvioprog
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 8122 bytes
Desc: not available
More information about the fpc-pascal