# Unwanted delay when using sound library

**URL:** <https://discourse.processing.org/t/unwanted-delay-when-using-sound-library/4810>\
**Category:** Libraries\
**Created:** [October 24, 2018, 1:00pm UTC](https://discourse.processing.org/t/unwanted-delay-when-using-sound-library/4810 "2018-10-24T13:00:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jensemand](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@jensemand](https://discourse.processing.org/u/jensemand)\
**Post date:** [October 24, 2018, 1:00pm UTC](https://discourse.processing.org/t/unwanted-delay-when-using-sound-library/4810/1 "2018-10-24T13:00:49Z")

</div>

Hi I am trying to make a video game (undertale) in processing but I have come across some problems along the way. I am trying to import some mp3 files but when i start the program it says “INFO: JSyn: default output latency set to 80 msec for Windows 10”.

in order to make a good video game the default latency have to be as close to 0 as possible. If this can’t be done would it be nice to know if there an alternative way to use sound and have no latency.

---

<div class="post-metadata">

**Author:** ![jensemand](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@jensemand](https://discourse.processing.org/u/jensemand)\
**Post date:** [October 26, 2018, 7:11am UTC](https://discourse.processing.org/t/unwanted-delay-when-using-sound-library/4810/2 "2018-10-26T07:11:19Z")

</div>

Seriously… I really need some help

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [October 26, 2018, 10:58am UTC](https://discourse.processing.org/t/unwanted-delay-when-using-sound-library/4810/3 "2018-10-26T10:58:01Z")

</div>

1. [Distrowatch.org/table.php?distribution=avlinux](http://Distrowatch.org/table.php?distribution=avlinux)
2. [Distrowatch.org/table.php?distribution=audiophile](http://Distrowatch.org/table.php?distribution=audiophile)

---

<div class="post-metadata">

**Author:** ![jensemand](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@jensemand](https://discourse.processing.org/u/jensemand)\
**Post date:** [October 26, 2018, 11:37am UTC](https://discourse.processing.org/t/unwanted-delay-when-using-sound-library/4810/4 "2018-10-26T11:37:21Z")

</div>

How do i add it processing so i can use it?

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [October 26, 2018, 12:00pm UTC](https://discourse.processing.org/t/unwanted-delay-when-using-sound-library/4810/5 "2018-10-26T12:00:32Z")

</div>

- Those 2 are Linux distros w/ modified kernels for multimedia performance.
- I don’t think the Windows OS got any latency-less kernel version.
- In theory a user can set a task’s priority to real-time under Windows OS.
- However, I dunno whether an application can change that automatically or even it can ever reach actual 0 latency at all!

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [October 30, 2018, 6:24pm UTC](https://discourse.processing.org/t/unwanted-delay-when-using-sound-library/4810/6 "2018-10-30T18:24:01Z")

</div>

I am not sure, but this might be relevant:

> **[Low-latency audio on Windows with GStreamer](https://blog.nirbheek.in/2018/03/low-latency-audio-on-windows-with.html)**
>
> Digital audio is so ubiquitous that we rarely stop to think or wonder how the gears turn underneath our all-pervasive apps for entertainmen...

@neilcsmith is really the expert on GStreamer-related questions.

I see that you have a related question posted here:

> [@Sound library without any default delay](https://discourse.processing.org/t/sound-library-without-any-default-delay/4891):
>
> Hi I want to import a sound library so i can play different sound files. I have tried to import library already but there’s a default delay i want to get rid of so i just want to know if there is another library or way to minimize the default delay
