Skip to content

Commit 29cd30c

Browse files
committed
Make public methods virtual
Experimenting with a shared cue sheet buffer. Need the ability to override the public methods.
1 parent 708b2f8 commit 29cd30c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/CUEParser.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,18 +98,18 @@ class CUEParser
9898
CUEParser(const char *cue_sheet);
9999

100100
// Restart parsing from beginning of file
101-
void restart();
101+
virtual void restart();
102102

103103
// Get information for next track.
104104
// Returns nullptr when there are no more tracks.
105105
// The returned pointer remains valid until next call to next_track()
106106
// or destruction of this object.
107-
const CUETrackInfo *next_track();
107+
virtual const CUETrackInfo *next_track();
108108

109109
// Same as next_track(), but takes the file size into account when
110110
// switching files. This is necessary for getting the correct track
111111
// lengths when the .cue file references multiple .bin files.
112-
const CUETrackInfo *next_track(uint64_t prev_file_size);
112+
virtual const CUETrackInfo *next_track(uint64_t prev_file_size);
113113

114114
protected:
115115
const char *m_cue_sheet;

0 commit comments

Comments
 (0)