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
104075f3
Commit
104075f3
authored
Jul 05, 2016
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PlayerThread: use PcmSilence() in SendSilence()
No change for regular PCM, but DSD uses 0x69 now.
parent
b8097eaf
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
NEWS
NEWS
+1
-0
PlayerThread.cxx
src/PlayerThread.cxx
+2
-1
No files found.
NEWS
View file @
104075f3
ver 0.19.17 (not yet released)
ver 0.19.17 (not yet released)
* fix spurious seek error "Failed to allocate silence buffer"
* fix spurious seek error "Failed to allocate silence buffer"
* replay gain: fix "replay_gain_handler mixer" setting
* replay gain: fix "replay_gain_handler mixer" setting
* DSD: use 0x69 as silence pattern
ver 0.19.16 (2016/06/13)
ver 0.19.16 (2016/06/13)
* faster seeking
* faster seeking
...
...
src/PlayerThread.cxx
View file @
104075f3
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
#include "MusicPipe.hxx"
#include "MusicPipe.hxx"
#include "MusicBuffer.hxx"
#include "MusicBuffer.hxx"
#include "MusicChunk.hxx"
#include "MusicChunk.hxx"
#include "pcm/Silence.hxx"
#include "DetachedSong.hxx"
#include "DetachedSong.hxx"
#include "system/FatalError.hxx"
#include "system/FatalError.hxx"
#include "CrossFade.hxx"
#include "CrossFade.hxx"
...
@@ -505,7 +506,7 @@ Player::SendSilence()
...
@@ -505,7 +506,7 @@ Player::SendSilence()
chunk
->
time
=
SignedSongTime
::
Negative
();
/* undefined time stamp */
chunk
->
time
=
SignedSongTime
::
Negative
();
/* undefined time stamp */
chunk
->
length
=
num_frames
*
frame_size
;
chunk
->
length
=
num_frames
*
frame_size
;
memset
(
chunk
->
data
,
0
,
chunk
->
length
);
PcmSilence
({
chunk
->
data
,
chunk
->
length
},
play_audio_format
.
format
);
Error
error
;
Error
error
;
if
(
!
pc
.
outputs
.
Play
(
chunk
,
error
))
{
if
(
!
pc
.
outputs
.
Play
(
chunk
,
error
))
{
...
...
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