Skip to content

Commit

Permalink
CDImageDevice: Don't add out-of-file pregaps to audio tracks
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Nov 26, 2021
1 parent 827048e commit 7c769b1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/common/cd_image_device.cpp
Expand Up @@ -200,10 +200,7 @@ bool CDImageDeviceWin32::Open(const char* filename, Common::Error* error)
const TrackMode track_mode = control.data ? CDImage::TrackMode::Mode2Raw : CDImage::TrackMode::Audio;

// TODO: How the hell do we handle pregaps here?
const u32 pregap_frames =
(track_num <= MAX_TRACK_NUMBER && ((control.data && track_index == 0) || (!control.data && track_index != 0))) ?
150 :
0;
const u32 pregap_frames = (control.data && track_index == 0) ? 150 : 0;
if (pregap_frames > 0)
{
Index pregap_index = {};
Expand Down

0 comments on commit 7c769b1

Please sign in to comment.