Skip to content

Commit

Permalink
Merge branch 'fix/microphone-cast'
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanheise committed Jun 24, 2022
2 parents 7a0ca93 + b80e2e4 commit 6693b1a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.1.8

* Fix bug in AndroidAudioManager.getMicrophones().

## 0.1.7

* Fix bug detecting added devices on iOS/macOS (@derekcoder).
Expand Down
4 changes: 2 additions & 2 deletions lib/src/android.dart
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,8 @@ class AndroidAudioManager {

/// (UNTESTED) Requires API level 28
Future<List<AndroidMicrophoneInfo>> getMicrophones() async {
return ((await _channel.invokeListMethod<Map<String, dynamic>>(
'getMicrophones')) as List<dynamic>)
return ((await _channel.invokeMethod<List<dynamic>>('getMicrophones'))!)
.map((raw) => Map<String, dynamic>.from(raw))
.map((raw) => AndroidMicrophoneInfo(
description: raw['description'],
id: raw['id'],
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: audio_session
description: Sets the iOS audio session category and Android audio attributes for your app, and manages your app's audio focus, mixing and ducking behaviour.
version: 0.1.7
version: 0.1.8
homepage: https://github.com/ryanheise/audio_session

environment:
Expand Down

0 comments on commit 6693b1a

Please sign in to comment.