You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tested with the latest version of the recording & playback branch: c91ae4e
When the recording rate is set below 143 the recording function returns immediately without filling the AudioFrame.
>>>af=audio.AudioFrame()
>>>bytes(af) # Default value is 0x80b'\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80'>>># Timing how long it takes to record at 142 samples per second>>>t=running_time(); microphone.record_into(af, rate=142); running_time() -t1>>>bytes(af) # AudioFrame data untouchedb'\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80'>>>t=running_time(); microphone.record_into(af, rate=143); running_time() -t181>>>bytes(af)
b'\x80\x81\x80\x7f\x80\x80\x80\x80\x80\x80\x81}~\x82}\x7f{\x81\x7f\x80\x81|\x81\x80\x7f|\x80\x84n\x8ey\x8a'>>>
Tested with the latest version of the recording & playback branch: c91ae4e
When the recording rate is set below 143 the recording function returns immediately without filling the AudioFrame.
I guess this could be an issue in the CODAL layer, if that's the case let me know and I'll raise it in the codal-microbit-v2 repository.
The text was updated successfully, but these errors were encountered: