Re: Open Sound Control: Is it still a thing?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, May 03, 2021 at 09:39:15PM +0200, Winfried Ritsch wrote:

> Am Montag, 3. Mai 2021, 11:48:07 CEST schrieb Fons Adriaensen:
> > So you can't just 'wait for a message' without interpreting it and
> > then only when it is complete pass it to a decoder.
>  
> true

Of course the simple solution if you have a 'stream of bytes' 
transport is to add a 32-bit int prefix to each message, giving
its length. The you wait for 4 bytes, decode to L, wait for L
bytes, and you have a complete message.

Ciao,

-- 
FA

_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@xxxxxxxxxxxxxxxxxxxx
https://lists.linuxaudio.org/listinfo/linux-audio-user




[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux