Showing changes from revision #1 to #2:
Added | Removed | Changed
Entry | |
---|---|
R0 | 1 (Reason code) |
Exit | |
---|---|
R1 | Current sample rate index (1+) |
R2 | Current sample rate (1/1024Hz) |
All other registers preserved |
This call can be used to read the current sample rate index, and the sample rate that index corresponds to.
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.