Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide Support to Detect Bit Depth and Number of Channels #10

Open
david-pace opened this issue Jul 11, 2022 · 0 comments
Open

Provide Support to Detect Bit Depth and Number of Channels #10

david-pace opened this issue Jul 11, 2022 · 0 comments
Assignees
Labels
aiff Issues concerning AIFF/AIFC file recovery enhancement New feature or request wave Issues concerning WAVE file recovery

Comments

@david-pace
Copy link
Owner

In general it is not possible to tell the bit depth and the number of channels by analyzing the audio bytes. However, under certain conditions it is possible to exclude some combinations of bit depth and number of channels.

Assuming all audio bytes are still present, the following assumptions can be made:

  • divisible by 6: 24 bit stereo
  • divisible by 4: 16 bit stereo
  • divisible by 3: 24 bit mono
  • divisible by 2: 16 bit mono

The problem is that some of those cases apply at the same time, e.g. if the number is divisible by 6 it is also divisible by 3 and 2. Worst case would be multiples of 12, for which all possibilities would apply.

@david-pace david-pace self-assigned this Jul 11, 2022
@david-pace david-pace added the enhancement New feature or request label Jul 12, 2022
@david-pace david-pace added wave Issues concerning WAVE file recovery aiff Issues concerning AIFF/AIFC file recovery labels Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aiff Issues concerning AIFF/AIFC file recovery enhancement New feature or request wave Issues concerning WAVE file recovery
Projects
None yet
Development

No branches or pull requests

1 participant