h6. [[SoundDMA]] h6(. » [[SoundDMA SWI Calls|SWI Calls]] h6((. » [[Sound_Mode]] h6(((. » Sound_Mode 1 h2. Sound_Mode 1 h5. (SWI &40144) |_<^{width:4em}. Entry | | |<^. R0 |<^. 1 (reason code) | |/3<^. R1 |<^. New oversampling state: | |<^. 0 -> disable oversampling | |<^. Non-zero -> use oversampling where possible | |_<^{width:4em}. Exit | | |<^. R1 |<^. Previous oversampling state (0=disabled, 1=enabled) | h4. Use This SWI is used to control whether automatic oversampling of sound output should be performed. h4. Notes If oversampling is enabled, and certain hardware/software requirements are met, then all sound output (8 bit and 16 bit) will be 2x oversampled via linear interpolation. Generally speaking, oversampling will be used if the following requirements are met: * Oversampling is enabled via this call * The desired sample rate is under 24kHz * The hardware supports both the requested sample rate *and* 2x the requested sample rate * The buffer size used for 16 bit sound is 2KB or smaller (to allow the oversampled buffer to fit in one 4KB page) [[Sound_Mode 0]] can be used to read the oversampling state without changing it. h4. See also * [[Sound_Mode 0]]