-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add audio playback demo to verify audio fingerprint code works as exp… #33
base: main
Are you sure you want to change the base?
Add audio playback demo to verify audio fingerprint code works as exp… #33
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nicely done! I left couple of small comments.
features/audio-playback/index.html
Outdated
this.outputElement.addEventListener('click', this); | ||
this.sampleElement.addEventListener('ended', this, false); | ||
|
||
this.offlineAudioContext = new OfflineAudioContext(1, 44100 * 40, 44100); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Webkit is still prefixing both OfflineAudioContext and AudioContext, but IMO we should support it :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think... this should work in Safari but I don't have a copy to check. As mentioned this won't be an issue soon given they've added a commit to webkit to add support for some of these things.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fbbb5d6
to
decf8f2
Compare
@@ -0,0 +1,2 @@ | |||
Audio sample: THROW THE SWITCH by Robert Meyers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for nitpicking but it takes a lot of time for the modified sample to start playing. I'm guessing that it'd be faster if we used a shorter input sample (current one is 6min)?
nudge nudge - you now have access to Safari I hear :) |
decf8f2
to
d77dbf5
Compare
OK, to merge this:
|
…ected