Skip to content

Instantly share code, notes, and snippets.

View erikas-taroza's full-sized avatar

Erikas Taroza erikas-taroza

View GitHub Profile
@erikas-taroza
erikas-taroza / set_display_name.dart
Last active July 26, 2022 12:49
Sets the display name of the Flutter app in Windows' mixer. Solves the issue of the name not changing in the mixer without setting the user agent (DartVLC).
import 'dart:ffi';
import 'package:ffi/ffi.dart';
import 'package:win32/win32.dart';
/// Documentation:
/// Dart Win32 Example - https://github.com/timsneath/win32/blob/main/example/wasapi.dart
///
/// Win32Api IMMDeviceEnumerator - https://docs.microsoft.com/en-us/windows/win32/api/mmdeviceapi/nn-mmdeviceapi-immdeviceenumerator
///