MPEGLAYER3WAVEF ORMAT is defined by:
The size should be 30. However,
produces:
size of MP3 format: 32
actual size: 30
Why 32 and 30? They are not equal?
Code:
typedef struct mpeglayer3waveformat_tag { WAVEFORMATEX wfx; WORD wID; DWORD fdwFlags; WORD nBlockSize; WORD nFramesPerBlock; WORD nCodecDelay; } MPEGLAYER3WAVEFORMAT, *LPMPEGLAYER3WAVEFORMAT;
Code:
cout<<"size of MP3 format: "<<sizeof(MPEGLAYER3WAVEFORMAT)<<endl; cout<<actual size: <<sizeof(WAVEFORMATEX)+ sizeof(WORD)+ \ sizeof(DWORD)+ sizeof(WORD)+ sizeof(WORD)+ sizeof(WORD)<<endl;
size of MP3 format: 32
actual size: 30
Why 32 and 30? They are not equal?
Comment