# Path: chirp/common/mp3_header.py
# STEREO = 0
# JOINT_STEREO = 1
# DUAL_MONO = 2
# MONO = 3
# _CHANNELS_TO_STR = {
#     STEREO: 'stereo',
#     JOINT_STEREO: 'joint_stereo',
#     DUAL_MONO: 'dual_mono',
#     MONO: 'mono',
#     None: None,
# }
# _PROTECTED_TABLE = (True, False)
# _BIT_RATE_KBPS_TABLE = (0, 32, 40, 48, 56, 64, 80, 96,
#                         112, 128, 160, 192, 224, 256, 320)
# _SAMPLING_RATE_HZ_TABLE = (44100, 48000, 32000)
# _PADDING_TABLE = (False, True)
# _SAMPLES_PER_FRAME = 1152
# def _match_eq(x, y):
#     def __init__(self, sampling_rate_hz=None, bit_rate_kbps=None,
#                  channels=None, protected=None, padding=None):
#     def is_complete(self):
#     def match(self, hdr):
#     def __str__(self):
# def parse(data, offset=0):
# def find(data, expected_hdr=None):
# def from_mutagen(mutagen_mp3):
# class MP3Header(object):


import unittest
import sys
import mutagen.mp3
from chirp.common import mp3_header
#!/usr/bin/env python

###
### A unit test for mp3_header.py
###



VALID_MP3_HEADERS = {
    '\xff\xfb\x90\x64':
        mp3_header.MP3Header(bit_rate_kbps=128, sampling_rate_hz=44100,
                             channels=mp3_header.JOINT_STEREO,
                             padding=False, protected=False),
    '\xff\xfb\xb0\x00': 

# Path: chirp/common/mp3_header.py
# STEREO = 0
# JOINT_STEREO = 1
# DUAL_MONO = 2
# MONO = 3
# _CHANNELS_TO_STR = {
#     STEREO: 'stereo',
#     JOINT_STEREO: 'joint_stereo',
#     DUAL_MONO: 'dual_mono',
#     MONO: 'mono',
#     None: None,
# }
# _PROTECTED_TABLE = (True, False)
# _BIT_RATE_KBPS_TABLE = (0, 32, 40, 48, 56, 64, 80, 96,
#                         112, 128, 160, 192, 224, 256, 320)
# _SAMPLING_RATE_HZ_TABLE = (44100, 48000, 32000)
# _PADDING_TABLE = (False, True)
# _SAMPLES_PER_FRAME = 1152
# def _match_eq(x, y):
#     def __init__(self, sampling_rate_hz=None, bit_rate_kbps=None,
#                  channels=None, protected=None, padding=None):
#     def is_complete(self):
#     def match(self, hdr):
#     def __str__(self):
# def parse(data, offset=0):
# def find(data, expected_hdr=None):
# def from_mutagen(mutagen_mp3):
# class MP3Header(object):


# Path: chirp/common/mp3_header_test.py
import unittest
import sys
import mutagen.mp3
from chirp.common import mp3_header

#!/usr/bin/env python

###
### A unit test for mp3_header.py
###



VALID_MP3_HEADERS = {
    '\xff\xfb\x90\x64':
        mp3_header.MP3Header(bit_rate_kbps=128, sampling_rate_hz=44100,
                             channels=mp3_header.JOINT_STEREO,
                             padding=False, protected=False),
    '\xff\xfb\xb0\x00': 

        mp3_header.MP3Header(bit_rate_kbps=192, sampling_rate_hz=44100,