Lines Matching refs:left
1148 HearingDevice* left = nullptr; in OnAudioDataReady() local
1154 left = &device; in OnAudioDataReady()
1159 if (left == nullptr && right == nullptr) { in OnAudioDataReady()
1168 if (left == nullptr || right == nullptr) { in OnAudioDataReady()
1172 int16_t left = (int16_t)((*(sample + 1) << 8) + *sample) >> 1; in OnAudioDataReady() local
1177 uint16_t mono_data = (int16_t)(((uint32_t)left + (uint32_t)right) >> 1); in OnAudioDataReady()
1185 uint16_t left = (int16_t)((*(sample + 1) << 8) + *sample) >> 1; in OnAudioDataReady() local
1186 chan_left.push_back(left); in OnAudioDataReady()
1202 if (left) { in OnAudioDataReady()
1211 uint16_t cid = GAP_ConnGetL2CAPCid(left->gap_handle); in OnAudioDataReady()
1214 VLOG(2) << left->address << " skipping " << packets_to_flush in OnAudioDataReady()
1216 left->audio_stats.packet_flush_count += packets_to_flush; in OnAudioDataReady()
1217 left->audio_stats.frame_flush_count++; in OnAudioDataReady()
1222 check_and_do_rssi_read(left); in OnAudioDataReady()
1256 if (left) { in OnAudioDataReady()
1257 left->audio_stats.packet_send_count++; in OnAudioDataReady()
1258 SendAudio(encoded_data_left.data() + i, packet_size, left); in OnAudioDataReady()
1266 if (left) left->audio_stats.frame_send_count++; in OnAudioDataReady()