newsAdvanced Gtk+ Sequencer - News: AgsSoundContainer and AgsSoundResource interfaces

 
 
Latest News
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
handling LV2 iriref posted by jkraehemann, Wed 13 Feb 2019 10:20:49 AM UTC - 0 replies
fixed ref-count posted by jkraehemann, Sat 09 Feb 2019 02:46:41 PM UTC - 0 replies
[Submit News]
[79 news in archive]

AgsSoundContainer and AgsSoundResource interfaces

Item posted by Joël Krähemann <jkraehemann> on Mon 07 May 2018 03:48:09 PM UTC.

AgsSoundContainer and AgsSoundResource superseeds AgsPlayable. The changes were just applied to:

  • AgsSndfile - implementing AgsSoundResource
  • AgsIpatch - implementing AgsSoundContainer

The API was extended and refactored. Thought it is not yet final the basics are there, yet. One thing missing is implementing following methods:

AgsIpatchSample implementing AgsSoundResource

The new object AgsIpatchSample was introduced to implement missing functionality. AgsSoundContainer shall return objects implementing AgsSoundResource.

So it works like following to obtain all samples:

AgsSndfile implementing AgsSoundResource

Since WAV, FLAC, AIFF or OGG files is a sound resource, the object implements AgsSoundResource. The object has been refactored, yet.

To make the API straight-forward - analogously to AgsSoundcard interface - the AgsSoundResource provides following functions:

Special about it is you read one single audio channel, others get cached in the buffer to reduce disk overhead:

So the buffer size of AgsSoundResource should be the frame count you request of AgsSoundResource.


by Joël

No messages in AgsSoundContainer and AgsSoundResource interfaces

 

Back to the top


Powered by Savane 3.4