re-implemented loadMUS(...) methods (was Re: [sdljava-users] lowering SDL_mixer requirement)
Status: Beta
Brought to you by:
ivan_ganza
|
From: Ivan Z. G. <iva...@ya...> - 2005-02-04 02:43:35
|
I've re-implemented the following methods via the use of a temporary
file. The temp file is saved to the location of "java.io.tmpdir".
public static MixMusic loadMUS(Buffer buf) throws SDLException
public static MixMusic loadMUS(byte[] data) throws SDLException
public static MixMusic loadMUS(URL url) throws SDLException,
IOException, MalformedURLException
public static MixMusic loadMUS(InputStream in) throws
SDLException, IOException
I hope you find it usefull.
Cheers,
-Ivan/
Robert Schuster wrote:
> Ok, now I understand the problem.
>
> Would it be feasible to implement the URL functions for 1.2.5 with the
> help of a temporary file? We could store the contents of an URL
> therein and let SDL_mixer work on that file.
>
> cu
> Robert
>
>
> Ivan Z. Ganza wrote:
>
>> Just to clarify we DO NOT loose the music functions. We only lost
>> the ability to load them via URL or otherwise use a ByteBuffer
>> because the RW_ops version of LoadMUS is not implemented until Mixer
>> version 1.2.6
>>
>> You can still load music but only via file path method.
>>
>> -Ivan/
>>
>> Robert Schuster wrote:
>>
>>> Hi.
>>> I wonder why we lose the music functions. This
>>> (http://jcatki.no-ip.org/SDL_mixer/SDL_mixer_48.html#SEC48)
>>> documentation seems to be for SDL_mixer 1.2.5 but supports the music
>>> functions already. I would have expected additional API in
>>> 1.2+(2k).x ... :-)
>>>
>>> cu
>>> Robert
>>>
>>> Ivan Z. Ganza wrote:
>>>
>>>> Actually I have just downgraded it back to 1.2.5. Seems it is not
>>>> actually that stable!! I had this weird problem where it would
>>>> freeze on Mix_OpenAudio and never return. My assumption was that
>>>> it was something funky on my system but now when I tried with 1.2.5
>>>> everything is fine.
>>>>
>>>> So we loose temporarily the following methods:
>>>> public static MixMusic loadMUS(Buffer buf)
>>>> public static MixMusic loadMUS(URL url)
>>>> public static MixMusic loadMUS(InputStream in)
>>>>
>>>> checking these changes in CVS now...
>>>>
>>>> Robert Schuster wrote:
>>>>
>>>>> Hello, would it be possible to lower the requirement for the
>>>>> SDL_mixer library to version 1.2.5?
>>>>> I have a number of distributions where 1.2.6 is not yet stable and
>>>>> another bunch of admins which cannot be easily convinced to update :)
>>>>> cu Robert
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> -------------------------------------------------------
>>>> This SF.Net email is sponsored by: IntelliVIEW -- Interactive
>>>> Reporting
>>>> Tool for open source databases. Create drag-&-drop reports. Save time
>>>> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
>>>> Download a FREE copy at http://www.intelliview.com/go/osdn_nl
>>>> _______________________________________________
>>>> sdljava-users mailing list
>>>> sdl...@li...
>>>> https://lists.sourceforge.net/lists/listinfo/sdljava-users
>>>>
>>>>
>>>
>>>
>>> -------------------------------------------------------
>>> This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
>>> Tool for open source databases. Create drag-&-drop reports. Save time
>>> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
>>> Download a FREE copy at http://www.intelliview.com/go/osdn_nl
>>> _______________________________________________
>>> sdljava-users mailing list
>>> sdl...@li...
>>> https://lists.sourceforge.net/lists/listinfo/sdljava-users
>>
>>
>>
>>
>>
>>
>> -------------------------------------------------------
>> This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
>> Tool for open source databases. Create drag-&-drop reports. Save time
>> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
>> Download a FREE copy at http://www.intelliview.com/go/osdn_nl
>> _______________________________________________
>> sdljava-users mailing list
>> sdl...@li...
>> https://lists.sourceforge.net/lists/listinfo/sdljava-users
>>
>>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
> Tool for open source databases. Create drag-&-drop reports. Save time
> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> _______________________________________________
> sdljava-users mailing list
> sdl...@li...
> https://lists.sourceforge.net/lists/listinfo/sdljava-users
|