-
Notifications
You must be signed in to change notification settings - Fork 67
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
MicStream.sampleRate seems never completes #88
Comments
Does the await complete once you start listening to the stream? |
I get the sampleRate after creating the stream. I was not tested after listening. But I have to get the sample rate beforehand, to connect wss server (as a parameter). I read somewhere in the document, even if i set the sample rate, the iOS platform may not obey the configuration i set, so i have to get it after creating the stream and before listening. I will try it later though, and get back to you. |
This is correct and the main issue. There is no good semantic to resolve this. I'm still looking for ways to improve this situation but I cannot circumvent platform limitations. You will have to adjust your server semantics, or not support iOS for the time being. Or you start recording before connecting to the server. |
also have a look at #72 for a previous discussion the topic |
@westlinkin How are you piping the audio to a WS server? I'm trying to accomplish the same thing. |
Sorry for the late reply. You can just listen to the stream, and |
Even after I start listening to the stream, the |
oh alright. If the problem occurs on an iOS emulator, this is a duplicate of #27 |
I'll give it another look to see what changes could have resulted in a different behaviour for macOS |
double? sampleRate = await MicStream.sampleRate;
works fine in0.6.5
but in
0.7.1+2
, useint sampleRate = await MicStream.sampleRate
never completes. Is there something I am missing? the same code upgraded from0.6.5
to0.7.1+2
The text was updated successfully, but these errors were encountered: