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

 
 
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]

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

No messages in It was never so easy ...

 

Back to the top


Powered by Savane 3.5