Expand|Select|Wrap|Line Numbers
- typedef struct mpeglayer3waveformat_tag {
- WAVEFORMATEX wfx;
- WORD wID;
- DWORD fdwFlags;
- WORD nBlockSize;
- WORD nFramesPerBlock;
- WORD nCodecDelay;
- } MPEGLAYER3WAVEFORMAT, *LPMPEGLAYER3WAVEFORMAT;
Expand|Select|Wrap|Line Numbers
- 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?