It turns out that this is actually not a problem with lispbuilder-sdl-mixer,
but with the version of SDL_mixer which I compiled from source without smpeg
support. Even though I added the libsmpeg.so file afterwards, SDL_mixer
wasn't able to use it. I solved the problem by recompiling SDL_mixer from
source with smpeg present.

I am going to revert r1450 since it has no impact on whether SDL_mixer can
find smpeg or not, and may actually be inconvenient for users who don't need
mp3 support.

On Sat, Jan 16, 2010 at 8:09 PM, Elliott Slaughter <
elliottslaugh...@gmail.com> wrote:

> Now I get the following slightly more helpful error:
>
> debugger invoked on a SIMPLE-ERROR in thread #<THREAD "initial thread"
> RUNNING {A6E5839}>:
>   Cannot load
> /tmp/eslaught/lisp/asdf/lispbuilder-sdl-mixer/examples/music.mp3.
> 'Unrecognized music format'
>
>
> On Sat, Jan 16, 2010 at 7:31 PM, Luke Crook <l...@balooga.com> wrote:
>
>> I just made a commit adding (sdl-cffi::sdl-get-error) to the sdl-mixer
>> load functions. Hopefully this will return a more descriptive error.
>>
>> - Luke
>>
>>
>>
>> On Sat, Jan 16, 2010 at 7:23 PM, Justin Heyes-Jones <justi...@gmail.com>
>> wrote:
>> > Have you checked
>> > that /tmp/eslaught/lisp/asdf/lispbuilder-sdl-mixer/examples/music.mp3
>> exists
>> > and will play in a different program? The error seems to be that it
>> can't
>> > load it.
>> > Justin
>> >
>> > 2010/1/16 Elliott Slaughter <elliottslaugh...@gmail.com>
>> >>
>> >> Hi,
>> >>
>> >> I'm experiencing difficulties with getting SDL_mixer to work on a
>> CentOS
>> >> box with SBCL 1.0.20 installed. When I try running
>> sdl-mixer-examples:mixer,
>> >> I get an error in loading the mp3 file. I thought the problem was in
>> loading
>> >> libsmpeg, so I committed revision 1450, but now that I try it again, my
>> >> patch seems to not have solved the problem.
>> >> * (sdl-mixer-examples:mixer)
>> >>
>> >> debugger invoked on a SIMPLE-ERROR in thread #<THREAD "initial thread"
>> >> RUNNING {A6E5919}>:
>> >>   Cannot load
>> >> /tmp/eslaught/lisp/asdf/lispbuilder-sdl-mixer/examples/music.mp3.
>> >>
>> >> Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL.
>> >>
>> >> restarts (invokable by number or by possibly-abbreviated name):
>> >>   0: [ABORT] Exit debugger, returning to top level.
>> >>
>> >> ((SB-PCL::FAST-METHOD LISPBUILDER-SDL-MIXER:LOAD-MUSIC (STRING))
>> >>  #<unavailable argument>
>> >>  #<unavailable argument>
>> >>  "/tmp/eslaught/lisp/asdf/lispbuilder-sdl-mixer/examples/music.mp3")
>> >> 0] ba
>> >>
>> >> 0: ((SB-PCL::FAST-METHOD LISPBUILDER-SDL-MIXER:LOAD-MUSIC (STRING))
>> >>     #<unavailable argument>
>> >>     #<unavailable argument>
>> >>     "/tmp/eslaught/lisp/asdf/lispbuilder-sdl-mixer/examples/music.mp3")
>> >> 1: (LISPBUILDER-SDL-MIXER-EXAMPLES:MIXER)
>> >> 2: (SB-INT:SIMPLE-EVAL-IN-LEXENV
>> >>     (LISPBUILDER-SDL-MIXER-EXAMPLES:MIXER)
>> >>     #<NULL-LEXENV>)
>> >> 3: (INTERACTIVE-EVAL (LISPBUILDER-SDL-MIXER-EXAMPLES:MIXER))
>> >> 4: (SB-IMPL::REPL-FUN NIL)
>> >> 5: (SB-IMPL::REPL-FUN NIL)[:EXTERNAL]
>> >> 6: ((LAMBDA ()))
>> >> 7: ((LAMBDA ()))[:EXTERNAL]
>> >> 8: (SB-IMPL::%WITH-REBOUND-IO-SYNTAX #<CLOSURE (LAMBDA #) {A9A1B5D}>)
>> >> 9: (SB-IMPL::TOPLEVEL-REPL NIL)
>> >> 10: (SB-IMPL::TOPLEVEL-INIT)
>> >> 11: ((LABELS SB-IMPL::RESTART-LISP))
>> >>
>> >> --
>> >> 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
>> >>
>> >
>> >
>> > _______________________________________________
>> > application-builder mailing list
>> > application-builder@lispniks.com
>> > http://www.lispniks.com/mailman/listinfo/application-builder
>> >
>> >
>> _______________________________________________
>> application-builder mailing list
>> application-builder@lispniks.com
>> http://www.lispniks.com/mailman/listinfo/application-builder
>>
>
>
>
> --
> 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
>



-- 
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

Reply via email to