newsAdvanced Gtk+ Sequencer - News: It was never so easy ...

 
 
Latest News
Advanced Gtk+ Sequencer version 6.8.x posted by jkraehemann, Wed 17 Apr 2024 01:40:23 PM UTC
Advanced Gtk+ Sequencer version 6.5.x posted by jkraehemann, Sun 11 Feb 2024 05:06:15 PM UTC
Advanced Gtk+ Sequencer version 6.3.5 posted by jkraehemann, Fri 19 Jan 2024 11:53:24 AM UTC
Advanced Gtk+ Sequencer v6.1.0 released posted by jkraehemann, Thu 28 Sep 2023 04:55:19 AM UTC
Advanced Gtk+ Sequencer v6.0.0 released posted by jkraehemann, Mon 21 Aug 2023 11:48:52 AM UTC

It was never so easy ...

Item posted by Joël Krähemann <jkraehemann> on Wed 16 May 2018 09:57:42 PM UTC.

The new function and better segmentation seems to pay off. Especially the AgsSoundScope enumeration has a great impact in the amount of lines of code.

If we look at AgsCancelAudio task, we recognize it is much shorter, now.


gint i;

for(i = 0; i < AGS_SOUND_SCOPE_LAST; i++){
  /* cancel */
  ags_audio_recursive_run_stage(audio,
                                i, staging_flags);

  /* stop audio thread */
  ags_thread_stop(ags_playback_domain_get_audio_thread(playback_domain,
                                                       i));

  /* stop channel thread and unset recall id */
  list = list_start;

  while(list != NULL){
    ags_thread_stop(ags_playback_get_channel_thread(list->data,
                                                    i));

    ags_playback_set_recall_id(list->data,
                               NULL,
                               i);

    list = list->next;
  }
}


This switches playback off for all sound scopes and it is really short.

Revising tasks


Take a look at the removed tasks:


deleted:    ags/audio/task/ags_add_point_to_selection.c
deleted:    ags/audio/task/ags_add_point_to_selection.h
deleted:    ags/audio/task/ags_add_recall.c
deleted:    ags/audio/task/ags_add_recall.h
deleted:    ags/audio/task/ags_add_recall_container.c
deleted:    ags/audio/task/ags_add_recall_container.h
deleted:    ags/audio/task/ags_add_region_to_selection.c
deleted:    ags/audio/task/ags_add_region_to_selection.h
deleted:    ags/audio/task/ags_append_audio_threaded.c
deleted:    ags/audio/task/ags_append_audio_threaded.h
deleted:    ags/audio/task/ags_append_recall.c
deleted:    ags/audio/task/ags_append_recall.h
deleted:    ags/audio/task/ags_cancel_recall.c
deleted:    ags/audio/task/ags_cancel_recall.h
deleted:    ags/audio/task/ags_remove_point_from_selection.c
deleted:    ags/audio/task/ags_remove_point_from_selection.h
deleted:    ags/audio/task/ags_remove_recall.c
deleted:    ags/audio/task/ags_remove_recall.h
deleted:    ags/audio/task/ags_remove_recall_container.c
deleted:    ags/audio/task/ags_remove_recall_container.h
deleted:    ags/audio/task/ags_remove_region_from_selection.c
deleted:    ags/audio/task/ags_remove_region_from_selection.h


The tasks AgsAppendAudio and AgsAppendChannel just have got renamed to a more meaningful name.


renamed:    ags/audio/task/ags_append_audio.c -> ags/audio/task/ags_play_audio.c
renamed:    ags/audio/task/ags_append_audio.h -> ags/audio/task/ags_play_audio.h
renamed:    ags/audio/task/ags_append_channel.c -> ags/audio/task/ags_play_channel.c
renamed:    ags/audio/task/ags_append_channel.h -> ags/audio/task/ags_play_channel.h


Might be that I change even more but unsure about this. Today, I just started to revise the tasks.



By Joël

 

Back to the top

Powered by Savane 3.13-d3ae.
Corresponding source code