pcm/Volume: Open() returns output sample format

Prepare for a new mode which may convert to a different sample format
when applying volume, to reduce dithering.
This commit is contained in:
Max Kellermann
2019-07-05 19:03:00 +02:00
parent 1c757f8c1c
commit 5fa7610264
6 changed files with 13 additions and 8 deletions

View File

@@ -36,7 +36,7 @@ TestVolume(G g=G())
typedef typename Traits::value_type value_type;
PcmVolume pv;
pv.Open(F);
EXPECT_EQ(pv.Open(F), F);
constexpr size_t N = 509;
static value_type zero[N];