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

Soundfile playback not working properly #1

Closed
biggestT opened this issue Jul 14, 2013 · 2 comments
Closed

Soundfile playback not working properly #1

biggestT opened this issue Jul 14, 2013 · 2 comments
Assignees
Labels

Comments

@biggestT
Copy link
Owner

The first time the soundfile plays is works but when trying to replay it either doesn't play, does play but no line or it plays with line drawing. Might have to do with the ugly setTimeout hack in toneModel initialize function

@ghost ghost assigned biggestT Jul 14, 2013
@biggestT biggestT reopened this Jul 15, 2013
@biggestT
Copy link
Owner Author

Sometimes still not working when paused and then played again

@biggestT
Copy link
Owner Author

Tried to apply callback function when audio element fires 'canplay' without success. Seems to work most of the times now. Might be that audio sometimes start playing before the audio graph has had time to been properly set up?

biggestT added a commit that referenced this issue Jul 23, 2013
It did not work properly to set this._audio.currentTime to 0 when
I wanted to reset the audio file. Finally found this hack:
http://stackoverflow.com/questions/16966724/html5-audio-currenttime-doesnt-work
I think it might have had to do with my file being a .wav file in an
immature stage of the Web Audio API development. Halleluja, this fixes #1 !
biggestT added a commit that referenced this issue Jul 25, 2013
Used backbones event handling to set up a nicer initial prepare-soundanalysis
-step. This also fixed #1 in a better way than before. More structure is needed
in the backbone event management still. I had to use addEventlistener
to the audio element instead of setting the 'oncanplay' etc. attributes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant