Skip to content

🐛Setting BufferType.Stream for sample causes it to glitch, repeating it partially #361

@NinovanderMark

Description

@NinovanderMark

Complete The Items Below

  • I have updated the title without removing the 🐛 emoji.
  • I searched whether or not an issue already exists for the bug I encountered.

Current Behavior

When playing the attached sample and setting the BufferType to BufferType.Stream the sample playback is glitched, as part of the end of the sample is repeated. This does not occur when using BufferType.Full

Expected Behavior

The sound sample should be played back normally regardless of the BufferType used.

Steps To Reproduce

The code to play back the sample is as follows:

var crunch = new Audio(Path.Combine("audio", "crunch.ogg"), BufferType.Stream);
crunch.Play();

Operating System(s)

Windows

OS Version

10.0.19045

Anything Else

crunch.zip

Acceptance Criteria

### The items to complete to satisfy the Definition of Done.
- [x] I have fixed the bug, and everything works as expected.
- [x] I have manually tested the changes to confirm that no bugs or behavior changes were introduced.
- [x] All the unit tests have been executed and passed locally after PR work is complete. _(Why? Refer to 'Additional Information' below.)_

Additional Information:

Unit Tests

Reasons for local unit test execution:

  • Unit tests might pass locally but not in the CI environment during the status check process or vice-versa.
  • Tests might pass on the developer's machine but not necessarily on the code reviewer's machine.
  • If you notice that the test status check has passed but the test failed locally, please notify a project maintainer!

💡Warning💡
If the unit tests pass remotely and are not executed locally, this means we could be letting a bug slip into production.
Though bugs will always exist in some capacity, we should all do our part to help prevent them from happening.

Change Type Labels

Change Type Label
Bug Fixes 🐛bug
Breaking Changes 🧨breaking-changes
New Feature ✨new-feature
CICD Changes ♻️cicd
Config Changes ⚙️config
Performance Improvements 🏎️performance
Code Doc Changes 🗒️documentation/code
Product Doc Changes 📝documentation/product

Priority Type Labels

Priority Type Label
Low Priority low priority
Medium Priority medium priority
High Priority high priority

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Labels

Type

Projects

Status

✅Done

Relationships

None yet

Development

No branches or pull requests

Issue actions