Re: [fpc-pascal] playing sound files (linux and windows)

vtech at volny.cz vtech at volny.cz
Tue Jun 15 13:30:45 CEST 2010


If you can wait a few days, I'll extract a working windows/linux demo
from my sourcode for you. Right now I'm really busy.


----- PŮVODNÍ ZPRÁVA -----
Od: "Graeme Geldenhuys" <graemeg.lists at gmail.com>
Komu: "FPC-Pascal users discussions" <fpc-pascal at lists.freepascal.org>
Předmět: Re: [fpc-pascal] playing sound files (linux and windows)
Datum: 15.6.2010 - 13:29:43

> Op 2010-06-14 18:28, dmitry boyarintsev het geskryf:
> > 
> > There's proper example in FCL how to use OpenAL to
> > play .wav, .ogg .mp3 files.
> > 
> I can't find an example for loading a .wav file. I
> managed to extract the
> initialization and finalization code for OpenAL from
> the FCL examples, but
> now the main part is the call  alSourcePlay(buffer)
> , but I don't know how
> to populate the buffer with a WAV file.
> 
> Any hints or sample code. The sample included in FCL
> 2.4.1 loads MAD, A52,
> OGG and ModPlug only. Google revealed a tutorial using
> AlutLoadWavFile(),
> but that is in the "unofficial utilities library",
> it's not part of the
> standard OpenAL 1.1 spec, and not included in Linux.
> 
> 
> Regards,
> - Graeme -
> 
> -- 
> fpGUI Toolkit - a cross-platform GUI toolkit using
> Free Pascal
> http://opensoft.homeip.net/fpgui/
> 
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal



-- 
Kaspersky Internet Security 2010 + Kaspersky Mobile Security jen za 1199,-Kč.
Ochraňte svůj počítač i mobil před zneužitím či ztrátou dat.
Kupte si 2 produkty za cenu jednoho. www.kaspersky.cz




More information about the fpc-pascal mailing list