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
6e04d66a
Commit
6e04d66a
authored
Aug 31, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Plain Diff
Merge tag 'v0.18.13'
parents
26bef5d2
86e8b3b4
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
52 additions
and
11 deletions
+52
-11
NEWS
NEWS
+7
-1
protocol.xml
doc/protocol.xml
+6
-1
AlsaOutputPlugin.cxx
src/output/plugins/AlsaOutputPlugin.cxx
+11
-0
OssOutputPlugin.cxx
src/output/plugins/OssOutputPlugin.cxx
+4
-0
Playlist.hxx
src/queue/Playlist.hxx
+4
-0
PlaylistControl.cxx
src/queue/PlaylistControl.cxx
+20
-9
No files found.
NEWS
View file @
6e04d66a
...
...
@@ -68,10 +68,16 @@ ver 0.19 (not yet released)
* install systemd unit for socket activation
* Android port
ver 0.18.13 (not yet released)
ver 0.18.13 (2014/08/31)
* protocol
- don't change song on "seekcur" in random mode
* decoder
- dsdiff, dsf: fix endless loop on malformed file
- ffmpeg: support ffmpeg/libav version 11
- gme: fix song duration
* output
- alsa: fix endless loop at end of file in dsd_usb mode
* fix state file saver
* fix build failure on Darwin
...
...
doc/protocol.xml
View file @
6e04d66a
...
...
@@ -576,7 +576,12 @@
</listitem>
<listitem>
<para>
<varname>
songs
</varname>
: number of albums
<varname>
albums
</varname>
: number of albums
</para>
</listitem>
<listitem>
<para>
<varname>
songs
</varname>
: number of songs
</para>
</listitem>
<listitem>
...
...
src/output/plugins/AlsaOutputPlugin.cxx
View file @
6e04d66a
...
...
@@ -825,6 +825,7 @@ alsa_play(AudioOutput *ao, const void *chunk, size_t size,
{
AlsaOutput
*
ad
=
(
AlsaOutput
*
)
ao
;
assert
(
size
>
0
);
assert
(
size
%
ad
->
in_frame_size
==
0
);
if
(
ad
->
must_prepare
)
{
...
...
@@ -838,12 +839,22 @@ alsa_play(AudioOutput *ao, const void *chunk, size_t size,
}
const
auto
e
=
ad
->
pcm_export
->
Export
({
chunk
,
size
});
if
(
e
.
size
==
0
)
/* the DoP (DSD over PCM) filter converts two frames
at a time and ignores the last odd frame; if there
was only one frame (e.g. the last frame in the
file), the result is empty; to avoid an endless
loop, bail out here, and pretend the one frame has
been played */
return
size
;
chunk
=
e
.
data
;
size
=
e
.
size
;
assert
(
size
%
ad
->
out_frame_size
==
0
);
size
/=
ad
->
out_frame_size
;
assert
(
size
>
0
);
while
(
true
)
{
snd_pcm_sframes_t
ret
=
ad
->
writei
(
ad
->
pcm
,
chunk
,
size
);
...
...
src/output/plugins/OssOutputPlugin.cxx
View file @
6e04d66a
...
...
@@ -724,6 +724,8 @@ oss_output_play(AudioOutput *ao, const void *chunk, size_t size,
OssOutput
*
od
=
(
OssOutput
*
)
ao
;
ssize_t
ret
;
assert
(
size
>
0
);
/* reopen the device since it was closed by dropBufferedAudio */
if
(
od
->
fd
<
0
&&
!
oss_reopen
(
od
,
error
))
return
0
;
...
...
@@ -734,6 +736,8 @@ oss_output_play(AudioOutput *ao, const void *chunk, size_t size,
size
=
e
.
size
;
#endif
assert
(
size
>
0
);
while
(
true
)
{
ret
=
write
(
od
->
fd
,
chunk
,
size
);
if
(
ret
>
0
)
{
...
...
src/queue/Playlist.hxx
View file @
6e04d66a
...
...
@@ -251,6 +251,10 @@ public:
void
PlayPrevious
(
PlayerControl
&
pc
);
PlaylistResult
SeekSongOrder
(
PlayerControl
&
pc
,
unsigned
song_order
,
SongTime
seek_time
);
PlaylistResult
SeekSongPosition
(
PlayerControl
&
pc
,
unsigned
song_position
,
SongTime
seek_time
);
...
...
src/queue/PlaylistControl.cxx
View file @
6e04d66a
...
...
@@ -190,18 +190,12 @@ playlist::PlayPrevious(PlayerControl &pc)
}
PlaylistResult
playlist
::
SeekSongPosition
(
PlayerControl
&
pc
,
unsigned
song
,
SongTime
seek_time
)
playlist
::
SeekSongOrder
(
PlayerControl
&
pc
,
unsigned
i
,
SongTime
seek_time
)
{
if
(
!
queue
.
IsValidPosition
(
song
))
return
PlaylistResult
::
BAD_RANGE
;
assert
(
queue
.
IsValidOrder
(
i
));
const
DetachedSong
*
queued_song
=
GetQueuedSong
();
unsigned
i
=
queue
.
random
?
queue
.
PositionToOrder
(
song
)
:
song
;
pc
.
ClearError
();
stop_on_error
=
true
;
error_count
=
0
;
...
...
@@ -229,6 +223,20 @@ playlist::SeekSongPosition(PlayerControl &pc,
}
PlaylistResult
playlist
::
SeekSongPosition
(
PlayerControl
&
pc
,
unsigned
song
,
SongTime
seek_time
)
{
if
(
!
queue
.
IsValidPosition
(
song
))
return
PlaylistResult
::
BAD_RANGE
;
unsigned
i
=
queue
.
random
?
queue
.
PositionToOrder
(
song
)
:
song
;
return
SeekSongOrder
(
pc
,
i
,
seek_time
);
}
PlaylistResult
playlist
::
SeekSongId
(
PlayerControl
&
pc
,
unsigned
id
,
SongTime
seek_time
)
{
int
song
=
queue
.
IdToPosition
(
id
);
...
...
@@ -257,5 +265,8 @@ playlist::SeekCurrent(PlayerControl &pc,
seek_time
=
SignedSongTime
::
zero
();
}
return
SeekSongPosition
(
pc
,
current
,
SongTime
(
seek_time
));
if
(
seek_time
.
IsNegative
())
seek_time
=
SignedSongTime
::
zero
();
return
SeekSongOrder
(
pc
,
current
,
SongTime
(
seek_time
));
}
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