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

getStreamTime always returns an error #6

Open
raymoo opened this issue Oct 8, 2015 · 1 comment
Open

getStreamTime always returns an error #6

raymoo opened this issue Oct 8, 2015 · 1 comment

Comments

@raymoo
Copy link

raymoo commented Oct 8, 2015

getStreamTime always yields "Left BadPtr" when I try to use it, regardless of whether the stream has started playing or not, which I guess means that pa_GetStreamTime always returns 0. However, startStream appears to work normally for me. I have the BadPtr problem whether I run it in ghci or compile it first.

I am running on x64 Debian with GHC 7.10.2, and I get the error regardless whether I use -threaded.

Also, what is the output for getStreamTime supposed to be for a opened but not yet started Stream?

@raymoo
Copy link
Author

raymoo commented Oct 9, 2015

Turns out the underlying pa_GetStreamTime was just always returning 0. I'm guessing this problem isn't caused by the haskell bindings, so I'm just working around by manually adding up sample counts.

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

1 participant