RageAgainstThePixel / com.utilities.audio

A simple package for audio extensions and utilities for Unity (UPM)
MIT License
14 stars 4 forks source link

Validate iOS support #30

Closed StephenHodgson closed 4 days ago

StephenHodgson commented 2 months ago

Feature Request

some reports that Unity bug mutes all audio. In general should validate all iOS device support.

StephenHodgson commented 2 months ago

From troubleshooting post in Discord server

[RecordingManager] Invalid Frequency 44100. Using 0
Utilities.Audio.<StartRecordingAsync>d__37`1:MoveNext()
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:Start(TStateMachine&)
Utilities.Audio.RecordingManager:StartRecordingAsync(String, String, CancellationToken)
Utilities.Audio.<StartRecording>d__36`1:MoveNext()
System.Runtime.CompilerServices.AsyncVoidMethodBuilder:Start(TStateMachine&)
Utilities.Audio.RecordingManager:StartRecording(String, String, Action`1, CancellationToken)
UnityEngine.Events.UnityEvent:Invoke()
UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction`1)
UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchPress(PointerEventData, Boolean, Boolean)
UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchEvents()
UnityEngine.EventSystems.StandaloneInputModule:Process()
ArgumentException: Frequency of recording must be greater than zero (was: 0 Hz)
  at Utilities.Audio.Microphone.Start (System.String deviceName, System.Boolean loop, System.Int32 lengthSec, System.Int32 frequency) [0x00000] in <00000000000000000000000000000000>:0 
  at Utilities.Audio.RecordingManager.StartRecordingAsync[T] (System.String clipName, System.String saveDirectory, System.Threading.CancellationToken cancellationToken) [0x00000] in <00000000000000000000000000000000>:0 
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0 
  at Utilities.Audio.RecordingManager.StartRecordingAsync[T] (System.String clipName, System.String saveDirectory, System.Threading.CancellationToken cancellationToken) [0x00000] in <00000000000000000000000000000000>:0 
  at Utilities.Audio.RecordingManager.StartRecording[T] (System.String clipName, System.String saveDirectory, System.Action`1[T] callback, System.Threading.CancellationToken cancellationToken) [0x00000] in <00000000000000000000000000000000>:0 
  at
StephenHodgson commented 4 days ago

Can't repro this