This receives the audio input, performs the fft on it and has all the nescessary
preparations for then binding the audio data to the 2d texture for the GLSL.
Signed-off-by: Tyrolyean <tyrolyean@tyrolyean.net>
The pipe size is now set automatically to avoid unnescessary buffering of frames
which aren't supposes to be there yet as well as preventing partial reads and
writes when larger resolutuions are used.
The iSampleRate uniform was added according to shadertoy spec.
Signed-off-by: Tyrolyean <tyrolyean@tyrolyean.net>
The fortify source code was added to prevent builds from passing but then
failing in our build system and the c-standard was set to c11 to avoid the
compiler yelling at me whenever i want to print a size_t.
Signed-off-by: Tyrolyean <tyrolyean@tyrolyean.net>
This tries to remove the O_NONBLOCK flag from an output FD if the output seems
to be setup this way.
Signed-off-by: Tyrolyean <tyrolyean@tyrolyean.net>
This reverts commit be8f7d1716.
This was reverted as with this commit the program would consume large amounts
of cpu time just looping and calling the write function, which would not block.
If the output of an fd is a pipe with O_NONBLOCK set, the script will die as
soon as the pipe fills up due to the write call returning with EAGAIN. This
fixes that.
Signed-off-by: Tyrolyean <tyrolyean@tyrolyean.net>