Removed unused mode variable in track_t and unused WAV-header constants.
Moved nested if-statement into a single if-statement and refactored swabaudio part using for-loop as it's more concise and easier to read while being identical in all other aspects.