title: How to obtain mp3 audio packets for streaming in C/C++
body: <p>I want to be able to break a song into packets and have access to these individual packets.
  The reason for that is that I want to send each individual packet over the network using an experimental network protocol called Named Data Network.</p>
  
  <p>As the packets arrive at the destination I want to play them. So I want to implement a streaming functionality. The only difference is the network layer that I will use. This network layer is not based on IP.</p>
  
  <p>Does anyone know any C/C++ implementation of breaking a song file into pieces and then playing these packets individually? I looked over Gstreamer, but it seems complicated to get individual packets from its pipeline structure.
  I found this reference which was the closest to what I wanted, however it was not so clear for me: <a href="https://stackoverflow.com/questions/22620617/how-can-i-parse-audio-raw-data-recorder-with-gstreamer">how can I parse audio raw data recorder with gstreamer?</a></p>
  
  <p>Summarizing the points I need:</p>
  
  <ol>
  <li>Break a song into packets</li>
  <li>Play the audio content of a single packet (or a small set of packets). </li>
  </ol>
  
  <p>Thank you very much for the help!</p>