flutter_scene_soloud 0.1.1 copy "flutter_scene_soloud: ^0.1.1" to clipboard
flutter_scene_soloud: ^0.1.1 copied to clipboard

SoLoud audio backend for flutter_scene. Implements the abstract audio contract from flutter_scene over the SoLoud engine via flutter_soloud.

flutter_scene_soloud #

SoLoud audio backend for flutter_scene. Implements the abstract audio contract (AudioEngine, AudioVoice, AudioBus, AudioClip) over the SoLoud engine through flutter_soloud.

Usage #

Attach the engine to the scene root, then use the contract types from flutter_scene:

import 'package:flutter_scene/scene.dart';
import 'package:flutter_scene_soloud/flutter_scene_soloud.dart';

final scene = Scene();
scene.root.addComponent(SoloudAudioEngine());

final ambience = Node();
ambience.addComponent(ClipAudioSource(
  asset: 'assets/sounds/waterfall.ogg',
  autoplay: true,
  looping: true,
));
scene.add(ambience);

With no AudioListener mounted, the ears follow the scene's primary camera. Serialized .fscene/.fsceneb scenes containing audioSource components play through whichever engine the app mounts.

1
likes
160
points
189
downloads

Documentation

API reference

Publisher

verified publisherbdero.dev

Weekly Downloads

SoLoud audio backend for flutter_scene. Implements the abstract audio contract from flutter_scene over the SoLoud engine via flutter_soloud.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, flutter_scene, flutter_soloud, vector_math

More

Packages that depend on flutter_scene_soloud