Truxton media set type

From truxwiki.com
Revision as of 23:49, 9 February 2021 by Sam (talk | contribs)
Jump to navigation Jump to search

This sets the type of the media. It corresponds to the MediaTypeID column of the Media table. It can be one of the defined constants but it must be one of the values in the ID column of the MediaType table.

Syntax

void truxton_media_set_type( uint64_t media_handle, uint64_t value );

Parameters

media_handle

The handle created by the truxton_media_open_id or truxton_media_create call.

value

The new type of the media. It can be one of the defined constants but must be a value from the ID column of the MediaType table.

Sample

void set_disk_type( uint64_t media )
{
   truxton_media_set_type( media, MEDIA_TYPE_HARD_DISK_IMAGE );
}