Does allegro have any commands that will
allow me to play any .avi file in my program
Thanks
Yes...isn't there?? An addon I mean?
There are so many different CODECS used with avis. It is unlikely that an AVI lib could play many of them. I can see 2 choices,
1) your allegro program (windows only) calls the Windows Media Control to play any AVI
2) Use a Windows Video Editing program to convert to a simple format which the player code can handle.
do you have any code for this
Go to your favorite search-engine and find some example-code on calling the media-player. It works most likely with OLE-embedding or something like that. Perhaps you're better off converting the avi to flic: IIRC a flic-player is available under allegro.
Note that this program won't be portable! (OLE is AFAICT only available under windows(-emulators) and that goes for the afore-mentioned media-player too).
Xaron
how do I convert the avi file
and whats the code to play it using that other stuff
The code example is in allegro/examples/exfli.c
The conversion can be done with (almost) any video editing software, including VirtualDub