Init with sampleformat code.