sound_manager 0.0.2 copy "sound_manager: ^0.0.2" to clipboard
sound_manager: ^0.0.2 copied to clipboard

PlatformWindows

The SoundManager plugin provides functionality to manage the volume of applications on a Windows platform. It allows you to mute applications, set the volume for specific applications, and control the [...]

SoundManager Flutter Plugin #

Buy Me a Coffee ViewCount

Description #

The SoundManager plugin provides functionality to manage the volume of applications on a Windows platform. It allows you to mute applications, set the volume for specific applications, and control the volume of all applications except a specified one.

Features #

  • Stop other players: Mutes all audio on the system.
  • Mute application: Mutes a specific application by its name.
  • Set volume: Sets the volume for a specific application.
  • Set volume for all except: Sets the volume for all applications except a specified one.
  • Reset volume: Restores the original volume levels of all applications.

Installation #

Add the following to your pubspec.yaml file:

dependencies:
  sound_manager: ^0.0.1

Usage #

Import the SoundManager class:

import 'package:sound_manager/sound_manager.dart';

Example #

void main() {
  final soundManager = SoundManager();

  // Stop all other audio players
  soundManager.stop();

  // Mute a specific application
  soundManager.muteApplication("ApplicationName");

  // Set the volume of a specific application
  soundManager.setVolume("ApplicationName", 0.5);

  // Set the volume of all applications except a specific one
  soundManager.setVolumeForAllExcept("ApplicationName", 0.2);

  // Reset the volume of all applications to their original levels
  soundManager.resetVolume();
}

Platform Support #

Currently, this plugin supports only the Windows platform.

Contributions #

Contributions are welcome! Please submit a pull request or open an issue to discuss what you would like to change.

License #

This project is licensed under the MIT License - see the LICENSE file for details.

2
likes
140
pub points
40%
popularity

Publisher

verified publisherahmetaydin.dev

The SoundManager plugin provides functionality to manage the volume of applications on a Windows platform. It allows you to mute applications, set the volume for specific applications, and control the volume of all applications except a specified one.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on sound_manager