al - Audio Library Functions gDP - DP GBI Macros gdSP - General GBI Macros gSP - SP GBI Macros gt - Turbo Microcode RDP gu - Graphics Utilities Math - Math Functions nuSys - NuSystem os - N64 Operating System sp - Sprite Library Functions uh - Host to Target IO 64DD - N64 Disk Drive
|
osAiSetFrequencyFormat#include <ultra64.h> s32 osAiSetFrequency(u32 frequency); What This Function Does The osAiGetStatus, osAiGetLength, osAiSetFrequency, and osAiSetNextBuffer routines provide basic control for the AI (audio interface). Based on the input requested frequency (in Hz), the osAiSetFrequency function calculates the correct values for the internal divisors and returns the actual frequency generated by these divisors. The requested frequency should fall between 3000 Hz and 368000 Hz on NTSC systems, or between 3050 Hz and 376000 Hz on PAL systems. Notes For hardware version 1.0, the audio DMA length register is only 15 bits long and thus supports a maximum transfer size of 32 Kbytes. In the final release, this register is extended to 18 bits to support a transfer of 256 Kbytes. See Also osAiGetStatus osAiGetLength osAiSetNextBuffer osTvType
|