Changeset 1065:3129a0fe71cd in mediastreamer2
- Timestamp:
- Sep 30, 2010 7:41:59 PM (3 years ago)
- Branch:
- default
- Location:
- src
- Files:
-
- 2 edited
-
CMakeLists.txt (modified) (1 diff)
-
msfilerec.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/CMakeLists.txt
r1060 r1065 28 28 if(WIN32) 29 29 include_directories(../build/win32native/) 30 set(MS_SRCS ${MS_SRCS} winsnd3.c ../build/win32native/mediastreamer2.def) 30 set(MS_SRCS ${MS_SRCS} winsnd3.c ../build/win32native/mediastreamer2.def msfileplayer_win.c msfilerec_win.c) 31 32 else(WIN32) 33 set(MS_SRCS ${MS_SRCS} msfileplayer.c msfilerec.c) 31 34 endif(WIN32) 32 35 -
src/msfilerec.c
r856 r1065 88 88 } 89 89 90 90 91 static int rec_start(MSFilter *f, void *arg){ 91 92 RecState *s=(RecState*)f->data; … … 103 104 return 0; 104 105 } 106 107 static void rec_preprocess(MSFilter *f){ 108 rec_start(f, 0); 109 } 110 111 static void rec_postprocess(MSFilter *f){ 112 rec_stop(f, 0); 113 } 114 105 115 106 116 static void write_wav_header(int fd, int rate,int size){ … … 174 184 0, 175 185 rec_init, 176 NULL,186 rec_start, 177 187 rec_process, 178 NULL,188 rec_stop, 179 189 rec_uninit, 180 190 rec_methods … … 191 201 .noutputs=0, 192 202 .init=rec_init, 203 .preprocess=rec_preprocess, 193 204 .process=rec_process, 205 .postprocess=rec_postprocess, 194 206 .uninit=rec_uninit, 195 207 .methods=rec_methods
Note: See TracChangeset
for help on using the changeset viewer.
