Streaming Audio to Multiple Listeners via iOS' Multipeer Connectivity
to stream data to a connected peer. This is what we'll use to send the audio data. On the receiving end, Multipeer Connectivity uses NSInputStream which we'll use to harvest the incoming data. Using the Apple provided Audio Queue Services , we'll send the data to the device's system. With the Audio Queue Services, we can fill buffers with audio data and then play them. This is all we need in order to play raw audio data, but most audio files are encoded to reduce file size like MP3 and AAC files. Apple provides the Audio File Stream Services that can process the encoded audio format and return the raw audio data. The picture below shows the flow of data and initial state of the proposed solution.