Jump to content


Photo
- - - - -

Sound Tool - With Source Code


  • Please log in to reply
22 replies to this topic

#1 Guitar

Guitar

    Project Amber Developer

  • Layout Creator
  • PipPipPipPipPip
  • 2989 posts

Posted 15 December 2012 - 05:49 PM

As part of my preparation for finally getting the sound sorted properly in Project Amber I have written a sound tool.

 

It supports NEC 7759, and OKI 6376 sounds at the moment (regardless of tech)

 

You may need to install some .ocx files if it says they are missing, they are standard component files available as part of the VB6 runtime if you need them.

 

You will also need bass.dll installed, if you have installed Project Amber already then it has already been installed. Available here http://www.un4seen.com/

 

I have included the source code, it is Visual Basic 6.

 

It supports upto 4MB total ROM size, and can also tell when the sound ROMs are backwards (OKI Only), It also supports OKI Dual Banking.

 

 

Attached Files


Project Amber 2 - Coming Soon


#2 pilky

pilky

    Banned

  • Banned
  • 346 posts

Posted 15 December 2012 - 06:00 PM

nice thx guitar ..


loves fruit machines ..any shape any size any colour

#3 Guitar

Guitar

    Project Amber Developer

  • Layout Creator
  • PipPipPipPipPip
  • 2989 posts

Posted 19 December 2012 - 02:33 AM

Having got to grips with sound buffers I've been playing with the YMZ280B chip to add sound for How Big's Your Rock.

 

Well I got a bit carried away...

 

The OKI and NEC chips are non tech specific, if it used that chip then the sound ROMs will load.

 

The YMZ chip has a different ROM table depending on the tech/manufacturer.

 

This tool supports YMZ Sampled Sound for Scorpion 2, Scorpion 4, Scorpion 5, and 2 Types of Epoch ROM.

 

Scorp2 supports all 2 ROMs I know use it.

Scorp4/5 has occasional issues with the auto detection, I will post a fix soon.

Epoch has 3 styles of ROM use, this supports 2 of them, the newest games tend to be the ones that dont load. I would say around 75% of available sound ROMs are supported.

 

Also It now supports 8 Channels, Stereo effect creation (Maygay M1 used this but sounds good on many techs) with adjustable delay, Echo effect creation with adjustable delay/depth.

 

The echo effect was used by the OKI chip accross 2 channels, though this supports it across 8 just because I was playing around.

 

Now I have rolling buffers working I can put all this into amber along with the synth sound.

 

Enjoy :)

Attached Files


Edited by Guitar, 19 December 2012 - 02:34 AM.

Project Amber 2 - Coming Soon


#4 andy-1

andy-1

    Layout Creator

  • Layout Creator
  • PipPipPipPip
  • 1987 posts

Posted 19 December 2012 - 08:08 AM

Thanks for the update Guitar



#5 gemini17

gemini17

    GOLD Supporter

  • Regulars
  • 1751 posts

Posted 19 December 2012 - 08:26 AM

Many thanks for the update.

 

So do we unzip and load this straight into Amber?

 

Jay



#6 Guitar

Guitar

    Project Amber Developer

  • Layout Creator
  • PipPipPipPipPip
  • 2989 posts

Posted 19 December 2012 - 02:56 PM

Many thanks for the update.

 

So do we unzip and load this straight into Amber?

 

Jay

 

No, its a standalone tool for listening to samples in the sound ROMs.

 

I was having major trouble working out how sound works in an emulation envioronment so I made the tool to help me understand what's going on with rolling sound buffers etc.

 

Now I have a pretty good handle on it I will be using what I have written here to enable the 3 sound chips in the emulator. The rolling buffers are essential to getting synth sound working properly.

 

Expect to be able to play amber with full sound support in the near future.


Project Amber 2 - Coming Soon


#7 Johnnyafc

Johnnyafc

    #Lapsed

  • Layout Creator
  • PipPipPipPip
  • 1591 posts

Posted 19 December 2012 - 05:10 PM

Cool Homers Meltdown sounds work, saves me playing my machine to hear them  :jimlad:


Posted Image

#8 cardie

cardie

    Me Gusta

  • Layout Creator
  • PipPipPipPipPip
  • 3431 posts

Posted 19 December 2012 - 06:55 PM

Cool Homers Meltdown sounds work, saves me playing my machine to hear them  :jimlad:

Where did you come across them, couldnt find them?


My Youtube


Posted Image

Rest in peace Barcrest !

Quit Gambling as of 3rd of March 2012


#9 Guest_barcrest junky_*

Guest_barcrest junky_*
  • Guests

Posted 19 December 2012 - 07:04 PM

 
Expect to be able to play amber with full sound support in the near future.

Indeed, I was / am expecting it by Christmas........

Good progress

bj

#10 Johnnyafc

Johnnyafc

    #Lapsed

  • Layout Creator
  • PipPipPipPip
  • 1591 posts

Posted 19 December 2012 - 07:49 PM

Where did you come across them, couldnt find them?

Inner Circle or suttin

Attached Files

  • Attached File  hm.zip   887.47KB   11 downloads

Posted Image

#11 Guest_barcrest junky_*

Guest_barcrest junky_*
  • Guests

Posted 19 December 2012 - 09:04 PM

Inner Circle or suttin

Sexual favours I heard ;)

bj

#12 Guitar

Guitar

    Project Amber Developer

  • Layout Creator
  • PipPipPipPipPip
  • 2989 posts

Posted 20 December 2012 - 03:18 AM

Indeed, I was / am expecting it by Christmas........

Good progress

bj

Well all the old sound has been ripped out of Amber and the new sound being put in.

 

The NEC chip currently is working 100% for Scorp 2 and all non serial MPU4 games.

Serial MPU4 and Maygay M1 NEC support will go in tomorrow.

 

The YMZ chip is progressing nicely and am about halfway through writing the hookups for Scorp 2.

 

The OKI Chip isn't attached to anything yet, but will be looked at in due course, hopefully tomorrow.

 

The AY8910 Synth Chip is written but needs refinement, however I have a pretty good handle on where I was going wrong now, so I expect that to be working 100% by Xmas day.

 

The YM2413, well um, yeah don't expect it by Christmas. New Year is a maybe, but not by Christmas day.

 

The YM2413 chip is available from MFME source code but uses a couple of weird C functions that I don't 100% know how to convert to VB yet. Once the others are in and working, I will sort out the YM chip.

 

But 4/5 aint bad. I have a few tidy ups to do around the emu,. just general error catching and making some functions do what they should. Other than that it should be ready for Christmas day release.

 

The docs will follow shortly after (and they will do I promise) along with the inevitable other bug fixes.

 

As far as techs go, Mpu4, Scorp1/2,M1ab are running 100%, MPU3 is a bit iffy, but only really about 4 days old in terms of how long I have spent on it. System83 Is a definate runner for Cops and Robbers, other ROMs I haven't tested yet, with the way Sys83 works it might run them all, or I may need to setup several lines differently per machine. The option is there in the hardware for every game to be different, but they probably used the same or similar setups for all just for simplicity in workshopping.

 

Either way between now and end of January I am confident all 6 techs will be running, with sound, and fully documented tools with a Christmas Day release regardless of what state the emu is in by then, with follow ups every few days till I get it running just so.


Project Amber 2 - Coming Soon


#13 Mavroz

Mavroz

    odd job man...

  • Layout Creator
  • PipPipPip
  • 882 posts

Posted 20 December 2012 - 06:50 AM

Thanks for the .ocx file to make the sound tools run mate. 



#14 Mavroz

Mavroz

    odd job man...

  • Layout Creator
  • PipPipPip
  • 882 posts

Posted 20 December 2012 - 06:53 AM

Ps Any chance of a "Save" button to save a sample from the roms in a specific format?



#15 prizeguy2005

prizeguy2005

    Member

  • Regulars
  • 521 posts

Posted 20 December 2012 - 02:41 PM

Cant get it to work for some reason saying file missing tried downloading VB6



#16 Guitar

Guitar

    Project Amber Developer

  • Layout Creator
  • PipPipPipPipPip
  • 2989 posts

Posted 20 December 2012 - 02:44 PM

Ps Any chance of a "Save" button to save a sample from the roms in a specific format?

If you look in the export folder in the same folder as the tool, you will see a load of wav files. As far as other formats go, maybe one day in the future.



Cant get it to work for some reason saying file missing tried downloading VB6

Which file doe sit say is missing?


Project Amber 2 - Coming Soon


#17 prizeguy2005

prizeguy2005

    Member

  • Regulars
  • 521 posts

Posted 20 December 2012 - 02:56 PM

thanks guitar says component MSFLXGRD.OLX or one of its components not registered



#18 Guitar

Guitar

    Project Amber Developer

  • Layout Creator
  • PipPipPipPipPip
  • 2989 posts

Posted 20 December 2012 - 03:14 PM

thanks guitar says component MSFLXGRD.OLX or one of its components not registered

See post #30 of this thread http://www.fruit-emu...sources/page-2.


Project Amber 2 - Coming Soon


#19 prizeguy2005

prizeguy2005

    Member

  • Regulars
  • 521 posts

Posted 20 December 2012 - 03:22 PM

thanks guitar will check



#20 Daryl

Daryl

    Forget it... I do!

  • Inactive Users
  • 2671 posts

Posted 20 December 2012 - 03:42 PM

Excellent stuff Nick mate... I have been looking forward to the updated emulator, and by the read of your latest update, you have been extremely busy to get it ready for Christmas Day.

 

Congratulations mate... The emulator has worked perfectly on all my computers so far... I don't expect this update to make an difference either.

 

If only some people would read what to do more when there is a release eh?! ;)


All The Best

Daryl
 
My blogsite is here: click the icon --->   :computer:
 

My name is Daryl, I was born in 1965 and have been into FME since 2002!
 
On 23 June 2011, I was diagnosed with Alzheimers Disease  In November 2012, I was diagnosed with Parkinson's Disease and Parkinsonian Syndrome too.
 
I can be found at:
 
My new blog-site...
 
...or at Facebook here: --> https://www.facebook.com/daryl.lees
 
=======================================================

 
Visit my website on the icon above for my WebBlog, or pop over and see me on the social media at  ---> Daryl on... Facebook.png
 
=======================================================
 


speed




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users