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

SDL2: Test failures for sndarray #850

Closed
dlon opened this issue Feb 24, 2019 · 0 comments
Closed

SDL2: Test failures for sndarray #850

dlon opened this issue Feb 24, 2019 · 0 comments
Labels
sndarray pygame.sndarray
Milestone

Comments

@dlon
Copy link
Member

dlon commented Feb 24, 2019

======================================================================
ERROR: test_array (test.sndarray_test.SndarrayTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\David\Documents\dev\pygame\test\sndarray_test.py", line 38, in test_array
    check_array(8, 1, [0, 0x0f, 0xf0, 0xff])
  File "C:\Users\David\Documents\dev\pygame\test\sndarray_test.py", line 29, in check_array
    snd = pygame.sndarray.make_sound(srcarr)
  File "C:\Python37\lib\site-packages\pygame-1.9.5.dev0-py3.7-win-amd64.egg\pygame\sndarray.py", line 80, in make_sound
    return numpysnd.make_sound (array)
  File "C:\Python37\lib\site-packages\pygame-1.9.5.dev0-py3.7-win-amd64.egg\pygame\_numpysndarray.py", line 75, in make_sound
    return mixer.Sound (array=array)
ValueError: Array must be 2-dimensional for stereo mixer

======================================================================
ERROR: test_make_sound (test.sndarray_test.SndarrayTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\David\Documents\dev\pygame\test\sndarray_test.py", line 84, in test_make_sound
    check_sound(8, 1, [0, 0x0f, 0xf0, 0xff])
  File "C:\Users\David\Documents\dev\pygame\test\sndarray_test.py", line 76, in check_sound
    snd = pygame.sndarray.make_sound(srcarr)
  File "C:\Python37\lib\site-packages\pygame-1.9.5.dev0-py3.7-win-amd64.egg\pygame\sndarray.py", line 80, in make_sound
    return numpysnd.make_sound (array)
  File "C:\Python37\lib\site-packages\pygame-1.9.5.dev0-py3.7-win-amd64.egg\pygame\_numpysndarray.py", line 75, in make_sound
    return mixer.Sound (array=array)
ValueError: Array must be 2-dimensional for stereo mixer

======================================================================
ERROR: test_samples (test.sndarray_test.SndarrayTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\David\Documents\dev\pygame\test\sndarray_test.py", line 129, in test_samples
    check_sample(8, 1, [0, 0x0f, 0xf0, 0xff])
  File "C:\Users\David\Documents\dev\pygame\test\sndarray_test.py", line 121, in check_sample
    samples[...] = test_data
ValueError: could not broadcast input array from shape (4) into shape (2,2)
@dlon dlon added the 2.0 label Feb 24, 2019
@dlon dlon added this to the 2.0 milestone Feb 24, 2019
@dlon dlon added the sndarray pygame.sndarray label Feb 24, 2019
@dlon dlon closed this as completed Mar 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sndarray pygame.sndarray
Projects
None yet
Development

No branches or pull requests

1 participant