Home
API reference

AudioSynthProvider

strata-game-library/audio-synth

strata-game-library/audio-synth


strata-game-library/audio-synth / AudioSynthProvider

Function: AudioSynthProvider()

AudioSynthProvider(__namedParameters): Element

Defined in: components/AudioSynthProvider.tsx:60

Context provider for procedural audio synthesis.

Manages the audio engine lifecycle and provides hooks for playing sound effects and background music.

Parameters

__namedParameters

AudioSynthProviderProps

Returns

Element

Example

function App() {
  return (
    <AudioSynthProvider masterVolume={0.8}>
      <Game />
    </AudioSynthProvider>
  );
}