diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-04-15 11:06:53 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-04-15 11:06:53 +0200 |
commit | 8ee90d42fc999d4048d789fa719aff20df3dfba4 (patch) | |
tree | 2206ae33aaf1bb577e9546faae89d885315c6ad9 /src/MuxElements.cpp | |
parent | 1aeaeb05aadf196636ea5b6a0613c38111821436 (diff) | |
download | dabmux-8ee90d42fc999d4048d789fa719aff20df3dfba4.tar.gz dabmux-8ee90d42fc999d4048d789fa719aff20df3dfba4.tar.bz2 dabmux-8ee90d42fc999d4048d789fa719aff20df3dfba4.zip |
Make all getSizeXYZ dabSubchannel member functions
Diffstat (limited to 'src/MuxElements.cpp')
-rw-r--r-- | src/MuxElements.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/MuxElements.cpp b/src/MuxElements.cpp index 9892acd..be837b1 100644 --- a/src/MuxElements.cpp +++ b/src/MuxElements.cpp @@ -570,20 +570,19 @@ unsigned short dabSubchannel::getSizeCu() const return 0; } -unsigned short getSizeDWord(dabSubchannel* subchannel) +unsigned short dabSubchannel::getSizeByte(void) const { - return (subchannel->bitrate * 3) >> 3; + return bitrate * 3; } -unsigned short getSizeByte(dabSubchannel* subchannel) +unsigned short dabSubchannel::getSizeWord(void) const { - return subchannel->bitrate * 3; + return (bitrate * 3) >> 2; } - -unsigned short getSizeWord(dabSubchannel* subchannel) +unsigned short dabSubchannel::getSizeDWord(void) const { - return (subchannel->bitrate * 3) >> 2; + return (bitrate * 3) >> 3; } |