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
d4a6d647
Commit
d4a6d647
authored
Feb 16, 2020
by
Max Kellermann
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'efuhgeh' of
git://github.com/neheb/MPD
parents
2d3b5166
9cf13857
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
14 deletions
+14
-14
HybridDsdDecoderPlugin.cxx
src/decoder/plugins/HybridDsdDecoderPlugin.cxx
+1
-1
OpusDecoderPlugin.cxx
src/decoder/plugins/OpusDecoderPlugin.cxx
+12
-12
OpusEncoderPlugin.cxx
src/encoder/plugins/OpusEncoderPlugin.cxx
+1
-1
No files found.
src/decoder/plugins/HybridDsdDecoderPlugin.cxx
View file @
d4a6d647
...
...
@@ -32,7 +32,7 @@ static constexpr Domain hybrid_dsd_domain("hybrid_dsd");
namespace
{
static
bool
bool
InitHybridDsdDecoder
(
const
ConfigBlock
&
block
)
{
/* this plugin is disabled by default because for people
...
...
src/decoder/plugins/OpusDecoderPlugin.cxx
View file @
d4a6d647
...
...
@@ -41,29 +41,29 @@
namespace
{
static
constexpr
opus_int32
opus_sample_rate
=
48000
;
constexpr
opus_int32
opus_sample_rate
=
48000
;
/**
* Allocate an output buffer for 16 bit PCM samples big enough to hold
* a quarter second, larger than 120ms required by libopus.
*/
static
constexpr
unsigned
opus_output_buffer_frames
=
opus_sample_rate
/
4
;
constexpr
unsigned
opus_output_buffer_frames
=
opus_sample_rate
/
4
;
gcc_pure
static
bool
bool
IsOpusHead
(
const
ogg_packet
&
packet
)
noexcept
{
return
packet
.
bytes
>=
8
&&
memcmp
(
packet
.
packet
,
"OpusHead"
,
8
)
==
0
;
}
gcc_pure
static
bool
bool
IsOpusTags
(
const
ogg_packet
&
packet
)
noexcept
{
return
packet
.
bytes
>=
8
&&
memcmp
(
packet
.
packet
,
"OpusTags"
,
8
)
==
0
;
}
static
bool
bool
mpd_opus_init
(
gcc_unused
const
ConfigBlock
&
block
)
{
LogDebug
(
opus_domain
,
opus_get_version_string
());
...
...
@@ -266,7 +266,7 @@ MPDOpusDecoder::Seek(uint64_t where_frame)
}
}
static
void
void
mpd_opus_stream_decode
(
DecoderClient
&
client
,
InputStream
&
input_stream
)
{
...
...
@@ -300,7 +300,7 @@ mpd_opus_stream_decode(DecoderClient &client,
}
}
static
bool
bool
ReadAndParseOpusHead
(
OggSyncState
&
sync
,
OggStreamState
&
stream
,
unsigned
&
channels
)
{
...
...
@@ -312,7 +312,7 @@ ReadAndParseOpusHead(OggSyncState &sync, OggStreamState &stream,
audio_valid_channel_count
(
channels
);
}
static
bool
bool
ReadAndVisitOpusTags
(
OggSyncState
&
sync
,
OggStreamState
&
stream
,
TagHandler
&
handler
)
{
...
...
@@ -325,7 +325,7 @@ ReadAndVisitOpusTags(OggSyncState &sync, OggStreamState &stream,
handler
);
}
static
void
void
VisitOpusDuration
(
InputStream
&
is
,
OggSyncState
&
sync
,
OggStreamState
&
stream
,
TagHandler
&
handler
)
{
...
...
@@ -339,7 +339,7 @@ VisitOpusDuration(InputStream &is, OggSyncState &sync, OggStreamState &stream,
}
}
static
bool
bool
mpd_opus_scan_stream
(
InputStream
&
is
,
TagHandler
&
handler
)
noexcept
{
InputStreamReader
reader
(
is
);
...
...
@@ -363,14 +363,14 @@ mpd_opus_scan_stream(InputStream &is, TagHandler &handler) noexcept
return
true
;
}
static
const
char
*
const
opus_suffixes
[]
=
{
const
char
*
const
opus_suffixes
[]
=
{
"opus"
,
"ogg"
,
"oga"
,
nullptr
};
static
const
char
*
const
opus_mime_types
[]
=
{
const
char
*
const
opus_mime_types
[]
=
{
/* the official MIME type (RFC 5334) */
"audio/ogg"
,
...
...
src/encoder/plugins/OpusEncoderPlugin.cxx
View file @
d4a6d647
...
...
@@ -120,7 +120,7 @@ PreparedOpusEncoder::PreparedOpusEncoder(const ConfigBlock &block)
throw
std
::
runtime_error
(
"Invalid signal"
);
}
static
PreparedEncoder
*
PreparedEncoder
*
opus_encoder_init
(
const
ConfigBlock
&
block
)
{
return
new
PreparedOpusEncoder
(
block
);
...
...
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