1 #include <mingpp.h> 2 #include <cstdlib> 3 main()4int main() 5 { 6 try { 7 SWFMovie *m = new SWFMovie(7); 8 SWFSound *sound; 9 int i; 10 FILE *file; 11 12 file = fopen(MEDIADIR "/video02.flv", "rb"); 13 if(!file) { 14 return EXIT_FAILURE; 15 } 16 17 sound = new SWFSound(new SWFSoundStream(file)); 18 m->addExport(sound, "video02.flv"); 19 m->startSound(sound); 20 21 m->save("test02.swf"); 22 } 23 catch(SWFException &e) 24 { 25 std::cerr << "SWFException: " << e.what() << std::endl << std::endl; 26 return EXIT_FAILURE; 27 } 28 return 0; 29 } 30