Code Monkey home page Code Monkey logo

Comments (13)

hozuki avatar hozuki commented on July 20, 2024

acb2wavs does not support looping by default...

But is the time alright? I mean, the decoded time equals to overall time (with looped content only plays once).

from libcgss.

Rohul1997 avatar Rohul1997 commented on July 20, 2024

I believe the time is alright.

If not by default then how do I get it to loop? I've been using vgmstream for a lot of the tracks which are looped automatically but I've come across a couple tracks that just get exported as static noise. I've tried those tracks with acb2wavs and they get exported correctly but just not looped.

from libcgss.

ActualMandM avatar ActualMandM commented on July 20, 2024

Those tracks that are static noises don't have their subkeys baked into vgmstream yet: it should only be anything from and past the Lost Heroes event along with most sound effects/voice clips.

from libcgss.

Rohul1997 avatar Rohul1997 commented on July 20, 2024

Oh yes that's right. Also thanks I managed to get it to work with vgmstream by giving it the correct subkeys

from libcgss.

hozuki avatar hozuki commented on July 20, 2024

To enable looping you can modify the fields in decoderConfig:

HCA_DECODER_CONFIG decoderConfig = options.decoderConfig;


vgmstream is like a de facto standard... I start to think I should make a utility that generates companion .hcakey for vgmstream from acbs. Then it does not have to bake those keys in the code.

from libcgss.

Rohul1997 avatar Rohul1997 commented on July 20, 2024

Oh nice. Also that would actually be super useful if you could do that. Thanks for your help

from libcgss.

hozuki avatar hozuki commented on July 20, 2024

@Rohul1997 The new release contains a utility to do that. But you still have to get the main key yourself.

from libcgss.

Rohul1997 avatar Rohul1997 commented on July 20, 2024

Ayy thanks a lot. I've just tried it and it kinda works how its meant to.
For some Dragalia Lost tracks .bin files get exported which are also .hca files that are normally separate vocal and instrumental tracks. The problem is using acb2hcas the .bin files that get exported inside the external folders are files filled with zeros in hex. Other than that the .hca and .hcakey files that get exported work fine with vgmstream.

from libcgss.

hozuki avatar hozuki commented on July 20, 2024

I guess you meant "internal folders".

Well, it may be another "linking" or "aliasing". And they are filled with zeroes, for unknown reasons. You can check out the internal AWB in raid.acb. (Search for "AFS2" in a hex editor.)

from libcgss.

Rohul1997 avatar Rohul1997 commented on July 20, 2024

No no I actually did mean the external folders because when using acb2wavs it exported to external and those .bin files if you rename them to .wav they play. So it should be the same with acb2hcas only difference is those .bin files should just be renamed to .hca but the problem is they are filled with zeroes and so contain nothing.

from libcgss.

Rohul1997 avatar Rohul1997 commented on July 20, 2024

Oh so when I use the -n parameter it gives 1 .hca file with the name and 2 .bin file inside the external folder. The .hca file is fine and has the correct content but the 2 .bin files are filled with zeroes.

When I don't use the -n parameter it gives 3 .bin files inside the external folder. All 3 are .hca files and do have the correct content inside.

The same file names + extensions are exported inside the internal folder but those are just couple kb files that don't have the actual content.

from libcgss.

hozuki avatar hozuki commented on July 20, 2024

It's weird, the name should not affect reading streams. Anyway this should be fixed in a new release.

from libcgss.

Rohul1997 avatar Rohul1997 commented on July 20, 2024

Thanks! Just tried and it works perfectly now. I guess I can close this now.

from libcgss.

Related Issues (9)

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.