Code: Alles auswählen
float bps;
TYPE_PlayInfo playinfo;
TAP_Hdd_GetPlayInfo(&playinfo);
bps = (float) playinfo.totalBlock / (60.0 * (float) playinfo.duration);
TAP_Print("Block/s: %g (Blocks: %lu, Duration: %u, Seconds: %u)\n", bps, playinfo.totalBlock, playinfo.duration, playinfo.duration * 60);
Code: Alles auswählen
Block/s: 2.70025e-312 (Blocks: 2147483648, Duration: 39315, Seconds: 127)
Welchen Schrott produziert TAP_Print denn hier?