Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
audiowmark
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
audiowmark
Commits
53186bd1
Commit
53186bd1
authored
Dec 13, 2019
by
Stefan Westerfeld
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix signedness mp3 stream compiler warning.
Signed-off-by:
Stefan Westerfeld
<
stefan@space.twc.de
>
parent
cb891005
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
mp3inputstream.cc
src/mp3inputstream.cc
+1
-1
mp3inputstream.hh
src/mp3inputstream.hh
+1
-1
No files found.
src/mp3inputstream.cc
View file @
53186bd1
...
...
@@ -138,7 +138,7 @@ MP3InputStream::read_frames (std::vector<float>& samples, size_t count)
const
auto
end
=
begin
+
min
(
count
*
m_n_channels
,
m_read_buffer
.
size
());
samples
.
assign
(
begin
,
end
);
m_read_buffer
.
erase
(
begin
,
end
);
m_frames_left
-=
samples
.
size
()
/
m_n_channels
;
m_frames_left
-=
count
;
return
Error
::
Code
::
NONE
;
}
...
...
src/mp3inputstream.hh
View file @
53186bd1
...
...
@@ -16,7 +16,7 @@ class MP3InputStream : public AudioInputStream
int
m_n_values
=
0
;
int
m_n_channels
=
0
;
int
m_sample_rate
=
0
;
int
m_frames_left
=
0
;
size_t
m_frames_left
=
0
;
bool
m_need_close
=
false
;
bool
m_eof
=
false
;
State
m_state
=
State
::
NEW
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment