Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: M1 Mac Desigend for Ipad Unable to record normally #1112

Open
wils-oool opened this issue Oct 25, 2024 · 1 comment
Open

[BUG]: M1 Mac Desigend for Ipad Unable to record normally #1112

wils-oool opened this issue Oct 25, 2024 · 1 comment

Comments

@wils-oool
Copy link

wils-oool commented Oct 25, 2024

I’m using flutter_sound version 9.16.2. The error logs captured from the macOS console are as follows:

The app works fine on iPhone and real iPad devices, but it cannot record properly when running on Mac Desigend for Ipad. Do you have any ideas for solutions?
Let me know if you need further assistance or modifications!

Error 22:07:33.653182+0800 Runner AUIOBase.mm:268 Initialize { auio=0x1412d4e40, error=-50 }.
Error 22:07:33.653923+0800 Runner AudioConverter.cpp:1007 Failed to create a new in-process converter -> from 0 ch, 0 Hz to 1 ch, 16000 Hz, Int16, with status -50
Error 22:07:33.654656+0800 Runner AUIOBase.mm:268 Initialize { auio=0x1412d4e40, error=-50 }
Error 22:07:33.654778+0800 Runner AVAudioEngineGraph.mm:504 Error, formats don't match! Input HW format: <AVAudioFormat 0x600000329e00: 0 ch, 0 Hz, lpcm (0x00000029) 32-bit little-endian float, deinterleaved>, tap format: <AVAudioFormat 0x60000032a440: 0 ch, 0 Hz>
Error 22:07:33.654877+0800 Runner AVAEInternal.h:104 [AVAudioEngineGraph.mm:1401:Initialize: (err = AUGraphParser::InitializeActiveNodesInInputChain(ThisGraph, *GetInputNode())): error -10868

@Larpoux
Copy link
Collaborator

Larpoux commented Oct 25, 2024

Failed to create a new in-process converter -> from 0 ch, 0 Hz to 1 ch, 16000 Hz, Int16,

Apple uses pcm float32. Because flutter sound works with pcm int16, we try to convert the chunks of audio data. For an unknown reason, flutter sound was not able to detect the original apple format to do the conversion (0 channels, 0 hertz is of course not good)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants