SetMediaLanguage
The SetMediaLanguage function sets a media's language or region code. You should call this function only when you are creating a new media. See Inside Macintosh: Text for more information on language and region codes.
pascal void SetMediaLanguage (Media theMedia, short language);
theMedia
- Specifies the media for this operation. Your application obtains this media identifier from such Movie Toolbox functions as
NewTrackMedia and GetTrackMedia (described on page 2-136 and page 2-188, respectively).
language
- Specifies the media's language or region code.
ERROR CODES
| invalidMedia | -2008 | This media is corrupted or invalid |
SEE ALSO
You can retrieve a media's language or region code by calling the GetMediaLanguage function, which is described in the next section.