libinstpatch Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
IpatchSampleStoreRam; enum IpatchSampleStoreRamFlags; #define IPATCH_SAMPLE_STORE_RAM_UNUSED_FLAG_SHIFT IpatchSample * ipatch_sample_store_ram_new (gpointer location
,gboolean free_data
); IpatchSample * ipatch_sample_store_ram_get_blank (void
);
typedef enum { IPATCH_SAMPLE_STORE_RAM_ALLOCATED = 1 << IPATCH_SAMPLE_STORE_UNUSED_FLAG_SHIFT } IpatchSampleStoreRamFlags;
Flags crammed into IpatchItem flags field.
IpatchSample * ipatch_sample_store_ram_new (gpointer location
,gboolean free_data
);
Creates a new RAM sample store.
|
Location of existing sample data or NULL if the sample buffer
should be allocated (in which case the sample must be written to first).
|
|
TRUE if sample data at location should be freed when object
is destroyed
|
Returns : |
New RAM sample store, cast as a IpatchSample for convenience. |
IpatchSample * ipatch_sample_store_ram_get_blank (void
);
Get blank mono RAM sample object. Return's a sample object with 48 stereo 16 bit samples of silent audio. Only creates it on the first call, subsequent calls return the same sample object. Therefore it should not be modified.
Returns : |
The blank sample object. Remember to unref it when not
using it anymore with g_object_unref() .
|