The duration in seconds of the audio loop if loop is true. Can be shorter or longer than the audio file duration. Durations longer than the audio file will add silence. If not specified, the entire audio file will loop.
refactors the m-audio audio playback to use the WebAudio API rather than an <audio> tag. This was necessary to allow precise timing of (re)starting playback when the loop duration was longer than the provided file.
What kind of changes does your PR introduce? (check at least one)
[x] Feature
Does your PR introduce a breaking change? (check one)
[x] No
If yes, please describe its impact and migration path for existing applications:
Does your PR fulfill the following requirements?
[x] All tests are passing
[x] The title references the corresponding issue # (if relevant)
Resolves #174.
This PR:
adds a
loop-duration
attribute tom-audio
refactors the
m-audio
audio playback to use the WebAudio API rather than an<audio>
tag. This was necessary to allow precise timing of (re)starting playback when the loop duration was longer than the provided file.What kind of changes does your PR introduce? (check at least one)
Does your PR introduce a breaking change? (check one)
If yes, please describe its impact and migration path for existing applications:
Does your PR fulfill the following requirements?