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
d093fb24
Commit
d093fb24
authored
May 02, 2010
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chunk: added attribute "other"
Preparation for cross-fading support in the output thread.
parent
0140804e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
0 deletions
+10
-0
buffer.c
src/buffer.c
+3
-0
chunk.c
src/chunk.c
+1
-0
chunk.h
src/chunk.h
+6
-0
No files found.
src/buffer.c
View file @
d093fb24
...
@@ -118,6 +118,9 @@ music_buffer_return(struct music_buffer *buffer, struct music_chunk *chunk)
...
@@ -118,6 +118,9 @@ music_buffer_return(struct music_buffer *buffer, struct music_chunk *chunk)
assert
(
buffer
!=
NULL
);
assert
(
buffer
!=
NULL
);
assert
(
chunk
!=
NULL
);
assert
(
chunk
!=
NULL
);
if
(
chunk
->
other
!=
NULL
)
music_buffer_return
(
buffer
,
chunk
->
other
);
g_mutex_lock
(
buffer
->
mutex
);
g_mutex_lock
(
buffer
->
mutex
);
music_chunk_free
(
chunk
);
music_chunk_free
(
chunk
);
...
...
src/chunk.c
View file @
d093fb24
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
void
void
music_chunk_init
(
struct
music_chunk
*
chunk
)
music_chunk_init
(
struct
music_chunk
*
chunk
)
{
{
chunk
->
other
=
NULL
;
chunk
->
length
=
0
;
chunk
->
length
=
0
;
chunk
->
tag
=
NULL
;
chunk
->
tag
=
NULL
;
chunk
->
replay_gain_serial
=
0
;
chunk
->
replay_gain_serial
=
0
;
...
...
src/chunk.h
View file @
d093fb24
...
@@ -44,6 +44,12 @@ struct music_chunk {
...
@@ -44,6 +44,12 @@ struct music_chunk {
/** the next chunk in a linked list */
/** the next chunk in a linked list */
struct
music_chunk
*
next
;
struct
music_chunk
*
next
;
/**
* An optional chunk which should be mixed into this chunk.
* This is used for cross-fading.
*/
struct
music_chunk
*
other
;
/** number of bytes stored in this chunk */
/** number of bytes stored in this chunk */
uint16_t
length
;
uint16_t
length
;
...
...
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