# Sound library without any default delay

**URL:** <https://discourse.processing.org/t/sound-library-without-any-default-delay/4891>\
**Category:** Libraries\
**Created:** [October 26, 2018, 7:01am UTC](https://discourse.processing.org/t/sound-library-without-any-default-delay/4891 "2018-10-26T07:01:15Z")\
**Posts on this page:** 2\
**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 26, 2018, 7:01am UTC](https://discourse.processing.org/t/sound-library-without-any-default-delay/4891/1 "2018-10-26T07:01:15Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![PHuzzeyMusic](https://avatars.discourse-cdn.com/v4/letter/p/3be4f8/32.png) [@PHuzzeyMusic](https://discourse.processing.org/u/PHuzzeyMusic)\
**Post date:** [October 26, 2018, 8:30pm UTC](https://discourse.processing.org/t/sound-library-without-any-default-delay/4891/2 "2018-10-26T20:30:14Z")

</div>

This comes from the JSyn repo [here](https://github.com/philburk/jsyn/blob/master/src/com/jsyn/devices/javasound/JavaSoundAudioDevice.java) (which the Sound library is built upon):

```auto
    public JavaSoundAudioDevice() {
        String osName = System.getProperty("os.name");
        if (osName.contains("Windows")) {
            suggestedOutputLatency = 0.08;
            logger.info("JSyn: default output latency set to "
                    + ((int) (suggestedOutputLatency * 1000)) + " msec for " + osName);
        }
        deviceRecords = new ArrayList<DeviceInfo>();
        sniffAvailableMixers();
        dumpAvailableMixers();
    }

```

Though it could be possible by making your own Audio class and extending the Sound class of the processing sound library, you will be forfeiting a lot of the behind the scenes connections these libraries are making for you. You could always try the [minim](http://code.compartmental.net/minim/) sound library instead.
