Sure, please commit. - Luke
On 1/9/10, Elliott Slaughter <elliottslaugh...@gmail.com> wrote: > Hi, > > The sdl-mixer:load-music method fails with a pathname argument. > > debugger invoked on a SIMPLE-ERROR: > There is no applicable method for the generic function > #<STANDARD-GENERIC-FUNCTION LISPBUILDER-SDL-MIXER:LOAD-MUSIC (3)> > when called with arguments > > (#P"c:\\Users\\Elliott\\Programming\\CommonLisp\\blackthorn-0.2\\sound\\music.mp3"). > > Here is a minimal fix which works for me. I can commit the patch if you > agree with my changes. > > Index: sdl-mixer/mixer.lisp > =================================================================== > --- sdl-mixer/mixer.lisp (revision 1433) > +++ sdl-mixer/mixer.lisp (working copy) > @@ -165,6 +165,9 @@ > (error "Cannot load ~A." file))) > (error "Music file ~A does not exist." file)))) > > +(defmethod load-music ((filepath PATHNAME)) > + (load-music (namestring filepath))) > + > (defmethod load-music ((rwops SDL:RWOPS)) > "Loads the music file from `RWOPS`. Must be a `WAVE`, `MOD`, `MIDI`, > `OGG` or > `MP3` file. > Returns music as a new [MUSIC](#music) object, or NIL on error." > > -- > Elliott Slaughter > > "Don't worry about what anybody else is going to do. The best way to predict > the future is to invent it." - Alan Kay > _______________________________________________ application-builder mailing list application-builder@lispniks.com http://www.lispniks.com/mailman/listinfo/application-builder