Top | ![]() |
![]() |
![]() |
![]() |
#define | ipatch_sample_store_cache_get_location() |
#define | ipatch_sample_store_cache_get_channel_map() |
#define | ipatch_sample_store_cache_get_open_count() |
IpatchSample * | ipatch_sample_store_cache_new () |
void | ipatch_sample_store_cache_open () |
void | ipatch_sample_store_cache_close () |
This sample store type is tightly integrated with IpatchSampleData to provide managed cached samples in RAM.
#define ipatch_sample_store_cache_get_location(store)
Macro to quickly fetch a cache sample store's data location pointer.
#define ipatch_sample_store_cache_get_channel_map(store)
Macro to quickly fetch a cache sample store's channel map value. Cached samples store a channel map in reference to the native sample of their parent IpatchSampleData.
IpatchSample *
ipatch_sample_store_cache_new (gpointer location
);
Creates a new cached RAM sample store. If location
is provided, its allocation
is taken over by the store.
NOTE: This store type should not be used outside of the IpatchSampleData implementation, as it is tightly coupled with it.
location |
Location of existing sample data or |
New cached RAM sample store, cast as a IpatchSample for convenience.
[type IpatchSampleStoreCache]
void
ipatch_sample_store_cache_open (IpatchSampleStoreCache *store
);
A dummy open function which can be used if the location pointer will be
accessed directly, rather than opening a IpatchSampleHandle. Keeping a
cached sample store open will ensure it isn't destroyed. Call
ipatch_sample_store_cache_close()
when done with it.
void
ipatch_sample_store_cache_close (IpatchSampleStoreCache *store
);
A dummy close function which is called after a sample store cache is no
longer needed after opening it with ipatch_sample_store_cache_open()
.