Play raw PCM audio received in UDP packets
问题 The remote device is sending live raw PCM audio(no header included) in UDP packets and I need to implement a program in java to receive these packets and play them on the PC live. As I know that raw PCM's attributes are 16bit, mono, sampling rate 24KHz, so I tried to add a wav header to this raw PCM audio and play but the problem is I don't have File size of the audio. I also implemented a program based on this link but it only gives noise in output. I am bound to use UDP and I can get only