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

UnboundLocalError 'channels' #4

Open
kwonminho97 opened this issue Apr 22, 2020 · 0 comments
Open

UnboundLocalError 'channels' #4

kwonminho97 opened this issue Apr 22, 2020 · 0 comments

Comments

@kwonminho97
Copy link

I'd like to convert Saleae logicpro pcm file to wav,
But it shows some issue.

  1. UnboundLocalError 'channels'

File "D:\python_project\pcm2wav2\PCM2Wav\PCM2Wav.py", line 54, in _generate
frame = self._calc_frame(channels)
UnboundLocalError: local variable 'channels' referenced before assignment

  1. short variable format issue.

Source code only support 'short' variable format:(-32768) <= supported value <= 32767
So, it makes error when value is out of range.
Some value was 65532,......
Can I modify "__formats = {1: 'c', 2: 'h'}" --> __formats = {1: 'c', 2: 'i'}?

  1. Can somebody share good example of csv file working with this source code?
  • I attached what I used csv file.

i2s.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant