Coder Social home page Coder Social logo

ipatix / gba-hq-mixer Goto Github PK

View Code? Open in Web Editor NEW
37.0 37.0 6.0 64 KB

This repository contains multiple versions of my so called "HQ mixer" for GBA games which use the m4a/mp2k sound driver.

License: GNU General Public License v3.0

Assembly 100.00%

gba-hq-mixer's People

Contributors

easyaspi314 avatar ipatix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

gba-hq-mixer's Issues

hangup when trying to play compressed [looped] wav data beyond the end

Hello. I hack FE8.
I also making on a tool called FEBuilderGBA.

I'm trying to use your m4a_hq_mixer to achieve DPCM in GBAFE.
I think your DPCM is a great feature because it can halve the wave capacity.
If use this, I think that it is not impossible to use voice data and music in wav.

I have now gotten your routine to work in GBAFE.
The compressed wave is also playing correctly.

However, there are two problems.
The first is the end of the compressed wav.

The first is that it hangs if I play past the end of the compressed wav.
To avoid this, you need to issue an EOT in the score to stop playback before you reach the end.
In vanilla, the sound will automatically stop when it exceeds the tail.

The next issue is that we don't know the data length.
We know the size before compression, but we don't know the size after compression.
DPCM is said to be lossless compression, so although it is possible to guess the data length by calculation, I don't think it is a good method.
We need to write the data length in the header or define the end data.

And if the data length is known, I think it is possible to stop instead of hang.

What are your thoughts on this issue?
I would appreciate your reply.

Game Crash

Environment

Visual Boy Advance-M 2.1.1

Details

I tested this thoroughly using both the old sound engine (2.1) and the current engine (4.0). The following crash only happens with v4.0 both with and without the changes suggested here (the following video example is using the original code in the repo).

HQ.Music.Engine.v4.0.Crash.mp4

The disassembler shows an infinite increase now:

image

Additional Details

If it helps, the hq_buffer_ptr constant was set to 0x30028E0.

Strange Audio Noise

As per our discussion on Discord, the current version of the mixer produces more background noise than the previous version (2.1).

Here is an example of what certain samples sounded like on 2.1:
https://cdn.discordapp.com/attachments/684056505812516902/846141309948526602/Sound_Test.mp4

Here is an example of what the same samples sound like now:
https://cdn.discordapp.com/attachments/684056505812516902/846141453612744704/Sound_Test.mp4

I have also attached the code used for the video taken with the previous version in use:
High Quality Music v2.1

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.