|
|
Search
|
|||||||
| Home | Register | Downloads | FAQ | Members List | Calendar | Arcade | Mark Forums Read |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Moderator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Feb 2006
Location: Croatia
Posts: 4,191
|
Chip-8 emu
Updated November 22 2008: All Chip8/Schip opcodes supported along with the sound. There are still some issues which I may iron out if I decide to mess with this again. Controls are: 1 2 3 4 Q W E R A S D F Z/Y X C V (Y for those who use QWERTZ keyboards). Games are public domain so use Google to find them.
__________________
C2D E8400 3.00 Ghz | EP45-DS3 | HD4850 512MB | 4GB DDR2 800 | 640 + 250 GB HDD
SyncMaster 2233BW 22" | Logitech G5 | Logitech G15 | Windows 7 x64 Last edited by ShendoXT; November 22nd, 2008 at 14:43.. |
|
|
|
| Advertisement | [Remove Advertisement] | ||
|
|
|
|
#2 (permalink) | |
|
Menthol Flavored
![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Mar 2005
Location: Maryland, USA.
Posts: 3,843
|
Best of luck with your emulation projects. It's good to see more aspiring emu authors out there. It gives me hope for the scene. I hope to see a really awesome emu from you one day Shendo. Good luck. Sorry if my post didn't help you whatsoever.
__________________
http://thecloudofsmoke.deviantart.com ![]() Quote:
|
|
|
|
|
|
|
#3 (permalink) |
|
Emu author
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2004
Location: Unidentified
Posts: 2,502
|
Okay, there's not much out there related to emulating sound and you'll soon find out the google is not your friend on this subject. I'll do my best to answer your question. 1. Before learning about sound emulation, it's highly recommended that you learn about how sound works (if you don't know already). First learn a low-level sound API such as DirectSound, OpenAL or XAudio (which is still in beta stages) and create some sound programs that can output sound by sending some raw data to a sound buffer. DirectSound is so far the most prominent while sound emulation with OpenAL is rather hard and XAudio... I don't know because I haven't seen it used for anything yet. Finding tutorials on low level sound APIs are very hard to find (except OpenAL which is more for 3D games) and once again Google might not be your friend on this subject. If you want you can either read the docs on the sound API such as the microsoft SDK documentation or MSDN. If you need tutorials on DirectSound, ask me and I will write them for you personally. 2. As far as tutorials on how to emulate sound, this is the best I can find to date: Blargg's Video Game Sound Emulation Here's another: How to write an emulator It's an overall tutorial on emulation, but the sound emulation section is the largest and it shows some actual DirectSound code being used. 3. Be sure to have the documentation on the sound hardware you're trying to emulate! 4. I'm not sure how far indepth you want to get with sound emulation, but let me tell you this, emulating sound [usually] gets harder and harder as the console gets more advanced VERY quickly (sometimes more then the CPU itself). While GameBoy, SpaceInvaders, and NES usually aren't so bad, other old consoles such as Atari2600 and SNES have certain issues to be dealt with (for Atari usually has to deal with Pitfall II, for SNES the DSP) in order to get accurate emulation. The newer consoles and arcade hardware such as SegaSaturn/Titan Video, GC, PS2 have very advanced audio systems with either more than one core or advanced and undocumented DSPs. Instead of using basic PSG or FM based audio chips that generate simple waveforms (i.e. sin and cos for wave generation), these are APUs that create more complex audio effects and uses more complex methods (i.e. envelopes, KON/KOF, attack - sustain - decay rates, etc.). So far the most complex audio system I've seen [actual] specs on to date is Xbox1 with(at least 3 DSPs, an AC'97 Audio codec, and an NVIDIA SoundStorm APU. I know that PS3's audio system is the most advanced (where every object can have it's own sound channel!), but I don't think you'll be trying to emulate anytime soon (or even in your lifetime) Anyone can feel free to correct me if I'm wrong about any of this.So if you need anything else, feel free to ask me anytime. Know this, I don't know everything ![]() And about your emulator, what APIs are you using? btw, nice debugger! Looking great!
__________________
[Sagat] Windows XP x64 Pro | AMD Athlon 3000+ (~2.0GHz) | NVIDIA GeForce 6600 PCI-E | Realtek AC97 Audio | 512MB Ram | NVIDIA NForce 4-4X chipset | Seagate HDD 160GB | LG 8614 DVD-ROM | HP DVD 1040d CD/DVD -/+ RW w/ LightScribe [Raylene] HP dv2000 | Windows Vista Home Premium | Intel Core2 Duo @2.2GHz | NVIDIA GeForce 8400 GS 128Mb (Dedicated) + 1264Mb (Shared) | 3GB Ram | 220GB HDD GeneralEmu - December 27, 2005 and beyond! Shogun3D Interactive (I try to update it every day now) Shogun's Cxbx Dev Blog Last edited by blueshogun96; March 26th, 2008 at 06:42.. Reason: Added more information that might be useful, informative, or overall educational for that matter. |
|
|
|
|
|
#4 (permalink) |
|
Regular User ;)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Oct 2007
Location: Naples Florida
Posts: 9,963
|
well direct sound is not supported in Vista...only XP downwords..stick with OpenAL
__________________
A Mac is like an escort, you pay a ton and get nothing.
A PC is like a hooker, it's a lot cheaper and gives you what you're after.. and if unlucky some diseases as well, that's why you gotta use protection. -CC |
|
|
|
|
|
#5 (permalink) | |
|
Emu author
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2004
Location: Unidentified
Posts: 2,502
|
Quote:
__________________
[Sagat] Windows XP x64 Pro | AMD Athlon 3000+ (~2.0GHz) | NVIDIA GeForce 6600 PCI-E | Realtek AC97 Audio | 512MB Ram | NVIDIA NForce 4-4X chipset | Seagate HDD 160GB | LG 8614 DVD-ROM | HP DVD 1040d CD/DVD -/+ RW w/ LightScribe [Raylene] HP dv2000 | Windows Vista Home Premium | Intel Core2 Duo @2.2GHz | NVIDIA GeForce 8400 GS 128Mb (Dedicated) + 1264Mb (Shared) | 3GB Ram | 220GB HDD GeneralEmu - December 27, 2005 and beyond! Shogun3D Interactive (I try to update it every day now) Shogun's Cxbx Dev Blog |
|
|
|
|
|
|
#6 (permalink) |
|
Regular User ;)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Oct 2007
Location: Naples Florida
Posts: 9,963
|
that's what i meant. A card using directsound will have to run on software mode...which sucks as i was going to get the Auzentech Prelude specifically for it's hardware mode...I still might get it....just waiting till Auzentech sorts out Creative's drivers
__________________
A Mac is like an escort, you pay a ton and get nothing.
A PC is like a hooker, it's a lot cheaper and gives you what you're after.. and if unlucky some diseases as well, that's why you gotta use protection. -CC |
|
|
|
|
|
#7 (permalink) |
|
Emu author
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2004
Location: Unidentified
Posts: 2,502
|
But for emulation it's not too critical, unless the hardware you're trying to emulate uses features that can only be emulated in hardware (which so far no situation like that has come up yet afaik). Besides, using low-level DirectSound is still great for beginners to learn because the APIs and interfaces are usually self explanatory.
__________________
[Sagat] Windows XP x64 Pro | AMD Athlon 3000+ (~2.0GHz) | NVIDIA GeForce 6600 PCI-E | Realtek AC97 Audio | 512MB Ram | NVIDIA NForce 4-4X chipset | Seagate HDD 160GB | LG 8614 DVD-ROM | HP DVD 1040d CD/DVD -/+ RW w/ LightScribe [Raylene] HP dv2000 | Windows Vista Home Premium | Intel Core2 Duo @2.2GHz | NVIDIA GeForce 8400 GS 128Mb (Dedicated) + 1264Mb (Shared) | 3GB Ram | 220GB HDD GeneralEmu - December 27, 2005 and beyond! Shogun3D Interactive (I try to update it every day now) Shogun's Cxbx Dev Blog |
|
|
|
|
|
#8 (permalink) |
|
Regular User ;)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Oct 2007
Location: Naples Florida
Posts: 9,963
|
you have a point...
__________________
A Mac is like an escort, you pay a ton and get nothing.
A PC is like a hooker, it's a lot cheaper and gives you what you're after.. and if unlucky some diseases as well, that's why you gotta use protection. -CC |
|
|
|
|
|
#9 (permalink) |
|
Emu author
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Nov 2002
Location: Austria (originally from Dominican Republic)
Posts: 2,377
|
Looks like you progressed well since last time we talked about it ![]() Directsound should be fine to reproduce the sounds and it works with Vista. i don´t know if you worked with directsound before.... but i think it shouldn´t be a problem for you
__________________
Current development tools: Visual C++.net, Visual C#.net Visual VB.net, Visual Webdeveloper.net Bloodshed Dev C++, Borland C++ Visual Basic 6 |
|
|
|
|
|
#10 (permalink) |
|
PCSX2 Coder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jan 2004
Location: Plymouth, UK
Posts: 9,822
|
when i first made a chip8 emu with sound, i basically sent a load of rubbish in to the SDL buffer, but it made random buzzes, as the original system only had a buzzer, so it was no need to be impressive ![]() altho my current (newest) one isnt quite as advanced as yours, it works pretty well, you can see it here with games and source ;p RefChip8 - Chip8 Emulator
__________________
http://www.generalemu.net/ Intel Core 2 Quad Q6600 @ 3.4Ghz (425x8), Leadtek GTX 280 1Gb, 1.8Tb HDs, 2Gb Corsair DDR2-800 @ DDR2-1020 5-5-5-18 Dual Channel Dont PM me for help, use the forums, thats what its for! |
|
|
|
|
|
#11 (permalink) |
|
Regular User ;)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Oct 2007
Location: Naples Florida
Posts: 9,963
|
Ref i love the deflicker system. ![]() Nice (if basic) emu though
__________________
A Mac is like an escort, you pay a ton and get nothing.
A PC is like a hooker, it's a lot cheaper and gives you what you're after.. and if unlucky some diseases as well, that's why you gotta use protection. -CC |
|
|
|
|
|
#12 (permalink) |
|
Moderator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Feb 2006
Location: Croatia
Posts: 4,191
|
@TheCloudOfSmoke: Thanks. Though it will take a lot of time before/if I even make something that can be measured with other emulators. @blueshogun96: Thank you for the links, I'll check them out. As for API it's GDI+. That probably is not suited for emulation but in this case I think it's ok. @@ruantec-Man: Yeah I got rid of the most graphic glitches. @refraction: Nice emu.
__________________
C2D E8400 3.00 Ghz | EP45-DS3 | HD4850 512MB | 4GB DDR2 800 | 640 + 250 GB HDD
SyncMaster 2233BW 22" | Logitech G5 | Logitech G15 | Windows 7 x64 |
|
|
|
|
|
#13 (permalink) |
|
PCSX2 Coder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jan 2004
Location: Plymouth, UK
Posts: 9,822
|
cheap as hell but i worked Chip8 is very simplistic, so it uses 1 frame to draw the sprites, then the next to clear them, then the next to draw them in the new location, etc.thanks, i know its nothing special, but i literally threw it together for an australian magazine thingy, so budding authors have something to go off. But if it helps with your emu thats all that matters
__________________
http://www.generalemu.net/ Intel Core 2 Quad Q6600 @ 3.4Ghz (425x8), Leadtek GTX 280 1Gb, 1.8Tb HDs, 2Gb Corsair DDR2-800 @ DDR2-1020 5-5-5-18 Dual Channel Dont PM me for help, use the forums, thats what its for! |
|
|
|
|
|
#14 (permalink) | |
|
Emu author
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Nov 2002
Location: Austria (originally from Dominican Republic)
Posts: 2,377
|
Quote:
__________________
Current development tools: Visual C++.net, Visual C#.net Visual VB.net, Visual Webdeveloper.net Bloodshed Dev C++, Borland C++ Visual Basic 6 |
|
|
|
|
|
|
#15 (permalink) | |
|
PCSX2 Coder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jan 2004
Location: Plymouth, UK
Posts: 9,822
|
Quote:
![]() i did intend on commenting it more but i couldnt be arsed lol. But the idea was keep it reasonably simple so people can work out for themselves how the emulator actually works. can you see the copy and pasta from sdl tutorials? *hides*
__________________
http://www.generalemu.net/ Intel Core 2 Quad Q6600 @ 3.4Ghz (425x8), Leadtek GTX 280 1Gb, 1.8Tb HDs, 2Gb Corsair DDR2-800 @ DDR2-1020 5-5-5-18 Dual Channel Dont PM me for help, use the forums, thats what its for! |
|
|
|
|
|
|
#16 (permalink) |
|
Emu author
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Nov 2002
Location: Austria (originally from Dominican Republic)
Posts: 2,377
|
"Copy and pasta" that was a good one anyways i think every chip8 emula8r is another step to a better emulation world ![]() btw nice chip8 emu
__________________
Current development tools: Visual C++.net, Visual C#.net Visual VB.net, Visual Webdeveloper.net Bloodshed Dev C++, Borland C++ Visual Basic 6 |
|
|
|
|
|
#17 (permalink) |
|
PCSX2 Coder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jan 2004
Location: Plymouth, UK
Posts: 9,822
|
thx ;p but really, i think it sucks it just does the job lolill appreciate it more if people learnt from it
__________________
http://www.generalemu.net/ Intel Core 2 Quad Q6600 @ 3.4Ghz (425x8), Leadtek GTX 280 1Gb, 1.8Tb HDs, 2Gb Corsair DDR2-800 @ DDR2-1020 5-5-5-18 Dual Channel Dont PM me for help, use the forums, thats what its for! |
|
|
|
|
|
#18 (permalink) | |
|
You're already dead...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Sep 2007
Location: Post-Apocalyptic Earth
Posts: 3,898
|
cool emulators, i might try to make one for the learning experience as well. (well, thats after i become more familiar with c++ :/) Shendo do you mind posting links to the documentation you used?
__________________
Quote:
check out my blog ![]() |
|
|
|
|
|
|
#19 (permalink) |
|
Moderator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Feb 2006
Location: Croatia
Posts: 4,191
|
Chip 8 instruction set CHIP8 documentation by David Winter. There is also a great thread at EmuTalk which contains a lot of information.
__________________
C2D E8400 3.00 Ghz | EP45-DS3 | HD4850 512MB | 4GB DDR2 800 | 640 + 250 GB HDD
SyncMaster 2233BW 22" | Logitech G5 | Logitech G15 | Windows 7 x64 |
|
|
|
|
|
#20 (permalink) | |
|
Emu author
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2004
Location: Unidentified
Posts: 2,502
|
Quote:
__________________
[Sagat] Windows XP x64 Pro | AMD Athlon 3000+ (~2.0GHz) | NVIDIA GeForce 6600 PCI-E | Realtek AC97 Audio | 512MB Ram | NVIDIA NForce 4-4X chipset | Seagate HDD 160GB | LG 8614 DVD-ROM | HP DVD 1040d CD/DVD -/+ RW w/ LightScribe [Raylene] HP dv2000 | Windows Vista Home Premium | Intel Core2 Duo @2.2GHz | NVIDIA GeForce 8400 GS 128Mb (Dedicated) + 1264Mb (Shared) | 3GB Ram | 220GB HDD GeneralEmu - December 27, 2005 and beyond! Shogun3D Interactive (I try to update it every day now) Shogun's Cxbx Dev Blog |
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|