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

Duplicating AnonymousSoundMorph from wave file via halo floods image with debuggers #104

Open
LinqLover opened this issue Dec 19, 2023 · 1 comment
Labels
bug [WHAT] Something isn't working as expected. Automated tests beneficial. :- etoys [SCOPE] The issue is related to the Etoys framework in Morphic. user [SCOPE] It is for the (maybe non-programming) (end-) user: designer, artist, writer, gamer, ...

Comments

@LinqLover
Copy link
Contributor

image

@LinqLover LinqLover added user [SCOPE] It is for the (maybe non-programming) (end-) user: designer, artist, writer, gamer, ... etoys [SCOPE] The issue is related to the Etoys framework in Morphic. bug [WHAT] Something isn't working as expected. Automated tests beneficial. :- labels Dec 19, 2023
@LinqLover
Copy link
Contributor Author

  • Morph>>veryDeepCopyWith: sends prepareToBeSaved and eventually AnonymousSoundMorph>>releaseCachedState, which converts the SampledSound into a CompressedSoundData
  • AnonymousSoundMorph does not implement loadCachedState to convert the sound back!
    • Naive implementation:
      AnonymousSoundMorph>>loadCachedState
      
      	super loadCachedState.
      	sound isCompressed
      		ifTrue: [sound := sound asSound].
  • loadCachedState is never sent (neither after copying nor after file-in)!
    • Simple attempt to fix: send it from AnonymousSoundMorph>>veryDeepFixupWith: (beware, might be executed before fixing up all variables ...)
  • Naive implementations as above raise an error inside CompressedSoundData>>asSound:
    image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug [WHAT] Something isn't working as expected. Automated tests beneficial. :- etoys [SCOPE] The issue is related to the Etoys framework in Morphic. user [SCOPE] It is for the (maybe non-programming) (end-) user: designer, artist, writer, gamer, ...
Projects
None yet
Development

No branches or pull requests

1 participant