1
0
Fork 0

Refine types and sizes to more accurately reflect the values they hold

This allows for fewer casts, simpler math, and more readable code
in subsequent commits.
This commit is contained in:
krcroft 2020-02-05 23:07:25 -08:00
parent 81954dfe28
commit 4aa3311021
No known key found for this signature in database
GPG key ID: 4AD3678F4A2C291C
4 changed files with 70 additions and 67 deletions

View file

@ -18,14 +18,14 @@
#include "cdrom.h"
bool CDROM_Interface_Fake :: GetAudioTracks(int& stTrack, int& end, TMSF& leadOut) {
bool CDROM_Interface_Fake::GetAudioTracks(uint8_t& stTrack, uint8_t& end, TMSF& leadOut) {
stTrack = end = 1;
leadOut.min = 60;
leadOut.sec = leadOut.fr = 0;
return true;
}
bool CDROM_Interface_Fake :: GetAudioTrackInfo(int track, TMSF& start, unsigned char& attr) {
bool CDROM_Interface_Fake::GetAudioTrackInfo(uint8_t track, TMSF& start, unsigned char& attr) {
if (track>1) return false;
start.min = start.fr = 0;
start.sec = 2;