Make fft work #1

Merged
goliath merged 3 commits from tyrolyean/shadermeh:master into master 2022-11-09 20:48:05 +01:00
Contributor

Aims to make the script work with the egs-host

Aims to make the script work with the [egs-host](https://git.escpe.net/escapegame/host)
tyrolyean added 1 commit 2022-07-17 20:06:29 +02:00
be8f7d1716
Add fix for O_NONBLOCK file-descriptor as output pipe
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>
tyrolyean added 2 commits 2022-07-17 23:54:49 +02:00
75cdd01de8
Add sampling rate for audio input and data structures
Signed-off-by: Tyrolyean <tyrolyean@tyrolyean.net>
51f808d12f
Revert "Add fix for O_NONBLOCK file-descriptor as output pipe"
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.
tyrolyean added 1 commit 2022-07-18 00:07:40 +02:00
47bbca6806
Add fix for output being O_NONBLOCK
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>
tyrolyean changed title from Add fix for O_NONBLOCK file-descriptor as output pipe to WIP: Add fix for O_NONBLOCK file-descriptor as output pipe 2022-07-18 00:08:21 +02:00
tyrolyean changed title from WIP: Add fix for O_NONBLOCK file-descriptor as output pipe to WIP: Add functionality to interface egs host 2022-07-18 00:09:06 +02:00
tyrolyean added 2 commits 2022-07-18 01:02:02 +02:00
f0ffbc7c33
Set to newer c-standard and add source code fortification
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>
84595eff00
Auto-set pipe size according to frame size, add iSampleRate uniform
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>
tyrolyean added 1 commit 2022-07-18 19:57:43 +02:00
7e190a5729
Add data structures and functions
Signed-off-by: Tyrolyean <tyrolyean@tyrolyean.net>
tyrolyean added 1 commit 2022-07-19 00:25:00 +02:00
72f3e51b7b
Add libftw3, receive audio input and perform fft
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>
tyrolyean force-pushed master from 72f3e51b7b to 12396a8bb0 2022-07-20 23:49:35 +02:00 Compare
tyrolyean changed title from WIP: Add functionality to interface egs host to Make fft work 2022-07-20 23:50:00 +02:00
tyrolyean changed title from Make fft work to WIP: Make fft work 2022-07-20 23:50:08 +02:00
tyrolyean changed title from WIP: Make fft work to Make fft work 2022-07-20 23:50:15 +02:00
goliath merged commit 12396a8bb0 into master 2022-11-09 20:48:05 +01:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: goliath/shadermeh#1
No description provided.