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
8491f61d
Commit
8491f61d
authored
Feb 25, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mvp: fall back to stereo
When the channel count is greater than 2, fall back to stereo sound.
parent
6722c508
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
NEWS
NEWS
+1
-0
mvp_plugin.c
src/output/mvp_plugin.c
+5
-1
No files found.
NEWS
View file @
8491f61d
...
@@ -17,6 +17,7 @@ ver 0.15 - (200?/??/??)
...
@@ -17,6 +17,7 @@ ver 0.15 - (200?/??/??)
* audio outputs:
* audio outputs:
- shout: enlarged buffer size to 32 kB
- shout: enlarged buffer size to 32 kB
- null: allow disabling synchronization
- null: allow disabling synchronization
- mvp: fall back to stereo
* commands:
* commands:
- "playlistinfo" supports a range now
- "playlistinfo" supports a range now
- added "sticker database", command "sticker", which allows clients
- added "sticker database", command "sticker", which allows clients
...
...
src/output/mvp_plugin.c
View file @
8491f61d
...
@@ -134,7 +134,11 @@ mvp_set_pcm_params(struct mvp_data *md, struct audio_format *audio_format)
...
@@ -134,7 +134,11 @@ mvp_set_pcm_params(struct mvp_data *md, struct audio_format *audio_format)
break
;
break
;
default:
default:
return
false
;
g_debug
(
"unsupported channel count %u - falling back to stereo"
,
audio_format
->
channels
);
audio_format
->
channels
=
2
;
mix
[
0
]
=
0
;
break
;
}
}
/* 0,1=24bit(24) , 2,3=16bit */
/* 0,1=24bit(24) , 2,3=16bit */
...
...
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