Difference between revisions of "Avm.rpl"
Jump to navigation
Jump to search
NWPlayer123 (talk | contribs) (Page Creation) |
NWPlayer123 (talk | contribs) m (change void* -> uint32_t* to specify 4 byte value) |
||
Line 10: | Line 10: | ||
|- | |- | ||
|AVMGetDRCMode | |AVMGetDRCMode | ||
− | |<code>int AVMGetDRCMode( | + | |<code>int AVMGetDRCMode(uint32_t *mode)</code> |
|Stores results of AVMProbeDRCNum in mode, if more than 2 Gamepads loaded(?) just returns 1 | |Stores results of AVMProbeDRCNum in mode, if more than 2 Gamepads loaded(?) just returns 1 | ||
|- | |- | ||
Line 18: | Line 18: | ||
|- | |- | ||
|AVMGetTVStereoCapability | |AVMGetTVStereoCapability | ||
− | |<code>void AVMGetTVStereoCapability( | + | |<code>void AVMGetTVStereoCapability(uint32_t *capability)</code> |
|Stores 0 in capability, returns 1 (Success) | |Stores 0 in capability, returns 1 (Success) | ||
|- | |- | ||
|AVMGetDRCChipRevision | |AVMGetDRCChipRevision | ||
− | |<code>int AVMGetDRCChipRevision(int drcnum, | + | |<code>int AVMGetDRCChipRevision(int drcnum, uint32_t *revision)</code> |
|Returns 0 if successful, calls CCRCDCSysGetInfo, if 0 (no errors), gets chip revision from 0xC in stack. Can return -4 if SysGetInfo fails, or -2 if 100068E0 is 0 | |Returns 0 if successful, calls CCRCDCSysGetInfo, if 0 (no errors), gets chip revision from 0xC in stack. Can return -4 if SysGetInfo fails, or -2 if 100068E0 is 0 | ||
|- | |- | ||
|AVMGetDRHChipRevision | |AVMGetDRHChipRevision | ||
− | |<code>int AVMGetDRHChipRevision( | + | |<code>int AVMGetDRHChipRevision(uint32_t *revision)</code> |
|Returns 0 if successful. Can return -2 if 100068E0 is 0 | |Returns 0 if successful. Can return -2 if 100068E0 is 0 | ||
|- | |- | ||
|AVMGetTVAudioMode | |AVMGetTVAudioMode | ||
− | |<code>BOOL AVMGetTVAudioMode( | + | |<code>BOOL AVMGetTVAudioMode(uint32_t *mode)</code> |
|Puts TVAudioMode in *mode, returns 1 (Success) | |Puts TVAudioMode in *mode, returns 1 (Success) | ||
|- | |- |
Latest revision as of 21:39, 12 April 2016
Functions
Name | Prototype | Description |
---|---|---|
AVMProbeDRCNum | int AVMProbeDRCNum(void)
|
Called by AVMGetDRCMode, number of Gamepads loaded?? |
AVMGetDRCMode | int AVMGetDRCMode(uint32_t *mode)
|
Stores results of AVMProbeDRCNum in mode, if more than 2 Gamepads loaded(?) just returns 1 |
AVMProbeDRCState | BOOL AVMProbeDRCState(int drcnum)
|
Returns state (Not/Active) for DRC number (only allows Gamepads 0, 1) |
AVMGetTVStereoCapability | void AVMGetTVStereoCapability(uint32_t *capability)
|
Stores 0 in capability, returns 1 (Success) |
AVMGetDRCChipRevision | int AVMGetDRCChipRevision(int drcnum, uint32_t *revision)
|
Returns 0 if successful, calls CCRCDCSysGetInfo, if 0 (no errors), gets chip revision from 0xC in stack. Can return -4 if SysGetInfo fails, or -2 if 100068E0 is 0 |
AVMGetDRHChipRevision | int AVMGetDRHChipRevision(uint32_t *revision)
|
Returns 0 if successful. Can return -2 if 100068E0 is 0 |
AVMGetTVAudioMode | BOOL AVMGetTVAudioMode(uint32_t *mode)
|
Puts TVAudioMode in *mode, returns 1 (Success) |
AVMSetTVScale | BOOL AVMSetTVScale(int width, int height)
|
Calls DCSetRenderResolution with 0, width, height and 1, width, height. Seems to auto-set to full resolution if it is the "normal" width eg 1280, 1920 |
Enums
typedef enum {
TV_AUDIO_MONO = 0, //Monaural in Settings
TV_AUDIO_STEREO = 1,
TV_AUDIO_SURROUND = 3 //???
} TVAudioMode;