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
ded2b31f
Commit
ded2b31f
authored
Feb 16, 2021
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tag/Riff: split into RiffId3.?xx and RiffFormat.hxx
parent
75c8d223
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
42 additions
and
17 deletions
+42
-17
Id3Load.cxx
src/tag/Id3Load.cxx
+1
-1
RiffFormat.hxx
src/tag/RiffFormat.hxx
+36
-0
RiffId3.cxx
src/tag/RiffId3.cxx
+2
-13
RiffId3.hxx
src/tag/RiffId3.hxx
+2
-2
meson.build
src/tag/meson.build
+1
-1
No files found.
src/tag/Id3Load.cxx
View file @
ded2b31f
...
...
@@ -18,7 +18,7 @@
*/
#include "Id3Load.hxx"
#include "Riff.hxx"
#include "Riff
Id3
.hxx"
#include "Aiff.hxx"
#include "input/InputStream.hxx"
...
...
src/tag/RiffFormat.hxx
0 → 100644
View file @
ded2b31f
/*
* Copyright 2003-2021 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef MPD_RIFF_FORMAT_HXX
#define MPD_RIFF_FORMAT_HXX
#include <cstdint>
struct
riff_header
{
char
id
[
4
];
uint32_t
size
;
char
format
[
4
];
};
struct
riff_chunk_header
{
char
id
[
4
];
uint32_t
size
;
};
#endif
src/tag/Riff.cxx
→
src/tag/Riff
Id3
.cxx
View file @
ded2b31f
...
...
@@ -17,27 +17,16 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "Riff.hxx"
#include "RiffId3.hxx"
#include "RiffFormat.hxx"
#include "input/InputStream.hxx"
#include "util/ByteOrder.hxx"
#include <cstdint>
#include <limits>
#include <stdexcept>
#include <string.h>
struct
riff_header
{
char
id
[
4
];
uint32_t
size
;
char
format
[
4
];
};
struct
riff_chunk_header
{
char
id
[
4
];
uint32_t
size
;
};
size_t
riff_seek_id3
(
InputStream
&
is
,
std
::
unique_lock
<
Mutex
>
&
lock
)
{
...
...
src/tag/Riff.hxx
→
src/tag/Riff
Id3
.hxx
View file @
ded2b31f
...
...
@@ -22,8 +22,8 @@
* A parser for the RIFF file format (e.g. WAV).
*/
#ifndef MPD_RIFF_HXX
#define MPD_RIFF_HXX
#ifndef MPD_RIFF_
ID3_
HXX
#define MPD_RIFF_
ID3_
HXX
#include "thread/Mutex.hxx"
...
...
src/tag/meson.build
View file @
ded2b31f
...
...
@@ -45,7 +45,7 @@ if libid3tag_dep.found()
'Id3Scan.cxx',
'Id3ReplayGain.cxx',
'Rva2.cxx',
'Riff.cxx',
'Riff
Id3
.cxx',
'Aiff.cxx',
]
endif
...
...
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