Fix memory leak, re-enable play command (it doesnt work lol)
This commit is contained in:
@@ -21,7 +21,11 @@ namespace audio {
|
|||||||
|
|
||||||
static const std::size_t kSamplesPerChunk = 256;
|
static const std::size_t kSamplesPerChunk = 256;
|
||||||
|
|
||||||
AudioDecoder::AudioDecoder() : IAudioElement(), stream_info_({}) {}
|
AudioDecoder::AudioDecoder()
|
||||||
|
: IAudioElement(),
|
||||||
|
stream_info_({}),
|
||||||
|
has_samples_to_send_(false),
|
||||||
|
needs_more_input_(true) {}
|
||||||
|
|
||||||
AudioDecoder::~AudioDecoder() {}
|
AudioDecoder::~AudioDecoder() {}
|
||||||
|
|
||||||
|
|||||||
@@ -38,11 +38,11 @@ auto AudioPlayback::create(drivers::GpioExpander* expander,
|
|||||||
playback->ConnectElements(codec.get(), sink.get());
|
playback->ConnectElements(codec.get(), sink.get());
|
||||||
|
|
||||||
// Launch!
|
// Launch!
|
||||||
/*
|
|
||||||
playback->element_handles_.push_back(StartAudioTask("src", source));
|
playback->element_handles_.push_back(StartAudioTask("src", source));
|
||||||
playback->element_handles_.push_back(StartAudioTask("dec", codec));
|
playback->element_handles_.push_back(StartAudioTask("dec", codec));
|
||||||
playback->element_handles_.push_back(StartAudioTask("sink", sink));
|
playback->element_handles_.push_back(StartAudioTask("sink", sink));
|
||||||
*/
|
|
||||||
|
playback->input_handle_ = source->InputEventQueue();
|
||||||
|
|
||||||
return playback;
|
return playback;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user