1. Bensler/RIggins Exotica(X) library problem
Just for kicks, I modified Bensler/Riggins' Exotica AVI play example so
that it looped through 2 movies one after another. Worked like a charm,
except the movies I had looked like garbage at the 320x200 video
resolution. So I changed it to 640x400, or so I thought.
When I ran the program, it showed the first movie fine, but the second
movie was back in the 320x200 mode. The set_video call was outside the loop.
Any ideas why or how to fix?
2. Re: Bensler/RIggins Exotica(X) library problem
-----Original Message-----
From: SR Williamson <sr.williamson at OSHA.GOV>
To: EUPHORIA at LISTSERV.MUOHIO.EDU <EUPHORIA at LISTSERV.MUOHIO.EDU>
Date: Wednesday, April 05, 2000 1:30 PM
Subject: Bensler/RIggins Exotica(X) library problem
>Just for kicks, I modified Bensler/Riggins' Exotica AVI play example so
>that it looped through 2 movies one after another. Worked like a charm,
>except the movies I had looked like garbage at the 320x200 video
>resolution. So I changed it to 640x400, or so I thought.
>
>When I ran the program, it showed the first movie fine, but the second
>movie was back in the 320x200 mode. The set_video call was outside the
loop.
>
>Any ideas why or how to fix?
>
After the first avi has played and before you open the second , you must
close_avi_window and create a new instance of it
problem solved.
here's a snippet of the code in question
*SNIP*
play_avi()
while is_avi_ready() do
if exotica_error() then exotica_abort(1) end if
end while
----------------------------------------------
-- these routines weren't included in the original demo because there
-- was only one avi and exotica_exit() takes care of closing it
--this is here just for good programming practice
--if you have numerous avi's in your prog, you'll want to call this to
free the memory
close_avi()
-- these need to be called before opening another avi
close_avi_window()
if create_avi_window() then exotica_abort(1) end if
----------------------------------------------
open_avi("avi/as.avi")
*SNIP*
--Chris Bensler
3. Re: Bensler/RIggins Exotica(X) library problem
Thanks, that did it. Another question:
If I put in an endless loop around the for loop which plays the movies, and
just rely on the exotica ESC key exit routine to end the program, will this
suck up a lot of memory eventually since I'm not closing the AVI windows or
the AVIs, or does Exotica clean up this stuff for me if it aborts?
Thanks again.
4. Re: Bensler/RIggins Exotica(X) library problem
SR Williamson wrote:
>Thanks, that did it. Another question:
>
>If I put in an endless loop around the for loop which plays the movies, and
>just rely on the exotica ESC key exit routine to end the program, will this
>suck up a lot of memory eventually since I'm not closing the AVI windows or
>the AVIs, or does Exotica clean up this stuff for me if it aborts?
>
>Thanks again.
>
Good question. Todd's exotica lib doesn't take this into account, you would
have to add code in the MainLoop_Exit function.
However, my API does take care of the AVIs, as well as MODs,STREAMs,MIDIs
and CDs.
Thanks for checking out my API.
--Chris Bensler