RofhiT / Publications
Forum
Is it possible to receive a sound in RIFF Wave Format using a Socket and Write it to a File and play the sound file
// Load the binary sound file into a byte array string result; uchar wavHeader[8]; int file = FileOpen("sound.wav", FILE_WRITE|FILE_READ|FILE_BIN); if (file < 0) {Print("Error opening file ");} uint timeout = 10000; uchar response[]; // use an appropriate buffer size uint rlen =