Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.6 beta breaks build #13

Open
ghost opened this issue Jan 9, 2016 · 2 comments
Open

1.6 beta breaks build #13

ghost opened this issue Jan 9, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Jan 9, 2016

For now the workaround is to allow go to still send go pointers to cgo (I guess?), i.e. revert to GO 1.5

panic: runtime error: cgo argument has Go pointer to Go pointer

goroutine 1 [running]:
github.com/gordonklaus/portaudio._cgoCheckPointer1(0x4311a80, 0xc8200fe100, 0x0, 0x0, 0x0, 0x42f25a0)
??:0 +0x4d
github.com/gordonklaus/portaudio.OpenStream(0x0, 0x0, 0x0, 0xc82006c3c0, 0x1, 0xd78f88, 0x40e5888000000000, 0x100, 0x0, 0xc820055c18, ...)
/Users/timothybone/work/src/github.com/gordonklaus/portaudio/portaudio.go:504 +0x3d1
github.com/gordonklaus/portaudio.OpenDefaultStream(0x0, 0x1, 0x40e5888000000000, 0x100, 0xc820055c18, 0x1, 0x1, 0x44451a0, 0x0, 0x0)
/Users/timothybone/work/src/github.com/gordonklaus/portaudio/portaudio.go:538 +0x24a
github.com/nf/sigourney/audio.(*Engine).Start(0xc82006c2a0, 0x0, 0x0)
/Users/timothybone/work/src/github.com/nf/sigourney/audio/engine_cgo.go:24 +0x13d
main.demo(0x0, 0x0)
/Users/timothybone/work/src/github.com/nf/sigourney/demo.go:29 +0xd1
main.main()
/Users/timothybone/work/src/github.com/nf/sigourney/main.go:51 +0x9e

@nf
Copy link
Owner

nf commented Jan 12, 2016

If the portaudio maintainers don't fix it, we might have to switch to a
different package for talking to the audio card.

On Sun, Jan 10, 2016 at 10:21 AM, Timothy Bone [email protected]
wrote:

For now the workaround is to allow go to still send go pointers to cgo (I
guess?), ie revert to GO 15

panic: runtime error: cgo argument has Go pointer to Go pointer

goroutine 1 [running]:
githubcom/gordonklaus/portaudio_cgoCheckPointer1(0x4311a80, 0xc8200fe100,
0x0, 0x0, 0x0, 0x42f25a0)
??:0 +0x4d
githubcom/gordonklaus/portaudioOpenStream(0x0, 0x0, 0x0, 0xc82006c3c0,
0x1, 0xd78f88, 0x40e5888000000000, 0x100, 0x0, 0xc820055c18, )
/Users/timothybone/work/src/githubcom/gordonklaus/portaudio/portaudiogo:504
+0x3d1
githubcom/gordonklaus/portaudioOpenDefaultStream(0x0, 0x1,
0x40e5888000000000, 0x100, 0xc820055c18, 0x1, 0x1, 0x44451a0, 0x0, 0x0)
/Users/timothybone/work/src/githubcom/gordonklaus/portaudio/portaudiogo:538
+0x24a
githubcom/nf/sigourney/audio(*Engine)Start(0xc82006c2a0, 0x0, 0x0)
/Users/timothybone/work/src/githubcom/nf/sigourney/audio/engine_cgogo:24
+0x13d
maindemo(0x0, 0x0)
/Users/timothybone/work/src/githubcom/nf/sigourney/demogo:29 +0xd1
mainmain()
/Users/timothybone/work/src/githubcom/nf/sigourney/maingo:51 +0x9e


Reply to this email directly or view it on GitHub
#13.

@jaredfolkins
Copy link

There is a work in progress. I was able to get Sigourney working with my branch.

gordonklaus/portaudio#7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants