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

Cannot convert from AudiorRecordingStream to AudioPlayer #13

Closed
ghost opened this issue Apr 20, 2012 · 3 comments
Closed

Cannot convert from AudiorRecordingStream to AudioPlayer #13

ghost opened this issue Apr 20, 2012 · 3 comments

Comments

@ghost
Copy link

ghost commented Apr 20, 2012

I just upgraded to 2.1.0 and etting this error "Cannot convert from AudiorRecordingStream to AudioPlayer" when launching the RecordAndPlayback example.

What am I doing wrong?

Thanks

@ddf
Copy link
Owner

ddf commented Apr 20, 2012

Hey, just looks like that example hasn't been updated properly. If you declare player as an AudioRecordingStream, it should work.

@ghost
Copy link
Author

ghost commented Apr 20, 2012

Hey - thanks for your prompt answer.. Just getting started with this, the RecordLineIn (2.1.0) example is not compiling for me, telling me it cannot find a class or type named "AudioRecordingStream".
Perhaps you can help me - I'm trying to load two internet streams and compare them merely to see if they are identical (aka sound quality more or less irrelevant).
To compensate for timeshifts/delays I want to let one (or both) through a buffer in order to play them back with a delay or ahead (max 2000ms, I believe). For that I've made this first sketch, that kind of draws it out visually to make these adjustments. http://www.openprocessing.org/sketch/59551
For now I'm using the same stream twice, but eventually they will be different.I will have to figure out some smart (FFT) way to match them up and run (loop through the sample array) them both at a quality-wise lowest common denominator - sufficient enough to tell they're identical. Perhaps that can be done by subtracting their FFT signatures?
Maybe you have som best practice tips after looking where i'm going... all help is much appreciated.

:) Thanks

@ddf
Copy link
Owner

ddf commented Apr 25, 2012

Sounds like a tough problem and I don't have the brainspace right now to help with solving it, but I think you're on the right track. You need to get them sync'd somehow and then compare. FFT might be best, but depending on what kind of tolerances you need, simply comparing audio samples might get you there.

I've fixed this example (ea4ec44) so I'm going to close this issue. For help on your sketch, you might try posting to the Processing forums about it.

@ddf ddf closed this as completed Apr 25, 2012
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