MCPcopy Create free account
hub / github.com/TASEmulators/fceux / FCEUI_EndWaveRecord

Function FCEUI_EndWaveRecord

src/wave.cpp:57–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57int 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
82bool FCEUI_BeginWaveRecord(const char *fn)

Callers 6

CloseWaveFunction · 0.85
CreateSoundSaveFunction · 0.85
CloseGameFunction · 0.85
wavRecordStopMethod · 0.85
CloseGameFunction · 0.85
CloseGameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected