Previous Page | Next Page

by mudlord at 10:11 PM EDT on April 8, 2009
Yes and no.

The magic is in the emulation. At least the sound emulation. GB_Apu is loads faster AND more accurate than the current GB sound emulation in VBA at least.

But, we had to make revisions to the savestate format for blargg's sound core to work....I would imagine that would be a problem for GSF playback?

edited 10:12 PM EDT April 8, 2009
by SmartOne at 11:07 PM EDT on April 8, 2009
GB_Apu = strictly affecting GB GSFs? Or is it still used in some GBA GSFs that use Square, Noise, etc?

I think GB support in GSFs is pointless, but I guess some people want it?

edited 11:14 PM EDT April 8, 2009
by Knurek at 1:10 AM EDT on April 9, 2009
IIRC, there are no GSF files that use savestates, everything is just a rom file that only plays the music (and song select codes in minigsf files).
by mudlord at 10:59 PM EDT on April 13, 2009
@SmartOne: Some GBA games use the normal GB audio channels. So GB_Apu affects those (other games use the Direct Sound A/B channels). And its required since the GB APU stuff is a part of the GBA HW.

@Knurek
I was under the illusion that the GSF format used savestates when playing data, since I recall reading that the USF format uses savestates or smth.
by Mouser X at 1:35 AM EDT on April 14, 2009
You were correct that USFs use a savestate. However, in regards to xSFs in general, this is non-standard and frowned on. USFs get away with it for 2 reasons. 1) It allows the music to bypass the N64 bootup time (which can be lengthy), and 2) HCS was lazy. GSFs, PSFs, QSFs, and even 2SFs (now. This is a "recent" development) don't use savestates. Even when 2SFs did use a savestate, UF frequently complained about that fact, and wanted to fix it.

Really, if a xSF format uses savestates, it's safe to assume that it does so grudgingly. In fact, this is now an issue with USFs. Because they use a savestate, USFs are essentially locked to PJ64. This is one big reason why you don't see USF support used more widely. To get USFs supported elsewhere (PSP, Wii, etc.) it would more or less require that you port PG64 to the new platform as well. JoshW did a lot to clean PJ64 up, and even released a Linux build. But it's still very dependent on some stuff, and not terribly portable.

Hope that clarifies it a bit. Mouser X over and out.
by hcs at 6:50 AM EDT on April 14, 2009
I'd like to point out that the original PSF holds a Playstation EXE, which is essentially a RAM image.
by SmartOne at 2:07 AM EDT on April 19, 2009
I spent some time tracing the code to figure out the flow. It's a piece of work, that's for sure.

I placed the new VBA-M CPP and H files with the existing ones, and figured the best strategy would be to compile and use the errors to figure out how to link stuff up. (lol) DirectSound.cpp tried to compile, but it needs stdafx.h, which I'm assuming is some standard library I don't know about. Ah, part of the Microsoft Foundation Class Library. Not sure how to acquire such a thing.

How should I go about this?

edited 2:18 AM EDT April 19, 2009
by kode54 at 9:26 PM EDT on April 19, 2009
stdafx.h is the default filename for the central include for precompiled headers. Typically, you throw all your includes into stdafx.h, and then stdafx.cpp does nothing but include that header and is built with compile flags to compile the headers rather than include them.

I'm guessing your project doesn't use that, so you can remove that reference and replace it with manual includes for all the necessary header files.
by mudlord at 10:23 PM EDT on April 19, 2009
@SmartOne: Most of those files you don't need.

You don't need anything from DirectSound.cpp or the MFC port. You just need to focus on the core, which should be files like gba-arm.cpp and gba-thumb.cpp. Adding the core though would help with speed somewhat, and blargg's GB core....well we know how good that is :).
by SmartOne at 2:44 PM EDT on April 21, 2009
I should have realized the plugin doesn't need DirectSound. That's the media player's job. Duh.

Previous Page | Next Page
Go to Page 0 1 2 3 4

Search this thread

Show all threads

Reply to this thread:

User Name Tags:

bold: [b]bold[/b]
italics: [i]italics[/i]
emphasis: [em]emphasis[/em]
underline: [u]underline[/u]
small: [small]small[/small]
Link: [url=http://www.google.com]Link[/url]

[img=https://www.hcs64.com/images/mm1.png]
Password
Subject
Message

HCS Forum Index
Halley's Comet Software
forum source