I followed the code from this previous question: Generating sine wave sound in Python, with the added line var = stream.write(volume*samples). I tried to use this variable in pygame sound = pygame.mixer.Sound(var) but I get the error TypeError: Unrecognized argument (type NoneType). I'm unsure why this is happening, and how I can get around it.
Asked
Active
Viewed 278 times
0
Delly
- 113
- 9
1 Answers
0
This is probably because mixer.Sound takes a Sound Object or Buffer Object, and you are giving it a numpy array.
Null Salad
- 579
- 2
- 11
- 25