You are not logged in. | Register | Resend Activation
Browsing this Thread: 1 Anonymous Users


Register To Post




#21
Re: Virtual Boy Sound Generator (VSU Emulator)
Posted on: 1/31 22:34:19
PVB Elite
Joined 2003/7/25
USA
993 Posts
PVBCC 1stCoderContributor#2 PosterHOTY09 EntryLong Time User (7 Years) App Coder
Offline
Well, if anyone wants to take charge of it, I'd be glad to help however I can, but since I have almost no experience with VG sound formats for the PC (nor really much interest), I don't think I should take charge of it. I can give you whatever info you'd need on the VB audio technical side though.

DogP
Visit Project: VB
Top

#22
Re: Virtual Boy Sound Generator (VSU Emulator)
Posted on: 2/1 4:44:06
PVB Elite
Joined 2003/7/25
USA
993 Posts
PVBCC 1stCoderContributor#2 PosterHOTY09 EntryLong Time User (7 Years) App Coder
Offline
Okay... attached is Version 1.1, which has a few minor changes in how values are processed, as well as a few other small changes. The source code is also included in the zip.

I have some other things I'd like to add, but I wanted to get this version out, along with the source. For the next version I'll get the other additions made, as well as any fixes/changes/additions that you guys suggest.

DogP

Attach file:


zip vb_snd_gen.zip Size: 156.05 KB; Hits: 30
Visit Project: VB
Top

#23
Re: Virtual Boy Sound Generator (VSU Emulator)
Posted on: 2/1 11:14:45
Newbie
Joined 1/29
7 Posts
Offline
If you can supply some good info about the sound hardware (and other general stuff, like memory maps), I might add support for the VB to my MML compiler.

I doubt I'd be of much use for writing an input plugin for winamp though. Sound emulation isn't exactly my forte.
Top

#24
Re: Virtual Boy Sound Generator (VSU Emulator)
Posted on: 2/1 15:10:35
PVB Elite
Joined 2003/7/26
USA
641 Posts
PVBCC EntryCoderContributorSpecial Achievement#3 Poster10+ Game RatingsHOTY09 EntryLong Time User (7 Years) App Coder
Offline
Quote:

mic_ wrote:
...my MML compiler...


Hey, that looks very handy! Do you have access to the official docs? If not, I could send you just the VSU part.

A lot of it could possibly be figured out with DogP's program; including reading its source and comparing various input data with the code (and sound) produced by it.

BTW, I've kinda started on a Winamp plugin. I think, because of the disconnect between the size of the file and the audio data coming out of the emulator, I need to make a "ring buffer" FIFO that the emulator can write to and that can be played from (by sending chunks of it to the Winamp output plugin). If enough people (or just DogP ) would rather I work on the GUI version, I'll put the plugin on hold. Of course, if someone else wants to write the GUI, feel free (but let me know).
No other word than the Word of God -- Deuteronomy 4:2; 12:32; Proverbs 30:6; Galatians 1:8-9; Revelation 22:18-19
No other god than the God of the Bible -- Deuteronomy 8:19; 13:1-8; Joshua 24:14-15; Matthew 6:24; Acts 17:22-31
Edited by RunnerPack on 2010/2/1 15:26:50
Top

#25
Re: Virtual Boy Sound Generator (VSU Emulator)
Posted on: 2/1 16:32:09
PVB Elite
Joined 2003/7/25
USA
993 Posts
PVBCC 1stCoderContributor#2 PosterHOTY09 EntryLong Time User (7 Years) App Coder
Offline
Are you trying to play in real time as it's processing, or are you having it pre-process it all, then basically just play back the wav? I'm not sure whether it'll keep up real time on all computers.

But feel free to work on whatever you find to be more interesting... I don't really need a GUI, but in the long run I think there should be a GUI for it, to ease people into making VB sounds, rather then forcing them to jump into a text config file with strange names and values that don't really mean anything.

And yeah... the official manual should have lots most of the info you need. Version 1 was basically just writing exactly what the official docs said... in v1.1, I actually tested some things on hardware to clarify what wasn't clear in the manual.

DogP
Visit Project: VB
Top

#26
Re: Virtual Boy Sound Generator (VSU Emulator)
Posted on: 2/1 17:44:38
PVB Elite
Joined 2003/7/26
USA
641 Posts
PVBCC EntryCoderContributorSpecial Achievement#3 Poster10+ Game RatingsHOTY09 EntryLong Time User (7 Years) App Coder
Offline
Quote:

DogP wrote:
Are you trying to play in real time as it's processing, or are you having it pre-process it all, then basically just play back the wav? I'm not sure whether it'll keep up real time on all computers.


I was going to pre-buffer at least 576 bytes of wave data (don't ask me; it's a Winamp thing ) and then do the parsing/generating and playing in parallel.

I compiled your code with -O1 using cygwin (O2 and O3 produced a weird wav file naming bug) and it seems to go a good deal faster. I didn't do any measuring, but I'm pretty sure it would be able to do (the example.txt file) fast enough for real-time on my "ancient" 2.4GHz P4. I may add a configuration setting for the size of the FIFO.

Quote:

But feel free to work on whatever you find to be more interesting... I don't really need a GUI, but in the long run I think there should be a GUI for it, to ease people into making VB sounds, rather then forcing them to jump into a text config file with strange names and values that don't really mean anything.


10-4. I personally like the hands-on approach of a hand-edited text file. That's the way I am about HTML/CSS and most other layout/formatting, too. So, I'll keep going on the plugin, since that is most conducive to that type of work-flow. Plus, there's always mic_'s program for "actual musicians" to use (I hope...)
No other word than the Word of God -- Deuteronomy 4:2; 12:32; Proverbs 30:6; Galatians 1:8-9; Revelation 22:18-19
No other god than the God of the Bible -- Deuteronomy 8:19; 13:1-8; Joshua 24:14-15; Matthew 6:24; Acts 17:22-31
Top

#27
Re: Virtual Boy Sound Generator (VSU Emulator)
Posted on: 2/1 23:46:48
PVB Elite
Joined 2003/7/26
USA
641 Posts
PVBCC EntryCoderContributorSpecial Achievement#3 Poster10+ Game RatingsHOTY09 EntryLong Time User (7 Years) App Coder
Offline
I found a promising scripting language for windows with nice GUI features. It's called AutoIt. I'm going to investigate using it for the GUI. Only thing I'm not sure of is loading existing files. Not sure about its file I/O capabilities.
No other word than the Word of God -- Deuteronomy 4:2; 12:32; Proverbs 30:6; Galatians 1:8-9; Revelation 22:18-19
No other god than the God of the Bible -- Deuteronomy 8:19; 13:1-8; Joshua 24:14-15; Matthew 6:24; Acts 17:22-31
Top

#28
Re: Virtual Boy Sound Generator (VSU Emulator)
Posted on: 2/2 7:10:15
PVB Elite
Joined 2003/7/25
USA
993 Posts
PVBCC 1stCoderContributor#2 PosterHOTY09 EntryLong Time User (7 Years) App Coder
Offline
That looks pretty nice... I wonder how the performance is.

DogP
Visit Project: VB
Top



Register To Post