Resolves #427. Moves the module(s) reset operation to the stop() method

so that the modules are reset after they are shut down, in order to
prepare for processing chain reuse.

Previously, the modules were reset upon startup, but after any traffic
channel metadata had already been transferred to the channel state,
causing the metadata to be lost and allowing initial audio packets to
stream without any metadata and related streaming/monitoring rules.
This commit is contained in:
Denny
2018-09-20 04:01:45 -04:00
parent 28bc02e172
commit d752917073

View File

@@ -565,12 +565,6 @@ public class ProcessingChain implements IChannelEventListener
{
if(mSource != null)
{
//Reset each of the modules
for(Module module : mModules)
{
module.reset();
}
//Broadcast the source sample rate so that each of the modules can self-configure
mSourceEventBroadcaster.broadcast(SourceEvent.sampleRateChange(mSource.getSampleRate(), "Processing Chain Startup"));
@@ -652,6 +646,12 @@ public class ProcessingChain implements IChannelEventListener
{
module.stop();
}
//Reset each of the modules
for(Module module : mModules)
{
module.reset();
}
}
}