Lines Matching refs:hfp_msbc_buffer_offset
67 static int hfp_msbc_buffer_offset = 0; variable
71 hfp_msbc_buffer_offset = 0; in hfp_msbc_init()
78 hfp_msbc_buffer_offset = 0; in hfp_msbc_deinit()
82 … return (sizeof(hfp_msbc_buffer) - hfp_msbc_buffer_offset) >= (MSBC_FRAME_SIZE + MSBC_EXTRA_SIZE); in hfp_msbc_can_encode_audio_frame_now()
89 hfp_msbc_buffer[hfp_msbc_buffer_offset++] = hfp_msbc_header_h2_byte_0; in hfp_msbc_encode_audio_frame()
90 …hfp_msbc_buffer[hfp_msbc_buffer_offset++] = hfp_msbc_header_h2_byte_1_table[hfp_msbc_msbc_sequence… in hfp_msbc_encode_audio_frame()
95 (void)memcpy(hfp_msbc_buffer + hfp_msbc_buffer_offset, in hfp_msbc_encode_audio_frame()
97 hfp_msbc_buffer_offset += MSBC_FRAME_SIZE; in hfp_msbc_encode_audio_frame()
100 hfp_msbc_buffer[hfp_msbc_buffer_offset++] = 0; in hfp_msbc_encode_audio_frame()
105 if (size > hfp_msbc_buffer_offset){ in hfp_msbc_read_from_stream()
106 bytes_to_copy = hfp_msbc_buffer_offset; in hfp_msbc_read_from_stream()
113 hfp_msbc_buffer_offset -= bytes_to_copy; in hfp_msbc_read_from_stream()
117 return hfp_msbc_buffer_offset; in hfp_msbc_num_bytes_in_stream()