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

problem? #8

Open
CruxVelox opened this issue Oct 15, 2023 · 1 comment
Open

problem? #8

CruxVelox opened this issue Oct 15, 2023 · 1 comment

Comments

@CruxVelox
Copy link

CruxVelox commented Oct 15, 2023

Is this problem from the code or from my pc?

PS C:\Users\cruxv\Desktop\Python\Ordinatore Interi\Sorting_Visualization-master> python3 main.py pygame 2.5.2 (SDL 2.28.3, Python 3.11.5) Hello from the pygame community. https://www.pygame.org/contribute.html Preparing sound dict ... Traceback (most recent call last): File "C:\Users\cruxv\Desktop\Python\Ordinatore Interi\Sorting_Visualization-master\main.py", line 55, in <module> ds=DataSeq(Length, time_interval=Interval, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\cruxv\Desktop\Python\Ordinatore Interi\Sorting_Visualization-master\src\data.py", line 50, in __init__ self.GetSoundArray() File "C:\Users\cruxv\Desktop\Python\Ordinatore Interi\Sorting_Visualization-master\src\data.py", line 116, in GetSoundArray self.sound_mixer = list(map(pygame.sndarray.make_sound, self.sound_list)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\cruxv\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\pygame\sndarray.py", line 92, in make_sound return mixer.Sound(array=array) ^^^^^^^^^^^^^^^^^^^^^^^^ ValueError: Array must be 2-dimensional for stereo mixer

@Samthemanlol
Copy link

I think its the code because i got the same output

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

2 participants