1. 1 The Motivation




Download 0.89 Mb.
bet26/32
Sana22.07.2021
Hajmi0.89 Mb.
#15652
1   ...   22   23   24   25   26   27   28   29   ...   32
6.3 Packing Subsystem
The pack subsystem was implemented successfully it uses the packet structure developed at UCL for the RAT application. The subsystem has the following functions;

  • pack_setup() setups up the two internal circular queues used to store the outgoing blocks and the incoming packets. The pack_process_in thread is also started which will process incoming packets.

  • pack_stop() stops the pack_process_in thread and tears down the two internal circular queues.

  • pack_audio_in(unsigned char *packet) places incoming packets onto the internal queue and once four packets have arrived, signals the pack_process_in thread that their are packets to process.

  • pack_audio_out(unsigned char *block) places outgoing blocks into the queue in the appropriate order, such that, once sixteen blocks have arrived four packets are then formed and passed to the communications subsystem to send the packets to the other system.

  • pack_process_in() once executed waits for a signal that packets are ready to be processed. Once a notification signal has been received the four packets are taken and the blocks within each packet are rearranged to the correct order and are then passed to the codec subsystem for processing.

Although the time allocated to implement the packet subsystem was reduced the packet subsystem was still implementing in full, on time.


Download 0.89 Mb.
1   ...   22   23   24   25   26   27   28   29   ...   32




Download 0.89 Mb.