Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: SDL 1.2.9 for the DS for latest devkitARM/libnds r20

                  
   
  1. #11
    DCEmu Newbie
    Join Date
    Jun 2008
    Posts
    6
    Rep Power
    0

    Default

    Well.. and what about SDL_mixer?? does it play anything? I've tried with a wav file but doesn't seems to work...
    Edit: Debugging a bit I found that it freezes when calling SDL_BuildAudioCVT from Mix_LoadWAV_RW
    Last edited by hiperbou; August 15th, 2008 at 17:12.

  2. #12
    DCEmu Coder GPF's Avatar
    Join Date
    Apr 2004
    Location
    Texas
    Age
    52
    Posts
    796
    Rep Power
    78

    Default

    Quote Originally Posted by hiperbou View Post
    Well.. and what about SDL_mixer?? does it play anything? I've tried with a wav file but doesn't seems to work...
    Edit: Debugging a bit I found that it freezes when calling SDL_BuildAudioCVT from Mix_LoadWAV_RW
    did you build your project with the template? http://gpf.dcemu.co.uk/files/nds/SDL...S061507src.rar

    ds SDL requires a custom arm7 core to have sound enabled.

    Troy(GPF)
    also the latest ds SDL version is part of libsdl.org for the last couple releases, I need to update my site about that.

  3. #13
    DCEmu Newbie
    Join Date
    Jun 2008
    Posts
    6
    Rep Power
    0

    Default

    Yes, I'm using the template.
    The makefile.ds isn't included on the official SDL sources, but I've compiled it and it seems that sound is working (I need to test it on the real hardware, because it sounds weird on the emus).
    Thanks for your replies!

  4. #14
    DCEmu Newbie
    Join Date
    Jun 2008
    Posts
    6
    Rep Power
    0

    Default

    I just get weird sounds, using wavs or mod files... I have to initialize the librarie in some particular way?
    I'm using with sound_freq=22050, or 11025 but got the same bad results...
    Mix_OpenAudio (SOUND_FREQ,MIX_DEFAULT_FORMAT, 2,1024*SOUND_FREQ/22050)

    EDIT:
    Got it working with Mix_OpenAudio (11025, AUDIO_S8, 1,4096);
    This means that no stereo panning can be used?

    REEDIT:
    I still got some "clicks" both on music and fx

    It seems that if you play a sound, when it finishes playing, randomly keeps repeating noise or clicks for an undefined time. If you play a music on the background it does not happen.
    It's annoying if you don't need a music to be played...
    Last edited by hiperbou; August 24th, 2008 at 12:27.

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •