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

FFI error on Pharo 11 #6

Open
tinchodias opened this issue Apr 19, 2022 · 4 comments
Open

FFI error on Pharo 11 #6

tinchodias opened this issue Apr 19, 2022 · 4 comments

Comments

@tinchodias
Copy link

In a Pharo 7, it loaded but when I tried (FMSound lowMajorScaleOn: FMSound bass1) play, I got: Instance of SDL2 class did not understand #initAudio

In a Pharo 11:
Loading with the README's script raised:

Warning: Package SoundMorphicUserInterface depends on the following classes:
  Slider
You must resolve these dependencies before you will be able to load these definitions: 
  SimpleSliderMorph...

I proceeded to load anyway, and when I try: (FMSound lowMajorScaleOn: FMSound bass1) play,
I get: Instance of SoundBuffer did not understand #tfPointerAddress

@tinchodias
Copy link
Author

tinchodias commented Apr 19, 2022

Sorry, I didn't read well the README. It mentions Pharo 9 so Pharo 7 is too old (I just had an image on my disk and thought it was reasonable to test this lib there...).

@tinchodias
Copy link
Author

In P11, I did some clicks on the debugger and it makes sense to have Instance of SoundBuffer did not understand #tfPointerAddress when trying to call a FFI function a SoundBuffer to a fuction as a "void *". It can't be transformed: ArrayedCollection variableWordSubclass: #SoundBuffer

@tinchodias
Copy link
Author

But don't have more time to continue debugging.

@tinchodias tinchodias changed the title Errors on Pharo 7 and 11 FFI error on Pharo 11 Apr 19, 2022
@thorstenruth
Copy link
Collaborator

In the newest version this error is fixed. Tested with windows.

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