Giter Site home page Giter Site logo

4PCM_ENV driver crackles about sgdk HOT 21 CLOSED

stephane-d avatar stephane-d commented on July 21, 2024
4PCM_ENV driver crackles

from sgdk.

Comments (21)

clbr avatar clbr commented on July 21, 2024

The attachment is a gzipped wav file, renamed so github allowed upload.

from sgdk.

Stephane-D avatar Stephane-D commented on July 21, 2024

Did you tested on real hardware ? I made a test using the 4PCM driver and while it doesn't sound as good than on computer (pitch is a bit lower and sound is a bit harsh) it was not crakling.
Are you doing something else while playing the sample ? You have to know than hanging the 68K bus (by using DMA or doing VDP accesses in active period) will have an impact on PCM playback. That might be your problem.

from sgdk.

clbr avatar clbr commented on July 21, 2024

No, I don't have real hw, just an emulator. Will test a standalone project, without any graphics, tomorrow.

from sgdk.

Stephane-D avatar Stephane-D commented on July 21, 2024

Ok, you should now that PCM sound in emulator are almost time not correct. You should really test on real hardware or an accurate emulator as Exodus, BlastEm or Genesis Plus.

from sgdk.

clbr avatar clbr commented on July 21, 2024

A no-graphics ROM still has bad sound. I'm attaching it, can you please confirm it plays fine for you?

The source is just

#include <genesis.h>
#include "files.h"

int main() {

        Z80_init();
        Z80_loadDriver(Z80_DRIVER_4PCM_ENV, 1);

        SND_startPlay_4PCM_ENV(music, sizeof(music), 0, 1);

        while (1);

        return 0;
}

I've been using dgen. I tried to compile BlastEm, but it is seriously buggy, several compile errors. Genesis Plus doesn't exist for Linux according to Google, will try Exodus next.

from sgdk.

clbr avatar clbr commented on July 21, 2024

rom.pdf

Rename to rom.md.gz and unpack.

from sgdk.

Stephane-D avatar Stephane-D commented on July 21, 2024

It's the almost same code i tested on real hardware, it does not play as good than on computer as i told you, but not crackling at least. DGen is a really outdated emulator, you should try newer ones as Gens or Fusion at least ;)

from sgdk.

clbr avatar clbr commented on July 21, 2024

Gens also didn't compile, I tried it before I tried dgen.

I'm attaching what I hear from DGen - is what you hear this bad?

(rename to .wav.gz)
output.pdf

from sgdk.

clbr avatar clbr commented on July 21, 2024

Fusion is closed source, and Exodus was Windows only. It seems there are no other Genesis emulators I can try...

from sgdk.

Stephane-D avatar Stephane-D commented on July 21, 2024

You should try this one : http://segaretro.org/Gens/GS
About the sound, it does sound better on real hardware but not too much...
I've to see why the sound is fuzzy like that, even in emulator.

from sgdk.

clbr avatar clbr commented on July 21, 2024

I did. All of gens, gens/gs, and gens/gs II only support 32-bit.

from sgdk.

Stephane-D avatar Stephane-D commented on July 21, 2024

Did you tried that method ?
http://danielj.se/2011/05/01/install-gensgs-megadrive-emulator-on-64-bit-ubuntu/

and maybe this can help you as well :
http://ubuntuforums.org/showthread.php?t=597615

from sgdk.

clbr avatar clbr commented on July 21, 2024

I run a pure 64-bit distro on purpose. It is not possible to install 32-bit libs, and even if it were, I'm not willing to do so.

from sgdk.

clbr avatar clbr commented on July 21, 2024

Would it be possible for you to record how it sounds on real hw? I'd like to hear if it's acceptable enough.

from sgdk.

Stephane-D avatar Stephane-D commented on July 21, 2024

Ok, too bad ... i though there were more possibilities to run megadrive emulator on 64 bit Linux system :-/ You can eventually use Wine but i guess that is not a solution for you.

from sgdk.

Stephane-D avatar Stephane-D commented on July 21, 2024

Unfortunately i can't as my laptop does not have a working microphone input :-/ I could eventually record it from my smartphone but the quality won't be really nice to check about quality i guess.

from sgdk.

clbr avatar clbr commented on July 21, 2024

Can we ask on some forum? I don't know where Genesis homebrew folks hang out. Real hw recording would confirm if there's an issue with the sound driver code.

from sgdk.

Stephane-D avatar Stephane-D commented on July 21, 2024

Of course you can ask on the forum in the Megadrive or SGDK section, if you provide the rom i am sure someone could make a small record about how it sounds on the real hardware.

from sgdk.

clbr avatar clbr commented on July 21, 2024

http://gendev.spritesmind.net/forum/viewtopic.php?f=19&t=2256#p27812

from sgdk.

clbr avatar clbr commented on July 21, 2024

A kind forum member posted a recording (attached here). It still has the same kind of buzz as the emulator, just a bit quieter - this confirms there is an issue in the 4PCM driver.

hwrec.pdf

from sgdk.

Stephane-D avatar Stephane-D commented on July 21, 2024

After having inspecting the waveform produced, the driver does not seem wrong here, hardware related issue :-/ So i close.

from sgdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.