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
e504913b
Commit
e504913b
authored
Nov 28, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pcm: drop compatibility with libsamplerate older than 0.1.3
Remove compatibility code.
parent
af4133e3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
29 deletions
+1
-29
configure.ac
configure.ac
+1
-9
PcmResampleLibsamplerate.cxx
src/pcm/PcmResampleLibsamplerate.cxx
+0
-20
No files found.
configure.ac
View file @
e504913b
...
...
@@ -748,20 +748,12 @@ dnl Converter Plugins
dnl ---------------------------------------------------------------------------
dnl ------------------------------ libsamplerate ------------------------------
MPD_AUTO_PKG(lsr, SAMPLERATE, [samplerate >= 0.
0.15
],
MPD_AUTO_PKG(lsr, SAMPLERATE, [samplerate >= 0.
1.3
],
[libsamplerate resampling], [libsamplerate not found])
if test x$enable_lsr = xyes; then
AC_DEFINE([HAVE_LIBSAMPLERATE], 1,
[Define to enable libsamplerate])
fi
if test x$enable_lsr = xyes; then
PKG_CHECK_MODULES([SAMPLERATE_013],
[samplerate >= 0.1.3],,
[AC_DEFINE([HAVE_LIBSAMPLERATE_NOINT], 1,
[libsamplerate doesn't provide src_int_to_float_array() (<0.1.3)])])
fi
AM_CONDITIONAL(HAVE_LIBSAMPLERATE, test x$enable_lsr = xyes)
dnl ---------------------------------------------------------------------------
...
...
src/pcm/PcmResampleLibsamplerate.cxx
View file @
e504913b
...
...
@@ -225,26 +225,6 @@ pcm_resample_lsr_16(PcmResampler *state,
return
dest_buffer
;
}
#ifdef HAVE_LIBSAMPLERATE_NOINT
/* libsamplerate introduced these functions in v0.1.3 */
static
void
src_int_to_float_array
(
const
int
*
in
,
float
*
out
,
int
len
)
{
while
(
len
--
>
0
)
*
out
++
=
*
in
++
/
(
float
)(
1
<<
(
24
-
1
));
}
static
void
src_float_to_int_array
(
const
float
*
in
,
int
*
out
,
int
len
)
{
while
(
len
--
>
0
)
*
out
++
=
*
in
++
*
(
float
)(
1
<<
(
24
-
1
));
}
#endif
const
int32_t
*
pcm_resample_lsr_32
(
PcmResampler
*
state
,
unsigned
channels
,
...
...
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