Permalink
Switch branches/tags
Nothing to show
Commits on Jun 23, 2018
Commits on Jun 20, 2018
  1. Update ReactOS (#215)

    copy committed Jun 20, 2018
Commits on Jun 4, 2018
  1. Audio worklet needs its own DEBUG in debug mode

    ErnWong authored and copy committed Jun 4, 2018
    ..as the audio worklet will have its own scope. In the compiled version,
    the if(DEBUG) is removed so no problems showed up. However, in the debug
    version, the browser will complain that DEBUG is not defined.
  2. Speaker fix typo (channel got neglected in mixer-volume)

    ErnWong authored and copy committed Jun 4, 2018
    It's always a fascinating find when you put your code through a linter
    (jshint in this case - it warned about an unused variable).
Commits on Apr 8, 2018
  1. Tidyup: semicolon

    ErnWong authored and copy committed Apr 7, 2018
  2. Minor: inline param types over type casts

    ErnWong authored and copy committed Mar 20, 2018
  3. Remove unecessary type casting

    ErnWong authored and copy committed Mar 18, 2018
  4. Use Reflect API over ES6 Class for audio worklet

    ErnWong authored and copy committed Mar 18, 2018
    The ES5 representation of ES6 classes generated by the Closure Compiler
    isn't compatible with Audio Worklets. By using Reflect.construct to
    create the inheritance relationship instead of the ES6 class syntax, the
    worklet code can now be fed into the compiler.
  5. Minor: semicolons

    ErnWong authored and copy committed Mar 17, 2018
  6. Reuse empty buffer in speaker DAC worklet

    ErnWong authored and copy committed Mar 17, 2018
  7. Revoke worklet object URL after loaded

    ErnWong authored and copy committed Mar 17, 2018
  8. Share and reuse download() function

    ErnWong authored and copy committed Mar 17, 2018
  9. Minor: tidy up

    ErnWong authored and copy committed Mar 17, 2018
  10. Use dbg_* within speaker.js

    ErnWong authored and copy committed Mar 17, 2018
  11. Fix closure type-casting positions

    ErnWong authored and copy committed Mar 13, 2018
  12. Fix worklet buffer queuing calculation, and check NaN

    ErnWong authored and copy committed Mar 12, 2018
    Fixes certain cases that causes the entire audio graph to crash.
    
    Now audio works very well on Chrome with no pops or clicks.
  13. Add method of logging for audio worklet

    ErnWong authored and copy committed Mar 12, 2018
  14. Implement speaker worklet

    ErnWong authored and copy committed Mar 12, 2018
    The pipeline for audio data when using the worklet now becomes:
    
     ________  request (4)  _____  request (3)  ______  request (2)  _________  request (1)  _________
    |        |<------------|     |<------------|      |<------------|         |<------------|         |
    | Memory |             | DMA |             | SB16 |             | Speaker |             | Worklet |
    |________|------------>|_____|------------>|______|------------>|_________|------------>|_________|
                reply (5)           reply (6)            reply (7)               reply (8)
    
    The responsibilities of the worklet is to:
     - Queue data at appropriate times (initiated by requests).
     - Convert the data from emulated sample rate to the web browser's
       sample rate.
     - Ultimately transfer the data into the Audio Rendering Thread.
  15. Minor: newlines

    ErnWong authored and copy committed Mar 11, 2018
  16. Revert "Reycle speaker AudioBuffers"

    ErnWong authored and copy committed Mar 11, 2018
    This reverts commit 3224a08.
    Memory profiles don't seem to show any significant improvement for the
    added complexity.
  17. Reycle speaker AudioBuffers

    ErnWong authored and copy committed Mar 11, 2018
  18. Minimise number of AudioNodes

    ErnWong authored and copy committed Mar 10, 2018
    Noticably improves performance in Chrome. This commit clumps several
    GainNodes together, and avoids unecessary channel splitting and merging.
  19. Make "both" consistent in speaker mixer API

    ErnWong authored and copy committed Mar 10, 2018