>>
>> Hello. (load-sample vector) doesnt work on both clisp and sbcl.
>> Error under CLISP:
>> *** - FFI::FOREIGN-CALL-OUT: #<LISPBUILDER-SDL:RWOPS #x21E36066>
>> cannot be converted to the foreign type FFI:C-POINTER
>>
>
> Stupid mistake on my part. I was trying to call a LOAD-WAV-RW and
> LOAD-MUS-RW using RWOPS instead of the foreign pointer (fp RWOPS).
>
> Fixed.
>
> - Luke

For some reason, SBCL returns an error when trying to call play-sample
(yes, when PLAYING it, when loading, there is no problem) with a
sample loaded with (load-sample vector):

There is no applicable method for the generic function
  #<STANDARD-GENERIC-FUNCTION LISPBUILDER-SDL-MIXER-CFFI::FP (1)>
when called with arguments
  (#<LISPBUILDER-SDL:RWOPS {B8B6329}>).
   [Condition of type SIMPLE-ERROR]

CLISP sais:
*** - NO-APPLICABLE-METHOD: When calling #<STANDARD-GENERIC-FUNCTION
LISPBUILDER-SDL-MIXER-CFFI::FP> with arguments (T), no
      method is applicable.


I am loading it with
(sdl-mixer:load-sample vector)
and I am trying to play it with
(sdl-mixer:play-sample sound2)

I was trying to figure out the problem, but I couldnt. It seems like
(fp rwops) is not defined inside sdl-mixer-cffi, but I still dont
understand how the Backend of sdl-mixer works (i.e. this
lispify-stuff, etc.).

Thank you so far.

- Christoph
_______________________________________________
application-builder mailing list
[email protected]
http://www.lispniks.com/mailman/listinfo/application-builder

Reply via email to