Truxton media open by name
Jump to navigation
Jump to search
This will retrieve media given the name of the media.
Syntax
void truxton_media_open_by_name( uint64_t truxton_handle, char const * media_name );
Parameters
truxton_handle
This handle comes from calling truxton_create().
media_name
The name of the media to get in Truxton.
This corresponds to the [Name] column of the [Media] table.
Sample
#define TAG_ORIGIN_AUTOMATIC (1)
#define TAG_ORIGIN_HUMAN (2)
void process_media( uint64_t truxton )
{
uint64_t media = truxton_media_open_by_name( truxton, "Tri State Area Phone 7" );
truxton_media_tag( media, "Doofenshmirtz", "Infectinator from Evil Incorporated", TAG_ORIGIN_AUTOMATIC );
truxton_media_destroy( media );
}