PcmConvert: add methods Open(), Close()

Replaces Reset() and eliminates the AudioFormat parameters from the
Convert() method.
This commit is contained in:
Max Kellermann
2013-11-11 16:15:38 +01:00
parent 4ee147ea34
commit d2679f59c5
9 changed files with 151 additions and 74 deletions

View File

@@ -33,7 +33,11 @@ Decoder::~Decoder()
/* caller must flush the chunk */
assert(chunk == nullptr);
delete convert;
if (convert != nullptr) {
convert->Close();
delete convert;
}
delete song_tag;
delete stream_tag;
delete decoder_tag;