InputRecording: Use u32 for frames since that's what the core uses (warning fixes)

This commit is contained in:
Ty
2025-11-22 16:35:12 -05:00
committed by Ty
parent 58899a9ed3
commit c72c309218
2 changed files with 7 additions and 7 deletions

View File

@@ -66,12 +66,12 @@ const std::string& InputRecordingFile::getFilename() const noexcept
return m_filename;
}
unsigned long InputRecordingFile::getTotalFrames() const noexcept
u32 InputRecordingFile::getTotalFrames() const noexcept
{
return m_totalFrames;
}
unsigned long InputRecordingFile::getUndoCount() const noexcept
u32 InputRecordingFile::getUndoCount() const noexcept
{
return m_undoCount;
}
@@ -237,7 +237,7 @@ std::vector<PadData> InputRecordingFile::bulkReadPadData(u32 frameStart, u32 fra
}
// TODO - no multi-tap support
for (uint64_t currFrame = frameStart; currFrame < frameEnd; currFrame++)
for (u32 currFrame = frameStart; currFrame < frameEnd; currFrame++)
{
const auto padData = readPadData(currFrame, port, 0);
if (padData)

View File

@@ -68,8 +68,8 @@ public:
// Retrieve the input recording's filename (not the path)
const std::string& getFilename() const noexcept;
unsigned long getTotalFrames() const noexcept;
unsigned long getUndoCount() const noexcept;
u32 getTotalFrames() const noexcept;
u32 getUndoCount() const noexcept;
void logRecordingMetadata();
std::vector<PadData> bulkReadPadData(u32 frameStart, u32 frameEnd, const uint port);
@@ -92,8 +92,8 @@ private:
bool m_savestate = false;
// An signed 32-bit frame limit is equivalent to 1.13 years of continuous 60fps footage
unsigned long m_totalFrames = 0;
unsigned long m_undoCount = 0;
u32 m_totalFrames = 0;
u32 m_undoCount = 0;
// Calculates the position of the current frame in the input recording
size_t getRecordingBlockSeekPoint(const u32 frame) const noexcept;