A: 拷到别的机子上或者干边盘符,那些路径要全部重设,很不方便,而且有时是不能实现的。所以现在的要求就是,不管那些声音文件放哪儿,程序运行就很自如的播放,或者说把vi文件和声音文件捆绑一起,只能看到vi文件,运行程序一次后,自然把声音文件记录都vi文件中了 首先引用路径通过snd read waveform 把声音文件读出,然后把读出的indicator 改成constant,这个constant就保存了原来的声音文件,如果要播放这个文件就用snd write waveform 写出这个constant。 B: Firstly, use waveform as a indicator, write your sound data for it. secondary, make that waveform as a control,wire it to sound play, and make its value as default. no matter which C uses your program, the expectation which your needing is matching!
文章评论(0条评论)
登录后参与讨论