test_class.file: domain/src/test/java/org/m4m/domain/AudioEncoderTest.java
test_class.identifier: AudioEncoderTest
test_class.superclass: extends TestBase
test_case.body: @Test
      public void findFreeFrameReturnsCorrectBufferIndex_whenHasInputBuffer() {
          AudioEncoder encoder = create.audioEncoder().withDequeueInputBufferIndex(0, 1).construct();
          encoder.start();
  
          Frame frame;
  
          encoder.fillCommandQueues();
          encoder.fillCommandQueues();
  
          frame = encoder.findFreeFrame();
  
          assertEquals(0, frame.getBufferIndex());
  
          frame = encoder.findFreeFrame();
  
          assertEquals(1, frame.getBufferIndex());
      }
test_case.class_method_signature: AudioEncoderTest.findFreeFrameReturnsCorrectBufferIndex_whenHasInputBuffer()
test_case.full_signature: @Test public void findFreeFrameReturnsCorrectBufferIndex_whenHasInputBuffer()
test_case.identifier: findFreeFrameReturnsCorrectBufferIndex_whenHasInputBuffer
test_case.invocations: construct withDequeueInputBufferIndex audioEncoder start fillCommandQueues fillCommandQueues findFreeFrame assertEquals getBufferIndex findFreeFrame assertEquals getBufferIndex
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void findFreeFrameReturnsCorrectBufferIndex_whenHasInputBuffer()
focal_class.declarator: resampler = null
focal_class.modifier: private
focal_class.original_string: private Resampler resampler = null;
focal_class.type: Resampler
focal_class.var_name: resampler
focal_class.declarator: inputAudioFormat
focal_class.modifier: private
focal_class.original_string: private AudioFormat inputAudioFormat;
focal_class.type: AudioFormat
focal_class.var_name: inputAudioFormat
focal_class.file: domain/src/main/java/org/m4m/domain/AudioEncoder.java
focal_class.identifier: AudioEncoder
focal_class.class_method_signature: AudioEncoder.AudioEncoder(IMediaCodec mediaCodec)
focal_class.full_signature: public  AudioEncoder(IMediaCodec mediaCodec)
focal_class.identifier: AudioEncoder
focal_class.modifiers: public
focal_class.parameters: (IMediaCodec mediaCodec)
focal_class.signature:  AudioEncoder(IMediaCodec mediaCodec)
focal_class.class_method_signature: AudioEncoder.setMediaFormat(MediaFormat mediaFormat)
focal_class.full_signature: @Override public void setMediaFormat(MediaFormat mediaFormat)
focal_class.identifier: setMediaFormat
focal_class.modifiers: @Override public
focal_class.parameters: (MediaFormat mediaFormat)
focal_class.return: void
focal_class.signature: void setMediaFormat(MediaFormat mediaFormat)
focal_class.class_method_signature: AudioEncoder.setInputMediaFormat(MediaFormat mediaFormat)
focal_class.full_signature: @Override public void setInputMediaFormat(MediaFormat mediaFormat)
focal_class.identifier: setInputMediaFormat
focal_class.modifiers: @Override public
focal_class.parameters: (MediaFormat mediaFormat)
focal_class.return: void
focal_class.signature: void setInputMediaFormat(MediaFormat mediaFormat)
focal_class.class_method_signature: AudioEncoder.initInputCommandQueue()
focal_class.full_signature: @Override protected void initInputCommandQueue()
focal_class.identifier: initInputCommandQueue
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void initInputCommandQueue()
focal_class.class_method_signature: AudioEncoder.isLastFile()
focal_class.full_signature: @Override public boolean isLastFile()
focal_class.identifier: isLastFile
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isLastFile()
focal_class.class_method_signature: AudioEncoder.setOutputSurface(ISurface surface)
focal_class.full_signature: @Override public void setOutputSurface(ISurface surface)
focal_class.identifier: setOutputSurface
focal_class.modifiers: @Override public
focal_class.parameters: (ISurface surface)
focal_class.return: void
focal_class.signature: void setOutputSurface(ISurface surface)
focal_class.class_method_signature: AudioEncoder.waitForSurface(long pts)
focal_class.full_signature: @Override public void waitForSurface(long pts)
focal_class.identifier: waitForSurface
focal_class.modifiers: @Override public
focal_class.parameters: (long pts)
focal_class.return: void
focal_class.signature: void waitForSurface(long pts)
focal_class.class_method_signature: AudioEncoder.drain(int bufferIndex)
focal_class.full_signature: @Override public void drain(int bufferIndex)
focal_class.identifier: drain
focal_class.modifiers: @Override public
focal_class.parameters: (int bufferIndex)
focal_class.return: void
focal_class.signature: void drain(int bufferIndex)
focal_class.class_method_signature: AudioEncoder.push(Frame frame)
focal_class.full_signature: @Override public void push(Frame frame)
focal_class.identifier: push
focal_class.modifiers: @Override public
focal_class.parameters: (Frame frame)
focal_class.return: void
focal_class.signature: void push(Frame frame)
focal_class.class_method_signature: AudioEncoder.getSampleRate()
focal_class.full_signature: public int getSampleRate()
focal_class.identifier: getSampleRate
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getSampleRate()
focal_class.class_method_signature: AudioEncoder.getChannelCount()
focal_class.full_signature: public int getChannelCount()
focal_class.identifier: getChannelCount
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getChannelCount()
focal_class.class_method_signature: AudioEncoder.getBitRate()
focal_class.full_signature: public int getBitRate()
focal_class.identifier: getBitRate
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getBitRate()
focal_class.class_method_signature: AudioEncoder.setSampleRate(int sampleRateInHz)
focal_class.full_signature: public void setSampleRate(int sampleRateInHz)
focal_class.identifier: setSampleRate
focal_class.modifiers: public
focal_class.parameters: (int sampleRateInHz)
focal_class.return: void
focal_class.signature: void setSampleRate(int sampleRateInHz)
focal_class.class_method_signature: AudioEncoder.setChannelCount(int channelCount)
focal_class.full_signature: public void setChannelCount(int channelCount)
focal_class.identifier: setChannelCount
focal_class.modifiers: public
focal_class.parameters: (int channelCount)
focal_class.return: void
focal_class.signature: void setChannelCount(int channelCount)
focal_class.class_method_signature: AudioEncoder.getAudioFormat()
focal_class.full_signature: private AudioFormat getAudioFormat()
focal_class.identifier: getAudioFormat
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: AudioFormat
focal_class.signature: AudioFormat getAudioFormat()
focal_class.class_method_signature: AudioEncoder.resampleAudioFrame(Frame frame)
focal_class.full_signature: public void resampleAudioFrame(Frame frame)
focal_class.identifier: resampleAudioFrame
focal_class.modifiers: public
focal_class.parameters: (Frame frame)
focal_class.return: void
focal_class.signature: void resampleAudioFrame(Frame frame)
focal_class.class_method_signature: AudioEncoder.addResampler(Resampler resampler)
focal_class.full_signature: public void addResampler(Resampler resampler)
focal_class.identifier: addResampler
focal_class.modifiers: public
focal_class.parameters: (Resampler resampler)
focal_class.return: void
focal_class.signature: void addResampler(Resampler resampler)
focal_class.superclass: extends Encoder
focal_method.body: public AudioEncoder(IMediaCodec mediaCodec) {
          super(mediaCodec);
      }
focal_method.class_method_signature: AudioEncoder.AudioEncoder(IMediaCodec mediaCodec)
focal_method.full_signature: public  AudioEncoder(IMediaCodec mediaCodec)
focal_method.identifier: AudioEncoder
focal_method.modifiers: public
focal_method.parameters: (IMediaCodec mediaCodec)
focal_method.signature:  AudioEncoder(IMediaCodec mediaCodec)