Search found 65 matches

by HDPLocust
Thu May 09, 2019 11:37 am
Forum: Libraries and Tools
Topic: Yet another state system
Replies: 9
Views: 9445

Re: Yet another state system

So. Now it have state-stack with overriding. I need to make the doc.
by HDPLocust
Thu May 09, 2019 6:57 am
Forum: Support and Development
Topic: implementing 9 slice in love2dcs?
Replies: 5
Views: 4296

Re: implementing 9 slice in love2dcs?

You need the nine-slice image and set of quads (for every slice), just scale quadded image to fit or quad:setViewPort (texture repeat mode) to repeat image patterns (it needs several slice-images for repeating).
by HDPLocust
Thu May 09, 2019 6:24 am
Forum: Support and Development
Topic: Looping through table inception
Replies: 2
Views: 3580

Re: Looping through table inception

Every ui element can contain list of child elements: function widget:update(dt) for i, v in ipairs(self.items) do if v.update then v:update(dt) end end end So if "v"-elements of items-list has look-like update function, it will "recursivelly" iterate all tree. Also if you add par...
by HDPLocust
Thu May 09, 2019 6:01 am
Forum: Support and Development
Topic: saving a canvas as an image
Replies: 15
Views: 15572

Re: saving a canvas as an image

We can move encoded (saved) image file by os.rename(src, dst)
by HDPLocust
Sat May 04, 2019 9:18 pm
Forum: Support and Development
Topic: Clicky noises when queueable source is updated [CLOSED]
Replies: 9
Views: 3767

Re: Clicky noises when queueable source is updated [CLOSED]

As a workaround you can gather data from microphone and write it to a fixed-length sound data, and then buffer up those. data = RecordingDevice:getData() Fixed-length sound data buffer must be extremely similar in size to "average" chunk of microphone recording chunks. Also if I want to m...
by HDPLocust
Fri May 03, 2019 2:01 pm
Forum: Support and Development
Topic: Clicky noises when queueable source is updated [CLOSED]
Replies: 9
Views: 3767

Re: Clicky noises when queueable source is updated [CLOSED]

raidho36 wrote: Fri May 03, 2019 5:22 am OpenAL produces clicks if you queue up sources of different lengths, and so it happens that microphone produces samples of different lengths all the time.
Thank you, It seems that we need to keep several buffers to produce the same sized chunks and a large storage/mixer buffer (several inputs).
by HDPLocust
Thu May 02, 2019 8:23 pm
Forum: Support and Development
Topic: Clicky noises when queueable source is updated [CLOSED]
Replies: 9
Views: 3767

Re: Clicky noises when queueable source is updated

Thank you for answer, but your untested example clicks much more frequent (and coroutines doesn't matter) : ) Normally, voip stuff (like skype/discord) chunks sound data by ~20ms, I use here ~200ms for less buf usage, click frequency depends on chunk size (more size => less buffer usage (clearing) =...
by HDPLocust
Thu May 02, 2019 3:34 pm
Forum: Support and Development
Topic: Clicky noises when queueable source is updated [CLOSED]
Replies: 9
Views: 3767

Clicky noises when queueable source is updated [CLOSED]

When I queue new soundData to the source, and it is updated (it can be seen in the "tell" visualization, when source tell is sero), sound clicks occur. What are the reasons and how can we work with it?
by HDPLocust
Tue Apr 09, 2019 3:50 am
Forum: Support and Development
Topic: Reducing packaged game size
Replies: 3
Views: 5070

Re: Reducing packaged game size

1. Disable unused modules in conf
2. Remove disabled libs (it's dynamic)