MPEGLAYER3WAVEF ORMAT is defined by:
Code:
typedef struct mpeglayer3waveformat_tag {
  WAVEFORMATEX wfx;
  WORD         wID;
  DWORD        fdwFlags;
  WORD         nBlockSize;
  WORD         nFramesPerBlock;
  WORD         nCodecDelay;
} MPEGLAYER3WAVEFORMAT, *LPMPEGLAYER3WAVEFORMAT;
The size should be 30. However,
Code:
    cout<<"size of MP3 format: "<<sizeof(MPEGLAYER3WAVEFORMAT)<<endl;
...