pulseaudio 0.0.1 copy "pulseaudio: ^0.0.1" to clipboard
pulseaudio: ^0.0.1 copied to clipboard

Native Dart client library to interact with PulseAudio

example/example.dart

import 'package:pulseaudio/pulseaudio.dart';

void main() async {
  final client = PulseAudio();
  client.onServerInfo.listen((event) {
    print(event);
    //client.setSinkMute(event.defaultSinkName, true);
  });
  client.onSinkChanged.listen((event) {
    print(event);
  });
  client.onSourceChanged.listen((event) {
    print(event);
  });
  await client.initialize();

  // wait 3 sec
  await Future.delayed(const Duration(seconds: 3));
  client.dispose();
  // wait 3 sec
  await Future.delayed(const Duration(seconds: 3));
}
0
likes
0
points
46
downloads

Publisher

verified publisherfree-explorers.com

Weekly Downloads

Native Dart client library to interact with PulseAudio

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

ffi, flutter, freezed_annotation

More

Packages that depend on pulseaudio