-
Notifications
You must be signed in to change notification settings - Fork 1
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
What would be the present day best approach for recording audio in a UWP C# app? #1
Comments
I'm afraid I know of no good options on UWP right now. My best experiments
were not good enough (not nearly as low latency as ASIO on ordinary
Windows). I am going to investigate the situation on HoloLens 2 soon, but
on Windows PCs, I don't currently believe low latency audio is possible
under UWP.
…On Wed, Jan 20, 2021 at 9:15 AM Mario Pintaric ***@***.***> wrote:
Any suggestions on what you would consider that best approach to record
low latency audio in a present day (2021) UWP app?
I'm just getting back into this and suspect there may be better options at
present.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAXRYZOKQRZIJ2BT26356HLS24FULANCNFSM4WK723ZQ>
.
--
Check my blog --> http://robjsoftware.info
|
As far back as the Windows 8.x days I read a number of Microsoft issued docs describing latency of under 10ms. Are these docs fake news? (https://docs.microsoft.com/en-us/windows-hardware/drivers/audio/low-latency-audio) What about the QuantumSizeSelectionMode property? What is the best option, given I really don't have an option within my large UWP application? |
The most I can offer is the AudioGraph code I was experimenting with as of
my giving up on UWP. That branch is here:
…On Wed, Jan 20, 2021 at 6:54 PM Mario Pintaric ***@***.***> wrote:
As far back as the Windows 8.x days I read a number of Microsoft issued
docs describing latency of under 10ms. Are these docs fake news? (
https://docs.microsoft.com/en-us/windows-hardware/drivers/audio/low-latency-audio
)
What about the QuantumSizeSelectionMode property?
What is the best option, given I really don't have an option within my
large UWP application?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAXRYZOCPW3QLNBGGBNURBDS26JODANCNFSM4WK723ZQ>
.
--
Check my blog --> http://robjsoftware.info
|
...excuse me, premature send. That code is here:
https://github.com/RobJellinghaus/NowSound/tree/audiograph_stopping_place
However I can't provide support for it or answer more than basic questions.
What I know for sure is that despite many experiments, I was not able to
get AudioGraph latency I considered acceptable, by any means. My honest
advice would be to simply give up on low latency UWP audio under Windows at
this point. If this kills your product concept, I am sorry for that.
On Thu, Jan 21, 2021 at 10:39 PM Rob Jellinghaus <[email protected]>
wrote:
… The most I can offer is the AudioGraph code I was experimenting with as of
my giving up on UWP. That branch is here:
On Wed, Jan 20, 2021 at 6:54 PM Mario Pintaric ***@***.***>
wrote:
> As far back as the Windows 8.x days I read a number of Microsoft issued
> docs describing latency of under 10ms. Are these docs fake news? (
> https://docs.microsoft.com/en-us/windows-hardware/drivers/audio/low-latency-audio
> )
>
> What about the QuantumSizeSelectionMode property?
>
> What is the best option, given I really don't have an option within my
> large UWP application?
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#1 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAXRYZOCPW3QLNBGGBNURBDS26JODANCNFSM4WK723ZQ>
> .
>
--
Check my blog --> http://robjsoftware.info
--
Check my blog --> http://robjsoftware.info
|
Thank you very much. I'll look into it today. What caused you to think latency was a problem? Sometimes you have a cascade of latency issues. For example, touch events that you get from something like a UWP button control have a considerable amount of latency. A mouse click is fairly quick, but it too has around 15ms of latency. Measuring latency is also hard, unless you are able to leverage something like multi-media timers. Just curious. |
The latency I am referring to is audible latency in the loop from recording, to buffering, to replaying in realtime. My app requires end-to-end audio latency of under 10ms. This is detectable simply by tapping on the microphone; if there is perceptible delay between tapping and hearing the amplified tap, the latency is too large. In my testing with AudioGraph the minimum achievable latency was on the order of 128msec (as reported by the AudioGraph API itself), which was nowhere near good enough for crisp real-time performance involving precisely layering multiple recordings. |
Any suggestions on what you would consider the best approach to record low latency audio in a present day (2021) UWP app?
I'm just getting back into this and suspect there may be better options at present.
The text was updated successfully, but these errors were encountered: