# Constructors given in Sound Library documentation not working

**URL:** <https://discourse.processing.org/t/constructors-given-in-sound-library-documentation-not-working/10563>\
**Category:** Libraries\
**Created:** [April 23, 2019, 12:20pm UTC](https://discourse.processing.org/t/constructors-given-in-sound-library-documentation-not-working/10563 "2019-04-23T12:20:45Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [April 23, 2019, 1:28pm UTC](https://discourse.processing.org/t/constructors-given-in-sound-library-documentation-not-working/10563/4 "2019-04-23T13:28:34Z")

</div>

yes, looks like many of that examples  
cue, duration, jump, resize, read, write, pan, samplerate …

have that wrong

```auto
sample = new AudioSample(this, 100000, 22050);

```

example code ( must be from some old version ??)

looks like it would work with  
sample = new AudioSample(this, 100000, false, 22050);  
pls try

thanks for finding & reporting.  
i linked this/you from github issues  
[https://github.com/processing/processing-docs/issues/750](https://github.com/processing/processing-docs/issues/750) :

---

_[View the full topic](https://discourse.processing.org/t/constructors-given-in-sound-library-documentation-not-working/10563)._
