From: Shawn Hargreaves Newsgroups: comp.os.msdos.djgpp Subject: Re: Animation+sound in Allegro Date: Sat, 12 Jul 1997 09:28:54 +0100 Organization: None Distribution: world Message-ID: References: <01bc8db4$d7bf4f00$0100007f AT majka> NNTP-Posting-Host: talula.demon.co.uk MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=iso-8859-1 Lines: 26 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Marián Dvorský writes: >How can I play any animation file (for Intro etc.) with sound >(for effects, speech) ? (AVI, MPG, or what can I USE????) >Must I create one BIG wav file length of FLI file and run it before >start FLI? Or how? There's no direct way of doing this at the moment: Allegro doesn't support any of the animation formats that include audio streams, and such a huge sample is going to cause problems both with overflowing counter sizes and the timing getting out of sync with the animation. The best bodge approach would be to use a seperate sample for each sound effect and phrase of your speech, and use the FLI player callback function to trigger them on the appropriate frames... >Shawn, can u create a new file (ie. FLS), what will the same as >FLx but somewhere can be WAV files ? Something like SMACKER? >U can create tool to add this wav files to FLx. What do u think? I'n not keen on creating new file formats without a _very_ good reason for it! IMHO it would be better to write an AVI player, but I can't see myself having time to do that in the near future. Any takers? -- Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/ Beauty is a French phonetic corruption of a short cloth neck ornament.