summaryrefslogtreecommitdiff
path: root/src/lib/resampler.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-07-24 15:53:54 +0100
committerCarl Hetherington <cth@carlh.net>2013-07-24 15:53:54 +0100
commit0c01a21ffc4cf9eea71a662916cc3095f2634216 (patch)
tree8dd9d52d022437a91243635eef69404b43d2c446 /src/lib/resampler.cc
parent0ca58170da6cd1b7055c9c4b57a5d3e6a10cea7c (diff)
Try to clean up resampler output correctly.
Diffstat (limited to 'src/lib/resampler.cc')
-rw-r--r--src/lib/resampler.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/resampler.cc b/src/lib/resampler.cc
index 565fb69c2..2a4320bd8 100644
--- a/src/lib/resampler.cc
+++ b/src/lib/resampler.cc
@@ -42,6 +42,8 @@ Resampler::Resampler (int in, int out, int channels)
input and output layouts are the same.
*/
+ cout << "resamp for " << _channels << " " << _in_rate << " " << _out_rate << "\n";
+
_swr_context = swr_alloc_set_opts (
0,
av_get_default_channel_layout (_channels),
@@ -80,7 +82,6 @@ Resampler::run (shared_ptr<const AudioBuffers> in)
return resampled;
}
-/* XXX: no-one calls this */
shared_ptr<const AudioBuffers>
Resampler::flush ()
{