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

 
 
Latest News
Advanced Gtk+ Sequencer v2.2.5 released posted by jkraehemann, Tue 25 Jun 2019 06:43:09 PM UTC - 0 replies
GSequencer v2.1.53 for debian buster posted by jkraehemann, Fri 08 Mar 2019 11:01:12 PM UTC - 0 replies
Get emotional as debian buster is going to be released posted by jkraehemann, Thu 07 Mar 2019 12:46:59 AM UTC - 0 replies
State of GSequencer in debian buster posted by jkraehemann, Sun 03 Mar 2019 07:08:32 PM UTC - 0 replies
[Submit News]
[81 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