[gnome-games] utils: Add CueSheetTrackMode.is_mode1()
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] utils: Add CueSheetTrackMode.is_mode1()
- Date: Wed, 17 Aug 2016 20:21:06 +0000 (UTC)
commit 227b61200b202bf5c0f07e7753370683cd8d451c
Author: Adrien Plazas <kekun plazas laposte net>
Date: Thu Aug 4 09:47:43 2016 +0200
utils: Add CueSheetTrackMode.is_mode1()
This will be used in the next commits to make checking the track modes
of discs simpler.
https://bugzilla.gnome.org/show_bug.cgi?id=769474
src/utils/cue-sheet/cue-sheet-track-mode.vala | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/utils/cue-sheet/cue-sheet-track-mode.vala b/src/utils/cue-sheet/cue-sheet-track-mode.vala
index afe1034..03e6dee 100644
--- a/src/utils/cue-sheet/cue-sheet-track-mode.vala
+++ b/src/utils/cue-sheet/cue-sheet-track-mode.vala
@@ -33,4 +33,14 @@ public enum Games.CueSheetTrackMode {
return CueSheetTrackMode.INVALID;
}
}
+
+ public bool is_mode1 () {
+ switch (this) {
+ case CueSheetTrackMode.MODE1_2048:
+ case CueSheetTrackMode.MODE1_2352:
+ return true;
+ default:
+ return false;
+ }
+ }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]