11-20-2016, 08:59 PM
Hi Gintaras, hi all
Gintaras, i need some explanations on the LameWavToMp3 macro.
I understand that QM handles some C++ syntax differently, and I understand 90% of the QM code, but some are beyond my
understanding.
1. type ____BE_CONFIG11 dwSampleRate !byMode [+1]@wBitrate bPrivate bCRC bCopyright bOriginal
it's the translation of this
struct {
DWORD dwSampleRate;
BYTE byMode;
WORD wBitrate;
BYTE byEncodingMethod;
} aac;
why WORD wBitrate is converted to [+1]@wBitrate and not simply @wBitrate? i think it's an offset stuff but can't get it.
2. type __BE_CONFIG1 ____BE_CONFIG11'mp3 []____BE_CONFIG12'LHV1 []____BE_CONFIG13'aac
i understand that it's QM translation for an union , but why use it? offset again?
____BE_CONFIG11'mp3
[]____BE_CONFIG12'LHV1
[]____BE_CONFIG13'aac
i speak about [] before variable names....why mandatory in QM and not used in C?
3. can you explain this conversion?
typedef void* HBE_STREAM;
typedef HBE_STREAM *PHBE_STREAM;
typedef unsigned long BE_ERR;
QM:
type BE_ERR = #
type HBE_STREAM = #
Thanks!
Gintaras, i need some explanations on the LameWavToMp3 macro.
I understand that QM handles some C++ syntax differently, and I understand 90% of the QM code, but some are beyond my
understanding.
1. type ____BE_CONFIG11 dwSampleRate !byMode [+1]@wBitrate bPrivate bCRC bCopyright bOriginal
it's the translation of this
struct {
DWORD dwSampleRate;
BYTE byMode;
WORD wBitrate;
BYTE byEncodingMethod;
} aac;
why WORD wBitrate is converted to [+1]@wBitrate and not simply @wBitrate? i think it's an offset stuff but can't get it.
2. type __BE_CONFIG1 ____BE_CONFIG11'mp3 []____BE_CONFIG12'LHV1 []____BE_CONFIG13'aac
i understand that it's QM translation for an union , but why use it? offset again?
____BE_CONFIG11'mp3
[]____BE_CONFIG12'LHV1
[]____BE_CONFIG13'aac
i speak about [] before variable names....why mandatory in QM and not used in C?
3. can you explain this conversion?
typedef void* HBE_STREAM;
typedef HBE_STREAM *PHBE_STREAM;
typedef unsigned long BE_ERR;
QM:
type BE_ERR = #
type HBE_STREAM = #
Thanks!