Skip to content

ValueError: 16 is not a valid SoundFormat #21

@PiSaucer

Description

@PiSaucer

I am unable to convert FSB version 5 files.

Command:

python3 extract.py file.fsb

Error Message:

Traceback (most recent call last):
  File "C:\python-fsb5_win64\extract.py", line 131, in <module>
    main()
  File "C:\python-fsb5_win64\extract.py", line 127, in main
    exit(app.run(sys.argv[1:]))
  File "C:\python-fsb5_win64\extract.py", line 121, in run
    self.handle_file(f)
  File "C:\python-fsb5_win64\extract.py", line 99, in handle_file
    fsb, ext = self.load_fsb(data)
  File "C:\python-fsb5_win64\extract.py", line 55, in load_fsb
    fsb = fsb5.load(data)
  File "C:\python-fsb5_win64\fsb5\__init__.py", line 230, in load
    return FSB5(data)
  File "C:\python-fsb5_win64\fsb5\__init__.py", line 124, in __init__
    self.header = self.header._replace(mode=SoundFormat(self.header.mode), size=buf.tell())
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\lib\enum.py", line 384, in __call__
    return cls.__new__(cls, value)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\lib\enum.py", line 702, in __new__
    raise ve_exc
ValueError: 16 is not a valid SoundFormat

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions