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
8a6d448a
Commit
8a6d448a
authored
Dec 26, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder/wavpack: allow fine-grained seeking
First multiply the floating point return value of decoder_seek_where(), then cast to integer.
parent
a1939f39
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
NEWS
NEWS
+1
-0
wavpack_plugin.c
src/decoder/wavpack_plugin.c
+2
-3
No files found.
NEWS
View file @
8a6d448a
...
...
@@ -9,6 +9,7 @@ ver 0.15.7 (2009/??/??)
- id3: fix ID3v1 charset conversion
* decoders:
- ffmpeg: don't try to force stereo
- wavpack: allow fine-grained seeking
* mixer: explicitly close all mixers on shutdown
* mapper: fix memory leak when playlist_directory is not set
* mapper: apply filesystem_charset to playlists
...
...
src/decoder/wavpack_plugin.c
View file @
8a6d448a
...
...
@@ -185,10 +185,9 @@ wavpack_decode(struct decoder *decoder, WavpackContext *wpc, bool can_seek,
do
{
if
(
decoder_get_command
(
decoder
)
==
DECODE_COMMAND_SEEK
)
{
if
(
can_seek
)
{
int
where
;
unsigned
where
=
decoder_seek_where
(
decoder
)
*
audio_format
.
sample_rate
;
where
=
decoder_seek_where
(
decoder
);
where
*=
audio_format
.
sample_rate
;
if
(
WavpackSeekSample
(
wpc
,
where
))
{
position
=
where
;
decoder_command_finished
(
decoder
);
...
...
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