Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
e9efaeac
Commit
e9efaeac
authored
Apr 01, 2004
by
Warren Dukes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use 16-bit signed ints for storing positions in the ring buffer
git-svn-id:
https://svn.musicpd.org/mpd/trunk@576
09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent
795a1e93
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
playerData.c
src/playerData.c
+5
-0
playerData.h
src/playerData.h
+4
-4
No files found.
src/playerData.c
View file @
e9efaeac
...
...
@@ -51,6 +51,11 @@ void initPlayerData() {
buffered_chunks
=
bufferSize
/
CHUNK_SIZE
;
if
(
buffered_chunks
>=
1
<<
15
)
{
ERROR
(
"buffer size
\"
%i
\"
is too big
\n
"
,
bufferSize
);
exit
(
-
1
);
}
perc
=
strtod
((
getConf
())[
CONF_BUFFER_BEFORE_PLAY
],
&
test
);
if
(
*
test
!=
'%'
||
perc
<
0
||
perc
>
100
)
{
ERROR
(
"buffered before play
\"
%s
\"
is not a positive "
...
...
src/playerData.h
View file @
e9efaeac
...
...
@@ -37,10 +37,10 @@ typedef struct _Buffer {
mpd_uint16
*
chunkSize
;
mpd_uint16
*
bitRate
;
float
*
times
;
int
begin
;
int
end
;
int
next
;
int
wrap
;
mpd_sint16
begin
;
mpd_sint16
end
;
mpd_sint16
next
;
mpd_sint8
wrap
;
float
totalTime
;
}
Buffer
;
...
...
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