I just finished making some mods to the landscape view too!
Added a little toolbar instead of the Fkeys wind.
Can't get the sound to work though
Lets take a looksee at the new release ..
btw: I'm almost all the way trough dott, and havn't had any probs yet !
Nice job dude !
Try the sound next

I believe he's already working on the sound.
Dan East
and it might work if you have an Ipaq.
Toolbar would be bloody handy - but I can't draw ;>
It's not usable on my Cassiopeia, and I don't know what the speed cost is.
And I can't lower the sampling rate because it appears too ingrained.
Annoying that. Maybe I just need to hack the crap out of fmopl ;>
If you've got diffs I would love them. We also need a toolbar of some description for Sam and Max - we can detect Sam and Max because it's in the SCUMM details.
Just to clarify my last post (sorry, I tend to write in a stream of conciousness. I guess it's due to my general lack of organisation)
I have sound pseudo working. It appears to drain the buffer too fast. I'll probably post samples of what the code looks like here. This is on a Cassiopeia, so it might work on an ARM chip, but I obviously cannot test this until Thursday
I can't easily lower the quality of the sound in order to improve performance - I tried this earlier (under Linux, because it's easier to make complex mods (because sound works flawlessly for starters, and I can fit DOTT on it ;) I'm probably going to ask some of the scummvm people about this and see if I can improve the situation.
However, in order to reduce the quality I want to make sure this is really what's causing the problem and not something else. Thus I need to apply a complex(ish) mod to the source in order to allow it to be properly profiled using Linux (mostly because the linux libc maintainer is a tosser).
Also, the button bar stuff - well I know how to do it, but I can't draw, so I'ld love diffs so that it can go into a more general release. shapey has a keyboard for me somewhere, which looks like it might answer all of the problems.
If you are an Ipaq user, feel happy resetting your device (I've had to do it many many times today), and have a full RECENT backup, just incase the unthinkable happens, then come and chat to me on Messanger and I'll send you a test binary. It doesn't exactly have the creature comforts however (it's from the original source tree, rather than my mangled one - the mangled one has *no* support for sound, because it was easier to build that way) - this also has the delightful consequence that games are (generally) rather unplayable for that long, but that's okay, I just want to know if it works so that I can unify the two trees ;>
Guinea pigs - this is your calling!
Regarding the sound buffer depleting too fast; First check to see if you can increase the size of that buffer. There should be a define to accomplish that. I also assume there is an Update routine that is called at least every frame to process the sound (unless you are doing that in a separate thread). In that case you can call the Update handler additional times during the rendering of the frame to ensure the sound output is continuous.
Dan East
Yeah, it double buffers, and I've tried various sizes. This is pretty much the original code, although I've tried all sorts of funky modifications and cleaned up some of the code so that it runs better.
When you click on a menu (thus shutting off the GUI), it's almost smooth, so this screams "too slow processor" to me.
I'm going to reboot and profile it under Linux
an example snippet
- Code:
DWORD _stdcall WndMan::sound_thread(WndMan *wm) {
int i;
bool signaled = false;
int time = GetTickCount(), cur;
while (1) {
cur = GetTickCount();
while (time < cur) {
sound.on_timer();
time += 10;
}
signaled = WaitForSingleObject(wm->_event, time - cur) == WAIT_OBJECT_0;
if (signaled) {
for(i=0; i<2; i++) {
WAVEHDR *hdr = &wm->_hdr[i];
if (hdr->dwFlags & WHDR_DONE) {
fill_buffer((int16*)hdr->lpData, hdr->dwBufferLength>>1);
waveOutWrite(wm->_handle, hdr, sizeof(WAVEHDR));
}
}
}
}
return 1; // not in windows.cpp - a bug!
}
Well, I was rather amazed by the profiling results (teach me to guess)
waitForTimer__FP5Scummi 517 51.496 24885 51.496 24885
OPL_CALC_CH__FP14fm_opl_channel 5677056 20.642 9975 32.756 15829
OPL_CALC_SLOT__FP11fm_opl_slot 11354112 12.114 5854 12.114 5854
YM3812UpdateOne__FP6FM_OPLPsi 7449 7.451 3600 40.848 19740
it's C++, so the names have been mangled by gcc, but it looks like the actual sound generation is by far the most expensive thing it does.
Well I've got three PocketPC's =) (E125 (180MHz) / iPAQ 3630 / Toshiba e570 clone (Audiovox Maestro PPC2002)), but I'm no good with sound code =(.
However if you'd like I do have a semi-dead iPAQ that I use to demo Linux and other things now and then. It's semi-dead because the battery is screwed and I've voided the warrenty with my hardware mods =). In other words, send me any unstable ARM builds and I'll test them =).
Will add you to my Messager list anyway.
Ohh sound is good under ARM, nice one =). Bit load, but that's just my iPAQ.
Alright, I think I'll do a special toolbar for each game. One with the mouse arrow thingie for sam n max, one with the fighting stuff for indy4.
does anyone know if any lucas arts adventure needs LARGE letters, ie for the copyright protection or anything?
Well I've ordered the CD of Sam'n'Max + DOTT, so I guess we'll see how the sound system does with Speech files (GOD IF THAT WORKS I'D DIE HAPPY). Thank god for the 1GB Microdrive =).
Sam and Max music will probably not work - the format of the music has changed. I need to build a special version of scummvm for it.
I'll probably go through at some point and tidy it up, but I have other more pressing things to look at ;> (such as - how to make fmopl produce lower quality sound)
mark (killzat) wrote:
Ohh sound is good under ARM, nice one =). Bit load, but that's just my iPAQ.
Can we have it too ? I have a IPaq 3660 ...
Sound is working now?
Hard to believe but if it is that is pretty amazing...
Michel wrote:
Sound is working now?
Hard to believe but if it is that is pretty amazing...
it works on the ipaq, but is too slow for the Cassiopeia.
I'm trying to clean it up so that the cassiopeia is faster to run.
Any chance of you or someone putting up a binary for test?
The binary is relatively unplayable - it's a different tree.
To clarify - there is no loading and saving, there is no landscape mode, and it's riddled with problems the other tree does not have.
On the plus side it does have apparently working sound on ARM machines.
and on MIPs, despite the fact that it's somewhat "tempo-tastic" as one of my flatmates commented. It is however, smooth.
Lower sample rate though. Maybe I should put this up for the ARM version?
(please do not report this on newssites - I have lots of work to do before I want to release this, and it will only put unfair pressure on me)
Nevertheless, if you are interested in hearing tempo-tastic Indy, then I might put a test binary up somewhere.
(before this, I might note, I want to test Day of the Tentacle - with speech, and that will take me at least an hour to back everything up off my CF card, stick this on, and then take it off)