Use GE_CMODE instead of TPSM_PIXEL_STORAGE_MODE
Code cleanup scePsmf
Code cleanup #1
Add PSMF_VERSION_00XX
Add some initial kernel sysclib funcs.
Add logging and fix savestatus
Add sceCtrl_driver and sceDisplay_driver
Initialize the status bar earlier.

We try to set its text sometimes before creating it, which can cause a
random hang.  It could also maybe be causing the window titles to be
blanked out.
Add a few more safety checks for SendMessage().

Broadcasting is bad.
Always key on for 32 samples regardless of pitch.

Before it would be more or less depending on pitch.  It's always 32.
Don't drop the last mix of vag samples.

Wait instead until the end of mixing to end the envelope.
Reset sampleFrac on keyon.

Since we're starting the samples over.
Smooth SAS resampling when pitch != 0x1000.
Return an error for an invalid pitch, per tests.
Optimize mixing samples at common pitches.

Doesn't seem to be a big help but may matter more on mobile.
Ignore pitch > 0x1000 for pcm.

It seems to be supported only below 0x1000.  Also, drop optimization for
double for now, simpler this way and doesn't seem common?
Avoid some divisions, just in case.
Actually use the resample buffer.

Fixes static in Final Fantasy Tactics music.
Merge pull request #5509 from unknownbrackets/sas-minor

Improve pitch handling in sas
fix iOS7 crash