Esempio n. 1
0
  public void addFrameToBuffer(final User u, final PacketDataStream pds, final int flags) {
    AudioUser user = users.get(u);
    if (user == null) {
      user = new AudioUser(u, settings.isJitterBuffer());
      users.put(u, user);
      // Don't add the user to userPackets yet. The collection should
      // have only users with ready frames. Since this method is
      // called only from the TCP connection thread it will never
      // create a new AudioUser while a previous one is still decoding.
    }

    user.addFrameToBuffer(pds, packetReadyHandler);
  }