Truxton media open by name

From truxwiki.com
Revision as of 05:52, 6 February 2026 by Sam (talk | contribs) (Created page with "This will retrieve media given the name of the media. =Syntax= <source lang="C"> void truxton_media_open_by_name( uint64_t truxton_handle, char const * media_name ); </sourc...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 );
}