Audio Playback Issue in UWP Kiosk Mode: Crackling Sound on Application Startup

Hardik Rathod 20 Reputation points

I'm developing a UWP application intended to run in Kiosk Mode. One of the requirements is to play an audio file on startup, which I've implemented in the OnLaunch method. When I manually start the application, everything works fine. However, when the PC starts in Kiosk mode, there's a crackling effect or sound distortion at the beginning of the application.

I've noticed that adding a delay of around 15 seconds resolves the issue, but I don't consider this an optimal solution. My assumption is that Windows needs time to settle down after startup, and perhaps the audio drivers are not fully initialized yet, though I'm not entirely certain.

Any insights or alternative approaches to resolve this issue would be greatly appreciated. Thank you!

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,818 questions
Universal Windows Platform (UWP)
{count} votes

Accepted answer
  1. Roy Li - MSFT 32,486 Reputation points Microsoft Vendor


    Welcome to Microsoft Q&A!

    Based on the discussion on SO, this behavior only happens on kiosk mode. This reason for this might be that the audio drivers are not initialized completely.

    We are not able to do something from the code side. So adding a delay of 15 seconds before playing the content might be the workaround.

    Thank you.

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Shane Jason White 1 Reputation point

    Hello Hardik Rathod

    Are your audio drivers up to date ?

    otherwise -> update on the manufacturer's page of your sound card or device

    What else comes to mind.... Maybe you should try it with a different audio format.