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
c68ed406
Commit
c68ed406
authored
Jan 02, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pcm/SoxrResampler: implement method Reset()
parent
ff624075
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
NEWS
NEWS
+2
-0
SoxrResampler.cxx
src/pcm/SoxrResampler.cxx
+8
-0
SoxrResampler.hxx
src/pcm/SoxrResampler.hxx
+1
-0
No files found.
NEWS
View file @
c68ed406
ver 0.20.15 (not yet released)
* resampler
- soxr: clear internal state after manual song change
* state file
- make mount point restore errors non-fatal
- fix crash when restoring mounts with incompatible database plugin
...
...
src/pcm/SoxrResampler.cxx
View file @
c68ed406
...
...
@@ -139,6 +139,14 @@ SoxrPcmResampler::Close()
soxr_delete
(
soxr
);
}
void
SoxrPcmResampler
::
Reset
()
{
#if SOXR_THIS_VERSION >= SOXR_VERSION(0,1,2)
soxr_clear
(
soxr
);
#endif
}
ConstBuffer
<
void
>
SoxrPcmResampler
::
Resample
(
ConstBuffer
<
void
>
src
)
{
...
...
src/pcm/SoxrResampler.hxx
View file @
c68ed406
...
...
@@ -41,6 +41,7 @@ class SoxrPcmResampler final : public PcmResampler {
public
:
AudioFormat
Open
(
AudioFormat
&
af
,
unsigned
new_sample_rate
)
override
;
void
Close
()
override
;
void
Reset
()
override
;
ConstBuffer
<
void
>
Resample
(
ConstBuffer
<
void
>
src
)
override
;
};
...
...
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