sound_manager

Creator: coderz1093

Last updated:

0 purchases

sound_manager Image
sound_manager Images

Languages

Categories

Add to Cart

Description:

sound manager

SoundManager Flutter Plugin #


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
copied to clipboard
Usage #
Import the SoundManager class:
import 'package:sound_manager/sound_manager.dart';
copied to clipboard
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();
}
copied to clipboard
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.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.