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
4e945169
Commit
4e945169
authored
Oct 27, 2010
by
Alder Hornbridge
Committed by
Max Kellermann
Oct 27, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder/sidplay: play monaural SID tunes in mono
parent
dadb6747
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
NEWS
NEWS
+1
-0
sidplay_decoder_plugin.cxx
src/decoder/sidplay_decoder_plugin.cxx
+10
-2
No files found.
NEWS
View file @
4e945169
...
...
@@ -35,6 +35,7 @@ ver 0.16 (20??/??/??)
- sidplay: support sub-tunes
- sidplay: implemented songlength database
- sidplay: support seeking
- sidplay: play monaural SID tunes in mono
- wavpack: activate 32 bit support
- wavpack: allow more than 2 channels
- mp4ff: rename plugin "mp4" to "mp4ff"
...
...
src/decoder/sidplay_decoder_plugin.cxx
View file @
4e945169
...
...
@@ -201,6 +201,7 @@ static void
sidplay_file_decode
(
struct
decoder
*
decoder
,
const
char
*
path_fs
)
{
int
ret
;
int
channels
;
/* load the tune */
...
...
@@ -256,7 +257,7 @@ sidplay_file_decode(struct decoder *decoder, const char *path_fs)
config
.
clockSpeed
=
SID2_CLOCK_CORRECT
;
config
.
frequency
=
48000
;
config
.
optimisation
=
SID2_DEFAULT_OPTIMISATION
;
config
.
playback
=
sid2_stereo
;
config
.
precision
=
16
;
config
.
sidDefault
=
SID2_MOS6581
;
config
.
sidEmulation
=
&
builder
;
...
...
@@ -267,6 +268,13 @@ sidplay_file_decode(struct decoder *decoder, const char *path_fs)
#else
config
.
sampleFormat
=
SID2_BIG_SIGNED
;
#endif
if
(
tune
.
isStereo
())
{
config
.
playback
=
sid2_stereo
;
channels
=
2
;
}
else
{
config
.
playback
=
sid2_mono
;
channels
=
1
;
}
iret
=
player
.
config
(
config
);
if
(
iret
!=
0
)
{
...
...
@@ -277,7 +285,7 @@ sidplay_file_decode(struct decoder *decoder, const char *path_fs)
/* initialize the MPD decoder */
struct
audio_format
audio_format
;
audio_format_init
(
&
audio_format
,
48000
,
SAMPLE_FORMAT_S16
,
2
);
audio_format_init
(
&
audio_format
,
48000
,
SAMPLE_FORMAT_S16
,
channels
);
assert
(
audio_format_valid
(
&
audio_format
));
decoder_initialized
(
decoder
,
&
audio_format
,
true
,
(
float
)
song_len
);
...
...
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