krig / go-sox

libsox bindings for go
MIT License
134 stars 26 forks source link

rtp stream exploitation #2

Open domiatovh opened 8 years ago

domiatovh commented 8 years ago

Hello, I need to analyze rtp streams (pcmu, pcma) and I would like to use this package. I saw "OpenMemRead" use "C.sox_open_mem_read" with default nil encodinginfo_t and nil signalinfo_t parameters. Is there a way to read and exploit a pcm file or stream ? (There is no setter for fmt.cFormat). Thanks in advance.

krig commented 8 years ago

Well, the go library maps as directly as possible to the C library, so you'll need to expose those structures as go structs and add arguments to OpenMemRead to pass them in. Feel free to send a pull request if you add it :)