Previous Page

by SmartOne at 7:38 PM EDT on April 30, 2009
What about the
#include "../common/SoundDriver.h"
in Sound.cpp? There are a bunch of references and uses of SoundDriver.
by mudlord at 7:05 PM EDT on May 1, 2009
Yes, the output API interfaces use SoundDriver as derived classes IIRC when outputting audio....

You might need to modify that or modify the code to use Winamp's output system instead.

OR make a function that easily wraps that so you also get the chance for a simple fb2k port.

Eg. GME uses gme_play as a function for audio.
by SmartOne at 12:51 AM EDT on May 2, 2009


edited 1:07 AM EDT May 2, 2009
by SmartOne at 12:51 AM EDT on May 2, 2009
I've stared at this for hours. I changed soundTick() inside CPULoop(int ticks) of the GBA.cpp contained in the existing plugin to psoundTickfn() which, as far as I can tell, is the new sound tick emulating function of the VBA-M version of Sound.cpp.

Assuming this is even remotely correct, I still have no idea how to replace the SoundDriver functions all over Sound.cpp, for example, inside flush_samples(Multi_Buffer * buffer):

soundDriver->write(soundFinalWave, soundBufferLen);
systemOnWriteDataToSoundBuffer(soundFinalWave, soundBufferLen);

Previous 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