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
f97a9ce7
Commit
f97a9ce7
authored
Jun 18, 2019
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "MusicChunk: pad MusicChunkInfo to a multiple of 8 bytes"
This reverts commit
2c3eeb71
. This workaround has been obsoleted by commits
bf26adf5
and
32380d1d
parent
bf26adf5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
13 deletions
+1
-13
MusicChunk.hxx
src/MusicChunk.hxx
+1
-13
No files found.
src/MusicChunk.hxx
View file @
f97a9ce7
...
...
@@ -43,15 +43,7 @@ struct MusicChunk;
/**
* Meta information for #MusicChunk.
*/
struct
alignas
(
8
)
MusicChunkInfo
{
/* align to multiple of 8 bytes, which adds padding at the
end, so the size of MusicChunk::data is also a multiple of
8 bytes; this is a workaround for a bug in the DSD_U32 and
DoP converters which require processing 8 bytes at a time,
discarding the remainder */
/* TODO: once all converters have been fixed, we should remove
this workaround */
struct
MusicChunkInfo
{
/** the next chunk in a linked list */
MusicChunkPtr
next
;
...
...
@@ -127,10 +119,6 @@ struct MusicChunk : MusicChunkInfo {
/** the data (probably PCM) */
uint8_t
data
[
CHUNK_SIZE
-
sizeof
(
MusicChunkInfo
)];
/* TODO: remove this check once all converters have been fixed
(see comment in struct MusicChunkInfo for details) */
static_assert
(
sizeof
(
data
)
%
8
==
0
,
"Wrong alignment"
);
/**
* Prepares appending to the music chunk. Returns a buffer
* where you may write into. After you are finished, call
...
...
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