- commit
- 3ca452b1f9504b458a44b2e637a80262c1cd5b9f
- parent
- df86f3c7c3261343cd3919af2e8c34146a067b79
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2019-12-26 08:21
fix missing returns
Diffstat
| M | src/marker.cpp | 1 | + |
| M | src/playback.cpp | 2 | ++ |
| M | src/sample.cpp | 1 | + |
3 files changed, 4 insertions, 0 deletions
diff --git a/src/marker.cpp b/src/marker.cpp
@@ -85,6 +85,7 @@ float Marker::getLengthf() {
85 85 if (getLength() > 0) {
86 86 return getNew(getLength() - 1) - getNew(0);
87 87 }
-1 88 return 0;
88 89 }
89 90
90 91
diff --git a/src/playback.cpp b/src/playback.cpp
@@ -67,6 +67,8 @@ int Playback::start() {
67 67 sounds.dpos = int(seeker*length);
68 68
69 69 SDL_UnlockAudio();
-1 70
-1 71 return 0;
70 72 }
71 73
72 74 void callback(void *udata, Uint8 *stream, int len) {
diff --git a/src/sample.cpp b/src/sample.cpp
@@ -136,6 +136,7 @@ int Sample::writeFile(const char* fileNameOut) {
136 136 }
137 137 sf_write_float(sndfileOut, data, length);
138 138 sf_close(sndfileOut);
-1 139 return 0;
139 140 }
140 141
141 142