bluefireteam / audioplayers

A Flutter package to play multiple audio files simultaneously (Android/iOS/web/Linux/Windows/macOS)
https://pub.dartlang.org/packages/audioplayers
MIT License
1.99k stars 844 forks source link

selecting soundcard and output channel #1569

Open serkansmg opened 1 year ago

serkansmg commented 1 year ago

Checklist

Use case / Problem

assume we have multiple soundcards on mac/windows/linux,one of soundcard have 5.1 output and we want to give output to front left only. on mobile we have headphone, local speakers, bluetooth speakers, airplay output etc.. how to select/list soundcards and give the output to selected output/channel?

Proposal / Solution

the great un4seen bass library have such features on all platforms. but it would be really good to have it on both mobile and desktop. by the way, we can pay for this work ...

Example Code

Example Code ```dart void main() { } ```

Affected platforms

Android, iOS, Windows, Linux, macOS

Platform details

No response

Audio Files/URLs/Sources

No response

Mockups

No response

Related issues / more information

No response

Working on PR

no way

Gustl22 commented 1 year ago

I think the actual SoundCard can be selected on the system itself (on Desktop). At the moment we don't provide a way to override these settings from within the library. Feel free to open a PR for various platforms.

q240252859 commented 1 year ago

iOS 链接蓝牙耳机 无法播放耳机 只能本机设备播放声音

Edit: When iOS connects to a Bluetooth headset, the headset cannot be played. Only the local device can play sound.