- From: Marc Breuer <marcgfx@gmail.com>
- Date: Sat, 9 May 2015 14:39:12 +0200
- To: public-audio@w3.org
- Message-ID: <CANNrTmDSrrmo1dokRVYTisWvdOAocvtxTNc-ocy8M4ZTL3_5TA@mail.gmail.com>
I have an endlessly looping sample and would like to jump to different positions within it to randomize the output. currently I believe this is what is expected for every jump: I must stop the current AudioBufferSourceNode I must create a new AudioBufferSourceNode and start at my desired position maybe there is a better approach? what I am doing seems rather wasteful/complicated. I have the same issue for audio I need to pause/resume, as I cant find a way to continue playing at a desired position. my current implementation for pause/resume is to simply turn volume to 0 and back. I had implemented it setting/getting AudioContext.currentTime, but I only just noticed that this property is readonly in the specs. my jumping implementation fails badly and seems to stack up more and more samples I could post some code if desired, but decided against bloating the question best wishes, marc
Received on Monday, 11 May 2015 10:19:29 UTC