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
59189160
Commit
59189160
authored
Nov 11, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder/wavpack: allow more than 2 channels
Remove the OPEN_2CH_MAX option. MPD's support for surround sound is still clunky, but we're working on it.
parent
ee5d3337
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
NEWS
NEWS
+1
-0
wavpack_plugin.c
src/decoder/wavpack_plugin.c
+3
-3
No files found.
NEWS
View file @
59189160
...
...
@@ -25,6 +25,7 @@ ver 0.16 (20??/??/??)
- sidplay: implemented songlength database
- sidplay: support seeking
- wavpack: activate 32 bit support
- wavpack: allow more than 2 channels
* encoders:
- twolame: new encoder plugin based on libtwolame
* output:
...
...
src/decoder/wavpack_plugin.c
View file @
59189160
...
...
@@ -139,7 +139,7 @@ wavpack_decode(struct decoder *decoder, WavpackContext *wpc, bool can_seek,
audio_format_init
(
&
audio_format
,
WavpackGetSampleRate
(
wpc
),
WavpackGetBitsPerSample
(
wpc
),
WavpackGet
Reduced
Channels
(
wpc
));
WavpackGet
Num
Channels
(
wpc
));
/* round bitwidth to 8-bit units */
audio_format
.
bits
=
(
audio_format
.
bits
+
7
)
&
(
~
7
);
...
...
@@ -503,7 +503,7 @@ wavpack_streamdecode(struct decoder * decoder, struct input_stream *is)
char
error
[
ERRORLEN
];
WavpackContext
*
wpc
;
struct
input_stream
is_wvc
;
int
open_flags
=
OPEN_
2CH_MAX
|
OPEN_
NORMALIZE
;
int
open_flags
=
OPEN_NORMALIZE
;
struct
wavpack_input
isp
,
isp_wvc
;
bool
can_seek
=
is
->
seekable
;
...
...
@@ -548,7 +548,7 @@ wavpack_filedecode(struct decoder *decoder, const char *fname)
wpc
=
WavpackOpenFileInput
(
fname
,
error
,
OPEN_TAGS
|
OPEN_WVC
|
OPEN_
2CH_MAX
|
OPEN_
NORMALIZE
,
23
OPEN_TAGS
|
OPEN_WVC
|
OPEN_NORMALIZE
,
23
);
if
(
wpc
==
NULL
)
{
g_warning
(
...
...
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