diff --git a/apps/bap_broadcast_source.py b/apps/bap_broadcast_source.py index 16af527..ac426fb 100644 --- a/apps/bap_broadcast_source.py +++ b/apps/bap_broadcast_source.py @@ -33,7 +33,7 @@ import pyee import sys sys.path.append('../utils') -from le_audio_encoder import LeAudioEncoder +from utils.le_audio_encoder import LeAudioEncoder from bumble.colors import color from bumble import company_ids @@ -887,7 +887,8 @@ async def run_broadcast( iso_index +=1 - device.host.on('iso_packet_sent',on_iso_pdu_sent) + device.host.on('packet_complete',on_iso_pdu_sent) + print('Start sending frames') while True: await asyncio.sleep(1) diff --git a/apps/bap_unicast_client.py b/apps/bap_unicast_client.py index 9487945..6714e29 100644 --- a/apps/bap_unicast_client.py +++ b/apps/bap_unicast_client.py @@ -335,7 +335,7 @@ class Listener(Device.Listener): else: self.send_complete = True - self.device.host.on('iso_packet_sent', on_iso_pdu_sent) + self.device.host.on('packet_complete', on_iso_pdu_sent) self.device.host.send_hci_packet(self.iso_packet) while True: