As@JimB already answewd on StackOverflow, you append a slice as an element into 
re.data. As a slice is just len,cap and a pointer to a backing array, if sth 
reuses that slice, and write to the same backing array, your "old" slice will 
chanfe, too!

So not append is rewriting - print re.data before the append, but after the 
receive!

As PortAudio reuses the slice, you hace to copy out the required data.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to