Skip to content

Commit 4178284

Browse files
committed
Bump version and fix warning in opus.c
1 parent aa0338f commit 4178284

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ APP_TITLE := 3DShell
4444
APP_DESCRIPTION := Multi-purpose file manager
4545
APP_AUTHOR := Joel16
4646
VERSION_MAJOR := 4
47-
VERSION_MINOR := 0
48-
VERSION_MICRO := 1
47+
VERSION_MINOR := 1
48+
VERSION_MICRO := 0
4949
GITVERSION := $(shell git log -1 --pretty='%h')
5050
ICON := res/ic_launcher_filemanager.png
5151

source/audio/opus.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,13 @@ static u8 Opus_GetChannels(void) {
2929
return 2;
3030
}
3131

32-
static u64 Opus_FillBuffer(s16 *buffer) {
32+
static u64 Opus_FillBuffer(void *buffer) {
3333
u64 samplesRead = 0;
3434
int samplesToRead = buffSize;
35+
s16 *buf = buffer;
3536

3637
while(samplesToRead > 0) {
37-
int samplesJustRead = op_read_stereo(opusFile, buffer, samplesToRead > 120*48*2 ? 120*48*2 : samplesToRead);
38+
int samplesJustRead = op_read_stereo(opusFile, buf, samplesToRead > 120*48*2 ? 120*48*2 : samplesToRead);
3839

3940
if(samplesJustRead < 0)
4041
return samplesJustRead;
@@ -45,7 +46,7 @@ static u64 Opus_FillBuffer(s16 *buffer) {
4546

4647
samplesRead += samplesJustRead * 2;
4748
samplesToRead -= samplesJustRead * 2;
48-
buffer += samplesJustRead * 2;
49+
buf += samplesJustRead * 2;
4950
}
5051

5152
return samplesRead;

0 commit comments

Comments
 (0)