# Broken Output when using #def SAMPLE\_TYPE\_FLOAT

**URL:** <https://iplug2.discourse.group/t/broken-output-when-using-def-sample-type-float/786>\
**Category:** Windows\
**Created:** [4 May 2023 18:02 UTC](https://iplug2.discourse.group/t/broken-output-when-using-def-sample-type-float/786 "2023-05-04T18:02:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tarnith](https://yyz2.discourse-cdn.com/free1/user_avatar/iplug2.discourse.group/tarnith/32/297_2.png) [@Tarnith](https://iplug2.discourse.group/u/Tarnith)\
**Post date:** [4 May 2023 18:02 UTC](https://iplug2.discourse.group/t/broken-output-when-using-def-sample-type-float/786/1 "2023-05-04T18:02:37Z")

</div>

Getting an odd issue where a very simple sin oscillator runs fine when using the default double mode but when adding the #define SAMPLE\_TYPE\_FLOAT as discussed elsewhere on this forum it instead outputs what sounds like a very quiet inharmonic squarish tone.

Any ideas?

Doesn’t seem to matter what data type is written to the outputs[c][s] in a for loop. Not an issue with the oscillator, just changing the define breaks the output.
