Showing changes from revision #1 to #2:
Added | Removed | Changed
Entry | |
---|---|
R0 | 32bit signed linear sample |
Exit | |
---|---|
R0 | 8 bit mu-law logarithmic sample |
This SWI is used to convert a signed linear sample to the 8 bit logarithmic format that’s used by the 8 bit sound system. The returned value will be scaled by the current volume (as set by Sound_Volume).
Voice generators should avoid calling this SWI from within their buffer fill code – the overhead of calling a SWI for every sample to write will be too much for older systems to cope with.