| 21 | } |
| 22 | |
| 23 | RecorderNode::RecorderNode(AudioContext& r, int channelCount) |
| 24 | : AudioNode(r, *desc()) |
| 25 | { |
| 26 | m_sampleRate = r.sampleRate(); |
| 27 | m_channelCount = channelCount; |
| 28 | m_channelCountMode = ChannelCountMode::Explicit; |
| 29 | m_channelInterpretation = ChannelInterpretation::Discrete; |
| 30 | addInput(std::unique_ptr<AudioNodeInput>(new AudioNodeInput(this))); |
| 31 | addOutput(std::unique_ptr<AudioNodeOutput>(new AudioNodeOutput(this, 1))); |
| 32 | initialize(); |
| 33 | } |
| 34 | |
| 35 | RecorderNode::RecorderNode(AudioContext & ac, const AudioStreamConfig & outConfig) |
| 36 | : AudioNode(ac, *desc()) |
nothing calls this directly
no test coverage detected