Zelda HLE: Implement saw wave generation (sample source 0001).

Fixes issue 7961.