?? test03.c
字號:
#include <libming.h>#include <stdlib.h>int main() { SWFMovie m = newSWFMovieWithVersion(7); SWFSound sound; FILE *file; int ret; file = fopen(MEDIADIR "/sound1.mp3", "rb"); if(!file) { perror(MEDIADIR "/sound1.mp3"); return EXIT_FAILURE; } sound = newSWFSound(file, SWF_SOUND_MP3_COMPRESSED); if(!sound) { fprintf(stderr, "Could not create SWFSound\n"); return EXIT_FAILURE; } SWFMovie_startSound(m, sound); ret = SWFMovie_save(m, "test03.swf"); if ( ret == -1 ) { fprintf(stderr, "Something went wrong during SWFMovie_save\n"); return EXIT_FAILURE; } //SWFSound destroy SWFInput created from file destroySWFSound(sound); destroySWFMovie(m); return 0;}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -