VOGONS


SBVGM (DOS) VGM Player

Topic actions

Reply 340 of 349, by ElBrunzy

User metadata
Rank Oldbie
Rank
Oldbie

I had many difficulty using sbvgm 1.33, to boot from : I like how it display it when all synth needed playing a music, but my request being : can it also display it when it fail at matching a play ? Also why I have to specify -t2c0 while opl388 is autodetected ? This dont make sense. Why some players are autodetected and some are not ? I would prefer audio device being autodetected via command line parameters. It but crash the player if I dont thoroughly disable the sblive in there too

Last edited by ElBrunzy on 2020-12-24, 17:59. Edited 1 time in total.

Reply 342 of 349, by OPLx

User metadata
Rank Member
Rank
Member
ElBrunzy wrote on 2020-12-24, 17:45:

I had many difficulty using sbvgm 1.33, to boot from : I like how it display it when all synth needed playing a music, but my request being : can it also display it when it fail at matching a play ? Also why I have to specify -t2c0 while opl388 is autodetected ? This dont make sense. Why some players are autodetected and some are not ? I would prefer audio device being autodetected via command line parameters. It but crash the player if I dont thoroughly disable the sblive in there too

I'll keep displaying the names of the chips that caused the player to fail in mind for when I can work on fixes for the next version. In the case of SN76489 detection: The primary reason is that there is simply no auto-detection method available on the current SN76489 sound cards. In regards to the crash that you are experiencing with the sblive installed, what are your environment variables settings for the sound card and what are the sound devices (including their port addresses)?

ElBrunzy wrote on 2020-12-24, 17:48:

also I hope your coding team are also working on the PSG playing problem that skip some bass notes

I haven't forgotten about that and have an idea for how to fix it, it's just been very busy lately. I will try to take care of it as soon as possible. Thank you for the feedback! 👍

Reply 343 of 349, by ElBrunzy

User metadata
Rank Oldbie
Rank
Oldbie

About the set blaster bug, I think any random (but wrong) set blaster= settings might cause the player to crash. I'll try to give you the info if I can find them.
About auto-detect of audio chip really, I think you should add a way to disable them or ask to detect them, like "sbvgm 123.vgm +t2c0 -opl3" so that would add tandy and remove opl from the mix. Now you have a new version of your engine you might also try to make it more modular, like you add players in command line "sbvgm.exe music.vgm +synth1 +synth2 -synth3"

about the psg note bug. I'm about ready to make a audio of using sbvgm.exe on the saa1099 and sn76489 for comparison. I was wondering if you had any music in mind that you would like me to use. Do you want to delay this project until you fix the PSG Bass note problem ?

Reply 344 of 349, by OPLx

User metadata
Rank Member
Rank
Member
ElBrunzy wrote on 2020-12-26, 03:02:

About the set blaster bug, I think any random (but wrong) set blaster= settings might cause the player to crash. I'll try to give you the info if I can find them.
About auto-detect of audio chip really, I think you should add a way to disable them or ask to detect them, like "sbvgm 123.vgm +t2c0 -opl3" so that would add tandy and remove opl from the mix. Now you have a new version of your engine you might also try to make it more modular, like you add players in command line "sbvgm.exe music.vgm +synth1 +synth2 -synth3"

Having some kind of command line option to exclude certain chips is not a bad idea. At the moment I am not sure if changing the format (+ for adding and - for exclusion) is a good idea since that could break other programs that assume the current format.

ElBrunzy wrote on 2020-12-26, 03:02:

about the psg note bug. I'm about ready to make a audio of using sbvgm.exe on the saa1099 and sn76489 for comparison. I was wondering if you had any music in mind that you would like me to use. Do you want to delay this project until you fix the PSG Bass note problem ?

Since things are a bit busy at the moment, I'm not sure how soon I will be able to fix the problem. If you wanted to work on the project and not wait, you could use VGM files that don't exhibit the bug.

Reply 345 of 349, by 黄禄轩

User metadata
Rank Newbie
Rank
Newbie

Huge success! I made it! Dual SN76489AN, OPL2, OPL3, SAAYM, Sound Blaster, 5 in 1! With a CPLD controller which can be used to program the io address and irq and dma in PIO mode.

Video https://b23.tv/av971375234
Some pictureshttps://b23.tv/7IZ8Wf

Reply 346 of 349, by Jo22

User metadata
Rank l33t++
Rank
l33t++
黄禄轩 wrote on 2021-02-03, 03:04:

Huge success! I made it! Dual SN76489AN, OPL2, OPL3, SAAYM, Sound Blaster, 5 in 1! With a CPLD controller which can be used to program the io address and irq and dma in PIO mode.

Video https://b23.tv/av971375234
Some pictureshttps://b23.tv/7IZ8Wf

Congratulations on a job well done! 😀👍

"Time, it seems, doesn't flow. For some it's fast, for some it's slow.
In what to one race is no time at all, another race can rise and fall..." - The Minstrel

//My video channel//

Reply 347 of 349, by OPLx

User metadata
Rank Member
Rank
Member
黄禄轩 wrote on 2021-02-03, 03:04:

Huge success! I made it! Dual SN76489AN, OPL2, OPL3, SAAYM, Sound Blaster, 5 in 1! With a CPLD controller which can be used to program the io address and irq and dma in PIO mode.

Video https://b23.tv/av971375234
Some pictureshttps://b23.tv/7IZ8Wf

Congratulations! Really happy to see that you got things working and very nice demo of the device. By the way, v1.33 has support for dual chipsets so it should work with your soundcard. A while back, I was finally able to get a hold of 4.77MHz hardware and I realized that it's not necessary to wait so long for the address and data writes for the YM3812, YMF262, and YM2151. The simplest fix would be to add a command line parameter to specify using a short wait time. Currently, things are very busy for me right now, but a future update should have it along with some other requests that were made in the past. Thank you for sharing your accomplishment! 👍

Reply 348 of 349, by ElBrunzy

User metadata
Rank Oldbie
Rank
Oldbie

I did a audio comparison of a SN76489 (left) and SAA1099 (right) recording using a tndy nano v1.0 card by matze79 that's built around an SN76489 and a soundblaster 1.5 with saa1099 addon. I used sbvgm.exe v1.33 by to play a list of music since it support both cards. I added a pause in between each track so I could re-sync the audio in between each track. Since I did not want to add mp3 compression artefact I saved a 44.1khz 16bit wave file. I wanted to make a new playlist but I could not find enough new music for it, so I re-used the one I made already with the addition of WonderBoy3. Maybe it will help us understand the audio problem with the bass note on some music. I think it is apparent in the phantasy star and y's music again, but I think you are aware of that problem and just need some time to address. Other than that I think the tone and timing resemblance is very convincing but there seem to be some amplitude difference in between some instruments so it's hard to balance stereo signal. Since the file is around 90mb I will put it on 💾 google drive.

Here is the lineup:
Alex Kidd in Miracle World - 04 - Underwater.vgm
Choplifter - 02 - Round 1.vgm
Gunstar Heroes (GG) - 04 - Choose a Path.vgm
Gunstar Heroes (GG) - 08 - Rolling Chaser.vgm
Lord of the Sword - 04 - Story.vgm
Miracle Warriors - 04 - Castle.vgm
Phantasy Star - 15 - Medusa.vgm
SpellCaster - 05 - Forest.vgm
Wonder Boy - 04 - Boss Round.vgm
Ys - 05 - First Step Towards Wars.vgm
Wonder Boy III - 10 - The Danger Zone.vgm

While I had everything open I'll make a spectrograph of Ys since the bass problem seem to be more apparent here. Maybe it will eventually be of any help. It's a zoom of the first 2 seconds 0-4khz frequency of Ys with the SN76489 on top, SAA1099 in the middle and the difference in bottom. It look like where there is supposed to have a mute the bass line get to be played too loud... or something like it. I'm eager to have your opinion on that.

ys2seczoomv3.jpg
Filename
ys2seczoomv3.jpg
File size
423.11 KiB
Views
75 views
File license
Public domain

Reply 349 of 349, by OPLx

User metadata
Rank Member
Rank
Member

@ElBrunzy, what you for making the recordings and looking further into the issue. The main cause of the incorrect bass sound on the SN76489 is that the Sega Master System implementation is different from that of the SN76489AN. At the time I added support for the SN76489, I did not have actual hardware and used DOSBox. Under DOSBox, you won't hear the issue with the bass notes so the SN76489 variant used by DOSBox is likely the Sega Master System version and not what is found on the Tandy 1000 or SN76489AN. Fortunately, there are some SN76489 flags in the VGM data that can be checked and thus it will be possible to correct for the behavior which is in this case, silencing the note.

Fixing this is not difficult; it's more of an issue of having a sufficient block of time which at present, is lacking on my end.