h6. [[SoundDMA]] h6(. » [[SoundDMA SWI Calls|SWI Calls]] h6((. » Sound_SampleRate h2. Sound_SampleRate h5. (SWI &40146) |_<^{width:4em}. Entry | |<^. R0 |<^. "Reason code":#reason| |\2<^. All other registers dependent on reason code| |_<^{width:4em}. Exit | |<^. R0 |<^. Preserved | |\2<^. All other registers dependent on reason code| h4. Use Read or change the sound sample rate. h4. Notes This SWI should only be used if [[Sound_Mode 0]] indicates that 16 bit sound output is supported. h4(#reason). Reason Codes |_<^{width:4em}. #|_<^. Action| |<^. 0|<^. [[Sound_SampleRate 0|Read available sample rates]]| |<^. 1|<^. [[Sound_SampleRate 1|Read current sample index and rate]]| |<^. 2|<^. [[Sound_SampleRate 2|Convert sample index to rate]]| |<^. 3|<^. [[Sound_SampleRate 3|Set sample rate index]]| h4. See also * [[Sound_Mode 0]]