cacophony
Advanced tools
Comparing version 0.10.3 to 0.10.4
@@ -34,3 +34,3 @@ import { AudioContext, IAudioListener, IPannerNode, IPannerOptions } from 'standardized-audio-context'; | ||
*/ | ||
export type LoopCount = number | 'infinite'; | ||
export type LoopCount = number | "infinite"; | ||
/** | ||
@@ -40,3 +40,3 @@ * Represents the type of fade effect to apply. | ||
*/ | ||
export type FadeType = 'linear' | 'exponential'; | ||
export type FadeType = "linear" | "exponential"; | ||
/** | ||
@@ -46,3 +46,3 @@ * Represents the type of panning effect to apply. | ||
*/ | ||
export type PanType = 'HRTF' | 'stereo'; | ||
export type PanType = "HRTF" | "stereo"; | ||
/** | ||
@@ -74,3 +74,3 @@ * The base interface for any sound-producing entity, including individual sounds, groups, and playbacks. | ||
clearMemoryCache(): void; | ||
createOscillator(options: OscillatorOptions): Synth; | ||
createOscillator(options: OscillatorOptions, panType?: PanType): Synth; | ||
createSound(buffer: AudioBuffer, soundType?: SoundType, panType?: PanType): Promise<Sound>; | ||
@@ -81,3 +81,3 @@ createSound(url: string, soundType?: SoundType, panType?: PanType): Promise<Sound>; | ||
createStream(url: string): Promise<Sound>; | ||
createBiquadFilter: ({ type, frequency, gain, Q }: BiquadFilterOptions) => BiquadFilterNode; | ||
createBiquadFilter: ({ type, frequency, gain, Q, }: BiquadFilterOptions) => BiquadFilterNode; | ||
/** | ||
@@ -96,13 +96,13 @@ * Creates a PannerNode with the specified options. | ||
* }); | ||
*/ | ||
createPanner({ coneInnerAngle, coneOuterAngle, coneOuterGain, distanceModel, maxDistance, channelCount, channelCountMode, channelInterpretation, panningModel, refDistance, rolloffFactor, positionX, positionY, positionZ, orientationX, orientationY, orientationZ }: Partial<IPannerOptions>): PannerNode; | ||
*/ | ||
createPanner({ coneInnerAngle, coneOuterAngle, coneOuterGain, distanceModel, maxDistance, channelCount, channelCountMode, channelInterpretation, panningModel, refDistance, rolloffFactor, positionX, positionY, positionZ, orientationX, orientationY, orientationZ, }: Partial<IPannerOptions>): PannerNode; | ||
/** | ||
* Suspends the audio context. | ||
*/ | ||
* Suspends the audio context. | ||
*/ | ||
pause(): void; | ||
/** | ||
* Resumes the audio context. | ||
* This method is required to resume the audio context on mobile devices. | ||
* On desktop, the audio context will automatically resume when a sound is played. | ||
*/ | ||
* Resumes the audio context. | ||
* This method is required to resume the audio context on mobile devices. | ||
* On desktop, the audio context will automatically resume when a sound is played. | ||
*/ | ||
resume(): void; | ||
@@ -109,0 +109,0 @@ setGlobalVolume(volume: number): void; |
{ | ||
"name": "cacophony", | ||
"version": "0.10.3", | ||
"version": "0.10.4", | ||
"description": "Typescript audio library with caching", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1575475
4880