| 55 | } |
| 56 | |
| 57 | int FCEUI_EndWaveRecord() |
| 58 | { |
| 59 | long s; |
| 60 | |
| 61 | if(!soundlog) return 0; |
| 62 | s=ftell(soundlog)-8; |
| 63 | fseek(soundlog,4,SEEK_SET); |
| 64 | fputc(s&0xFF,soundlog); |
| 65 | fputc((s>>8)&0xFF,soundlog); |
| 66 | fputc((s>>16)&0xFF,soundlog); |
| 67 | fputc((s>>24)&0xFF,soundlog); |
| 68 | |
| 69 | fseek(soundlog,0x28,SEEK_SET); |
| 70 | s=wsize; |
| 71 | fputc(s&0xFF,soundlog); |
| 72 | fputc((s>>8)&0xFF,soundlog); |
| 73 | fputc((s>>16)&0xFF,soundlog); |
| 74 | fputc((s>>24)&0xFF,soundlog); |
| 75 | |
| 76 | fclose(soundlog); |
| 77 | soundlog=0; |
| 78 | return 1; |
| 79 | } |
| 80 | |
| 81 | |
| 82 | bool FCEUI_BeginWaveRecord(const char *fn) |
no outgoing calls
no test coverage detected