newsAdvanced Gtk+ Sequencer - News: Lock-free audio processing and ::dispose()

 
 
Latest News
GSequencer v3.6.x release goals posted by jkraehemann, Fri 31 Jul 2020 10:17:04 AM UTC - 0 replies
GSequencer v3.4.x release goals posted by jkraehemann, Thu 11 Jun 2020 06:58:14 PM UTC - 0 replies
GSequencer v3.3.x replaced all recalls by ags-fx engine posted by jkraehemann, Wed 20 May 2020 07:25:15 AM UTC - 0 replies
Refactor GSequencer's recalls - the ags-fx engine posted by jkraehemann, Sun 03 May 2020 12:08:19 AM UTC - 0 replies
GSequencer v3.3.x release goals posted by jkraehemann, Fri 17 Apr 2020 12:36:11 PM UTC - 0 replies
[Submit News]
[97 news in archive]

Lock-free audio processing and ::dispose()

Item posted by Joël Krähemann <jkraehemann> on Tue 07 Mar 2017 08:38:05 AM UTC.

Recently the mutices has been heavily improved. As the design of Advanced Gtk+ Sequencer allows lock free audio processing, why not doing so?

Next stable release will do so. The locks have been removed of ags_audio_play() and ags_channel_play(). This change comes along with major performance improvement.

One more thing to do is proper clean-up of memory. Although the ::finalize() function was implemented, it doesn't care about circular dependencies. So the allocated memory was still there.

So far many ::dispose() functions have been implemented and some ::finalize() were mangled and fixed.

Performance improvement

The optimization of mutices involved in following functions, have a great performance impact:

  • ags_audio_play()
  • ags_channel_play()

I knew about for some time but was not able to remove them. Because GSequencer crashed then but not for now.

Two more composite widget is going to be introduced AgsVLedArray and AgsHLedArray. Since the visual feedback is polled and uses currently gtk_container_get_children(). What is actually quiet bad in view of performance. Since the returned list has to be freed by g_list_free().

AgsMatrix should be able to stay in real-time with the above changes. Currently its output is delayed and causes audio to slow down. As you enable the sequencers with the notation.

Memory clean-up

Circular dependencies can be released by ::dispose(). All of the needed objects in libags implement it and libags_audio is only missing AgsRecall as well sub-classes to do so.

Within a few days there is going to be released 0.7.122.7 including all changes.

by Joël

No messages in Lock-free audio processing and ::dispose()

 

Back to the top


Powered by Savane 3.5