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
1155a290
Commit
1155a290
authored
Oct 08, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'cdda_set_cdspeed' of
git://github.com/andrewbasterfield/MPD
parents
030e6039
9c1bf9ac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
user.rst
doc/user.rst
+2
-0
CdioParanoiaInputPlugin.cxx
src/input/plugins/CdioParanoiaInputPlugin.cxx
+6
-0
No files found.
doc/user.rst
View file @
1155a290
...
...
@@ -1056,6 +1056,8 @@ Plays audio CDs using libcdio. The URI has the form: "cdda://[DEVICE][/TRACK]".
- Description
* - **default_byte_order little_endian|big_endian**
- If the CD drive does not specify a byte order, MPD assumes it is the CPU's native byte order. This setting allows overriding this.
* - **speed N**
- Request CDParanoia cap the extraction speed to Nx normal CD audio rotation speed, keeping the drive quiet.
curl
~~~~
...
...
src/input/plugins/CdioParanoiaInputPlugin.cxx
View file @
1155a290
...
...
@@ -104,6 +104,7 @@ class CdioParanoiaInputStream final : public InputStream {
static
constexpr
Domain
cdio_domain
(
"cdio"
);
static
bool
default_reverse_endian
;
static
unsigned
speed
=
0
;
static
void
input_cdio_init
(
EventLoop
&
,
const
ConfigBlock
&
block
)
...
...
@@ -118,6 +119,7 @@ input_cdio_init(EventLoop &, const ConfigBlock &block)
throw
FormatRuntimeError
(
"Unrecognized 'default_byte_order' setting: %s"
,
value
);
}
speed
=
block
.
GetBlockValue
(
"speed"
,
0u
);
}
struct
cdio_uri
{
...
...
@@ -209,6 +211,10 @@ input_cdio_open(const char *uri,
}
cdda_verbose_set
(
drv
,
CDDA_MESSAGE_FORGETIT
,
CDDA_MESSAGE_FORGETIT
);
if
(
speed
>
0
)
{
FormatDebug
(
cdio_domain
,
"Attempting to set CD speed to %dx"
,
speed
);
cdda_speed_set
(
drv
,
speed
);
}
if
(
0
!=
cdio_cddap_open
(
drv
))
{
cdio_cddap_close_no_free_cdio
(
drv
);
...
...
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