Announcement

Collapse
No announcement yet.

Hurrican SDL Port

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Fullscreen is controlled by the flag SDL_FULLSCREEN in the function SDL_SetVideoMode. So if you dont want fullscreen then you dont pass the flag SDL_FULLSCREEN to the function.

    Comment


    • #17
      No luck!

      For those of you following along at home, what I did was change line 271 of DX8Graphics.cpp from

      flags |= SDL_FULLSCREEN;

      to

      SDL_WM_SetCaption("Hurrican", "Hurrican");

      recompiled and now Hurrican starts windowed as I hoped and I hear the music playing and I advance past the cracktro and through the menus but no graphics get shown - just an entirely black screen. Console says:

      Initialising SDL.
      SDL initialized.
      Max Texture Units 0

      Comment


      • #18
        Keep us posted please Pickle!

        I did know before trying Hurrican that the current TI PVR SGX xorg driver has got a few serious flaws so I expect Hurrican is just exposing a few more. I reported one very serious bug which causes X to freeze to the Pandaboard mailing list earlier today but it seems TI's OMAP devs don't work weekends so it'll be Monday before I hear anything.

        Pickle - please let us know if you get USB joystick/pad working under PC and non-Pandora ARM builds of Hurrican and also don't forget to tell us whats required to get Hurrican running on your RPi when you get round to it.

        My tip to you is forget about running your rootfs off SD card and buy a bus-powered SSD drive - at least it made a world of difference on my Panda vs a Class 10 SD card.

        Comment


        • #19
          "Max Texture Units 0" : This is very strange it returned a 0, should be 4.

          The Pandora build also uses the SGX driver, but of course you may have something older. Although ive had my share of PVR lockups in the past. But the latest version has worked well.

          I need to make a commit to the source that will add PVRTC support, Hurrican uses quite a bit of memory so this feature really helped with that and made the game much more stable. Usually though this only resulted with problems in later levels, not right at the beginning of the game startup. Maybe this helps. but looks like you have 1 GB of memory, which should be enough.

          Comment


          • #20
            Originally posted by Pickle View Post
            thanks for trying with libmodplug, there is an issue with libmikmod in sdl_mixer.
            Hello! Thanks for the port!
            Please be aware, that there is an issue within libmikmod.

            Short version:
            Only very recent libmikmod versions can properly output sound on (all) ALSA systems.
            If you cannot upgrade or want to stay with distro-shipped outdated version of libmikmod, you should close all your audio applications before you start the game, or it will have no sound.

            Long version:

            The issue is that only recent versions detect and can work with ALSA, and hence with PulseAudio.
            The version shipped with Ubuntu 12.04 and currently in Debian testing is outdated, does not support ALSA, tries to use OSS instead, which ALSA correctly emulates,.. however:

            Old libmikmod does two things wrong:
            1) Grabs exclusive access to ALSA soundcard. This means: all audio applications MUST be closed or there will be no sound.
            2) Races with PulseAudio' own OSS implementation, preventing PA to emulate the sound. This means, in systems with PA, it is ignored and case (1) is applied.

            If libmikmod does not get exclusive access to soundcard, it defaults to "no sound".

            Comment


            • #21
              Basically it is impossible that oss is emulated without using padsp on u 12.04 as the kernel does not support oss emulation. Are you REALLY sure that you can get a /dev/dsp with u? aoss/padsp are just wrappers for outdated software. However pulse audio is routed as default alsa device if you mean that.

              Comment


              • #22
                Originally posted by Kano View Post
                Basically it is impossible that oss is emulated without using padsp on u 12.04 as the kernel does not support oss emulation. Are you REALLY sure that you can get a /dev/dsp with u? aoss/padsp are just wrappers for outdated software. However pulse audio is routed as default alsa device if you mean that.
                ALSA can emulate OSS fine. However, PADSP has race conditions with libmikmod, which is what was fixed in lastest libmikmod. Which is still not inside.

                You can check this very easy by yourself. But I don't know if debian sid, which your distro is based off is using lastest libmikmod or not. Neverless:

                apt-get install gweled

                and run it inside terminal for minor debugging, first run directly, second run opening PA mixer or anything that plays sound, even alsaplayer somewav. Trying to route it through PADSP won't help either.

                Comment


                • #23
                  new xserver - same probs

                  Hi Pickle!

                  TI updated their xserver / PVR drivers yesterday so I updated then did a clean build of Hurrican (with the small changes to the Makefile I've mentioned previously) but I still have the same problems.

                  crazycheese:

                  Its funny you mention the sound (ie the libmikmod bit) a a problem as that is the only thing that is working under Hurrican on Pandaboard for me. I'm running Pulseaudio without any probs whatsoever - JACK with the onboard audio is a different story.

                  Comment


                  • #24
                    Originally posted by danboid View Post
                    Its funny you mention the sound (ie the libmikmod bit) a a problem as that is the only thing that is working under Hurrican on Pandaboard for me. I'm running Pulseaudio without any probs whatsoever - JACK with the onboard audio is a different story.
                    Danboid, have you tried running something using the sound in PARALLEL to hurrican?
                    Because, if you don't have any sound apps, then libmikmod grabs the monopoly over audio card and works ok in ALSA oss emulation.
                    Also, it does not work with pulse audio at all, because if you start pulseaudio volume control, you can clearly see that application using libmikmod is not using pulse audio sink (no application volcontrols there).

                    Comment


                    • #25
                      I think the debate on libmikmod is not worth much, really for a much better experience the libmodplug support should be used. The issue I had with libmikmod was how multiple tracks were handled internally. Again libmodplug solves all of the issues and is thought to have better sound quality.

                      danboid: so you get the crack intro and then once you hit a key it freezes? There nothing graphically special going on there, just a progress bar while everything is being loaded.

                      Comment


                      • #26
                        Originally posted by Pickle View Post
                        I think the debate on libmikmod is not worth much, really for a much better experience the libmodplug support should be used. The issue I had with libmikmod was how multiple tracks were handled internally. Again libmodplug solves all of the issues and is thought to have better sound quality.

                        danboid: so you get the crack intro and then once you hit a key it freezes? There nothing graphically special going on there, just a progress bar while everything is being loaded.
                        Ah, no, you missunderstood. It was not "debate", it was a bug, that is fixed in recent version. Again thanks for the port!

                        Comment


                        • #27
                          @crazycheese

                          I know, but not when the kernel config is without alsa oss support. The kernel 3.2 form U 12.04 is definitely without - check:

                          # CONFIG_SND_PCM_OSS is not set
                          # CONFIG_SND_SEQUENCER_OSS is not set

                          There will be never a /dev/dsp with those kernels!

                          Comment


                          • #28
                            Originally posted by Kano View Post
                            @crazycheese

                            I know, but not when the kernel config is without alsa oss support. The kernel 3.2 form U 12.04 is definitely without - check:

                            # CONFIG_SND_PCM_OSS is not set
                            # CONFIG_SND_SEQUENCER_OSS is not set

                            There will be never a /dev/dsp with those kernels!
                            I'm currently under Linux Mint DE x64:
                            Code:
                            linux cc # ls -lh /dev/dsp 
                            crw-rw---T+ 1 root audio 14, 3 Aug  3 11:00 /dev/dsp
                            linux cc # cat /usr/src/linux-
                            linux-headers-3.2.0-2-amd64/  linux-kbuild-3.2/
                            linux-headers-3.2.0-2-common/ 
                            linux cc # cat /usr/src/linux-headers-3.2.0-2-amd64/.config |grep CONFIG_SND_PCM_OSS
                            CONFIG_SND_PCM_OSS=m
                            CONFIG_SND_PCM_OSS_PLUGINS=y
                            linux cc # cat /usr/src/linux-headers-3.2.0-2-amd64/.config |grep CONFIG_SND_SEQUENCER_OSS
                            # CONFIG_SND_SEQUENCER_OSS is not set
                            So, under Ubuntu you shouldn't theoretically get sound at all... Unless they pushed lastest version in :/
                            Well, just upgrade, and case closed.

                            Comment


                            • #29
                              You use Debian and not Ubuntu! When do you get it?

                              Comment


                              • #30
                                Originally posted by Kano View Post
                                You use Debian and not Ubuntu! When do you get it?
                                Geesh, I know. I didn't know Ubuntu kernel was built completely without OSS support as you wrote. It doesn't matter which distro you use, actual build config does matter.
                                So, if you want to test on Ubuntu behaviour, try run firefox html5 video and then in this time start gweled, to see if you can get sounds out of it. The chance that I get to Ubuntu is very low, probably in VM. I will be migrating from this distro very soon as well.

                                Comment

                                Working...
                                X