Repository navigation
Conversation
…l DSP nodes and HRTF - A realtime AudioContext renders its engine manually in 128-frame quanta, pulled by a separate output engine: it runs from construction at the requested sampleRate, currentTime counts its own frames from 0 (stop(currentTime + 0.02) now plays 20 ms), and a DelayNode in a cycle delays by one quantum, not one device buffer. - Every node mixes its inputs per channelCount/channelCountMode/channelInterpretation with the spec's per-node limits, each output carries its real channel count, and the destination mixes with Web Audio's rules. - Real ConvolverNode (partitioned FFT, ConvolverOptions.buffer/disableNormalization), IIRFilterNode, WaveShaperNode (curve, oversampling), StereoPannerNode, render-thread AnalyserNode, HRTF panning from the MIT KEMAR set, band-limited and custom oscillator waves, loopStart/loopEnd. - AudioParam: exponential ramps, setTargetAtTime, value curves and cancelAndHold natively; value reads the automated value; argument checks. A split DelayNode heals when its cycle is broken. - Spec validation across nodes and contexts, getOutputTimestamp, MediaStream stubs, typings.
…l DSP nodes and HRTF - A realtime AudioContext renders its engine manually in 128-frame quanta, pulled by a separate output engine: it runs from construction at the requested sampleRate, currentTime counts its own frames from 0 (stop(currentTime + 0.02) now plays 20 ms), and a DelayNode in a cycle delays by one quantum, not one device buffer. - Every node mixes its inputs per channelCount/channelCountMode/channelInterpretation with the spec's per-node limits, each output carries its real channel count, and the destination mixes with Web Audio's rules. - Real ConvolverNode (partitioned FFT, ConvolverOptions.buffer/disableNormalization), IIRFilterNode, WaveShaperNode (curve, oversampling), StereoPannerNode, render-thread AnalyserNode, HRTF panning from the MIT KEMAR set, band-limited and custom oscillator waves, loopStart/loopEnd. - AudioParam: exponential ramps, setTargetAtTime, value curves and cancelAndHold natively; value reads the automated value; argument checks. A split DelayNode heals when its cycle is broken. - Spec validation across nodes and contexts, getOutputTimestamp, MediaStream stubs, typings.
…dioContext complete, enable shared specs on iOS
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
…rror index.d.ts declares createMediaStreamSource/TrackSource/Destination; Android lacked them, so the shared spec got a TypeError.
…m.value from the render, scheduling against the next quantum - currentTime now reports the next quantum to render (published per quantum) instead of the start of the last callback, so start()/stop(currentTime + x) no longer land in audio that was already rendered; short stops after an immediate start play their full length. - Each realtime context has its own clock (render clock less time spent suspended). It starts at 0 on the first quantum rendered after construction; suspend()/resume() stop and restart only that context's nodes and clock, and the stream stops once every context is suspended. A closed context's clock stops. - AudioParam.value returns the value the last rendered quantum gave (automation plus connected audio), or a value set since, via the nativeComputedValue hook.
…Channels, shared KEMAR set, per-context suspend spec - iOS DynamicsCompressorNode renders Chromium's DynamicsCompressorKernel (as on Android) in the param effect unit: 6 ms look-ahead, knee curve, makeup gain, reduction metered from the render. Replaces Apple's dynamics processor. - AudioWorkletNode inputs carry computedNumberOfChannels per quantum from channelCount/channelCountMode on iOS and Android; constructor channel options now reach the native node. - One MIT KEMAR header in src-native/common, compiled by the Android CMake build and the iOS plugin (via build.xcconfig); the iOS copy is gone. - Specs: compressor look-ahead on both platforms, androidTest renamed nativeTest, worklet channel-count cases, two realtime contexts suspended/resumed apart.
…stops the clock; worklet inputs default to 'max'
…channel count, as the spec says A number was read as an options object, so createChannelMerger(2) built the default 6-input merger. Both forms are accepted now.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #64
Completes the Web Audio spec suite on iOS and closes the remaining gaps between iOS and Android in
@nativescript/audio-context.iOS
DynamicsCompressorNodenow runs Chromium'sDynamicsCompressorKernelin place of Apple's dynamics processor. It is the same algorithm as on Android: 6 ms look-ahead, knee curve and makeup gain, withreductionmetered from the render.AudioWorkletNodeinputs now reportcomputedNumberOfChannelson every quantum, followingchannelCount/channelCountMode/channelInterpretation. The constructor's channel options now reach the native node.Android
suspend()resolves only once the render thread has stopped that context's clock.AudioParam.valueis read from the render, and scheduling is measured against the next quantum.NotSupportedError.computedNumberOfChannels, and default to'max'as the spec says.Shared
createChannelMerger(n)andcreateChannelSplitter(n)accept a channel count, as the spec says; a bare number used to be read as an options object, giving the default 6 channels.src-native/common/hrtf_kemar.h, with its licence note. The Android CMake build and the iOS plugin both compile it (iOS throughbuild.xcconfigand a small.mmshim), and it is published with the package.androidTesthelper is renamednativeTest. New worklet channel-count cases, plus a per-context suspend spec: two realtime contexts are suspended and resumed independently, then all together.Results:
audiosuite, iOS simulator 151/151, Android Pixel 9 Pro emulator 151/151.