[sdlsound] SDL_sound mixer ETA??

Kevin Nowaczyk beakerboy99 at yahoo.com
Thu May 29 08:25:12 EDT 2008


I'm a hobby programmer, and don't know a lot about how SDL really works (Black Box) so I'm unsure what SDL_RWops is, but I can tell you that the application I referred to is for a jukebox application.  It plays mp3 and ogg files perfectly well.  I can even play a long Sigur Ros song or the entire 18 minute Tain EP by the Decemberists without issues.  Like I said, I don't know exactly how my code works, but it works great!


Good luck,
Kevin



----- Original Message ----
From: Kevin Rogovin <kevin.rogovin at gmail.com>
To: sdlsound at icculus.org
Sent: Thursday, May 29, 2008 7:12:35 AM
Subject: Re: [sdlsound] SDL_sound mixer ETA??

Hi,

I looked at the source, it looks like you are using SDL_mixer to load
a music file and to play it.... I kind of wanted to get away from
SDL_mixer (or else fix it) because only module music can be loaded in
it via SDL_RWops structures, otherwise one needs the file... in what I
am writing, the files are all zip-compressed in archives, and I would
like to be able to feed  an SDL_RWops structure. SDL_image allows for
loading from SDL_RWops, SDL_Sound does too, but the support under
SDL_mixer for SDL_RWops is kind of sucky: WAV and module music only,
no mp3, no ogg, etc...  the only way I see right now to use SDL_mixer
and SDL_sound together is to load via SDL_sound, decode entire sample
in memory, then feed sample to SDL_mixer.... this is fine for sound
effects, but a real no go for music... music should be streamed from
source.... SDL_sound has support for decoding chunks at a time, so I
was hoping that a mixer for SDL_sound was ready and around, but the
one in SDL_Sound in SVN is only a skeleton now (I think the doc says
in SDL_Sound v2.0 it will come, but that might be a very long time) so
I was hoping that someone had already made a mixer for SDL_sound that
did not force one to decode the entire audio stream..... I am
considering hacking SDL_mixer to allow for an SDL_Sound element, but
before I start to do that, I'd like to make sure that it is really
necessary...

Best Regards

-Kevin

On Thu, May 29, 2008 at 1:53 PM, Kevin Nowaczyk <beakerboy99 at yahoo.com> wrote:
> Kevin,
> I added mixer support to my project about a year ago see the code below.
>
> http://tjukebox.cvs.sourceforge.net/tjukebox/server/src/AudioPlayer.cpp?revision=1.3&view=markup
>
>
> Kevin
>
> ----- Original Message ----
> From: Kevin Rogovin <kevin.rogovin at gmail.com>
> To: sdlsound at icculus.org
> Sent: Thursday, May 29, 2008 5:35:50 AM
> Subject: [sdlsound] SDL_sound mixer ETA??
>
> Hi All,
>
> I was looking over the SVN of SDL_Sound and say a mixer in the source,
> along with a tutorial... does anyone know the ETA of the SDL_sound
> mixer? (as I really do not want to hack SDL_mixer to work with
> SDL_sound to stream music).
>
>
> Best Regards
> -Kevin
>
> ---
> To unsubscribe, send a blank email to sdlsound-unsubscribe at icculus.org
> Mailing list archives: http://icculus.org/cgi-bin/ezmlm/ezmlm-cgi?7
>
>
>
>
> ---
> To unsubscribe, send a blank email to sdlsound-unsubscribe at icculus.org
> Mailing list archives: http://icculus.org/cgi-bin/ezmlm/ezmlm-cgi?7
>
>
>

---
To unsubscribe, send a blank email to sdlsound-unsubscribe at icculus.org
Mailing list archives: http://icculus.org/cgi-bin/ezmlm/ezmlm-cgi?7


      



More information about the sdlsound mailing list