modules/audio_coding/acm2/acm_send_test_oldapi.cc
int32_t AcmSendTestOldApi::SendData(
    FrameType frame_type,
    uint8_t payload_type,
    uint32_t timestamp,
    const uint8_t* payload_data,
    size_t payload_len_bytes,
    const RTPFragmentationHeader* fragmentation) {
  // Store the packet locally.
  frame_type_ = frame_type;
  payload_type_ = payload_type;
  timestamp_ = timestamp;
  last_payload_vec_.assign(payload_data, payload_data + payload_len_bytes);
  assert(last_payload_vec_.size() == payload_len_bytes);
  data_to_send_ = true;
  return 0;
}
// This method receives the callback from ACM when a new packet is produced.
This method receives the callback from ACM when a new packet is produced.
This method receives the callback from ACM when a new packet is produced .
int32_t AcmSendTestOldApi::SendData(
    FrameType frame_type,
    uint8_t payload_type,
    uint32_t timestamp,
    const uint8_t* payload_data,
    size_t payload_len_bytes,
    const RTPFragmentationHeader* fragmentation) {
  frame_type_ = frame_type;
  payload_type_ = payload_type;
  timestamp_ = timestamp;
  last_payload_vec_.assign(payload_data, payload_data + payload_len_bytes);
  assert(last_payload_vec_.size() == payload_len_bytes);
  data_to_send_ = true;
  return 0;
}
int32_t AcmSendTestOldApi :: SendData ( FrameType frame_type , uint8_t payload_type , uint32_t timestamp , const uint8_t * payload_data , size_t payload_len_bytes , const RTPFragmentationHeader * fragmentation ) { frame_type_ = frame_type ; payload_type_ = payload_type ; timestamp_ = timestamp ; last_payload_vec_ . assign ( payload_data , payload_data + payload_len_bytes ) ; assert ( last_payload_vec_ . size ( ) == payload_len_bytes ) ; data_to_send_ = true ; return 0 ; }
This method receives the callback from ACM when a new packet is produced.
This method receives the callback from ACM when a new packet is produced .
// Store the packet locally.