h6. [[SoundDMA]] h6(. » [[SoundDMA SWI Calls|SWI Calls]] h6((. » [[Sound_SampleRate]] h6(((. » Sound_SampleRate 1 h2. Sound_SampleRate 1 h5. (SWI &40146) |_<^{width:4em}. Entry | |<^. R0 |<^. 1 (Reason code) | |_<^{width:4em}. Exit | |<^. R1 |<^. Current sample rate index (1+) | |<^. R2 |<^. Current sample rate (1/1024Hz) | |\2<^. All other registers preserved | h4. Use This call can be used to read the current sample rate index, and the sample rate that index corresponds to. h4. Notes This SWI should only be used if [[Sound_Mode 0]] indicates that 16 bit sound output is supported. Sample rate indices are 1-based. Sample rates are measured in units of 1/1024Hz. E.g. 22050Hz would be represented as 22050*1024 = 22579200. [[Sound_SampleRate 3]] can be used to set the current sample rate. h4. See also * [[Sound_Mode 0]] * [[Sound_SampleRate 3]]