View unanswered posts | View active topics It is currently Thu Apr 02, 2020 7:29 am



Reply to topic  [ 114 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Game_Music_Emu plugin for Winamp 
Author Message
Gecko snack

Joined: Sun Aug 21, 2005 11:06 am
Posts: 2372
Location: Australia, QLD
Reply with quote
Post 
http://www.mediafire.com/?wrdzztmjbmw

This SPC file ends 3 seconds earlier then it should. It ends in 4 seconds instead of 7 seconds.

_________________
Core i7 920 @ 2.66GHZ | ASUS P6T Motherboard | 8GB DDR3 1600 RAM | Gigabyte Geforce 760 4GB | Windows 10 Pro x64


Sun May 25, 2008 7:02 am
Profile WWW
has wat u liek
User avatar

Joined: Tue Sep 11, 2007 2:54 pm
Posts: 559
Location: Banland.
Reply with quote
Post 
Quote:
This SPC file ends 3 seconds earlier then it should. It ends in 4 seconds instead of 7 seconds.


Works great here...

Quote:
I hope you're using GME's built-in silence detection, which looks ahead for silence (up to 20 seconds for GBS), avoiding either a long pause at the end, or cutting songs off too early by only waiting for 2 seconds of silence (which several songs have). Just use gme_track_ended() to tell when a track has ended naturally or due to detection of silence.


I am using gme_track_ended() :wink: See the uploaded file. Before, I used a custom silence detection algorithm to check for silence in subsong based files. Now, I am simply using your function.


Sun May 25, 2008 7:17 am
Profile
has wat u liek
User avatar

Joined: Tue Sep 11, 2007 2:54 pm
Posts: 559
Location: Banland.
Reply with quote
Post 
Quote:
If I may make a request, I think it'd be spiffy to make a custom formatting field option available if you could, mudlord. I don't think this plugin works with Winamp's default title formatter. I'm an odd one who doesn't like artist names on his music playlists. Even if it is God Soule.


This will be in the next beta. I need to fix up some final issues before the next release.


Tue May 27, 2008 2:41 pm
Profile
Trooper

Joined: Wed Mar 01, 2006 8:47 pm
Posts: 550
Reply with quote
Post 
This plugin sounds interesting as a replacement for SNESAmp,but I'd like to know if the accuracy of GB and NES emulation is on par with the latest versions of NEZPlug (the gold standard for standard NES and GB emulation) and NotSoFatso UFMix (currently has the best emulation of Famicom special chips).

_________________
Have a nice kick in da nutz @~@* c//


Thu May 29, 2008 3:23 am
Profile
has wat u liek
User avatar

Joined: Tue Sep 11, 2007 2:54 pm
Posts: 559
Location: Banland.
Reply with quote
Post 
I haven't done much testing with NSF playback. blargg will know of course about the capabilities of GME.


Thu May 29, 2008 4:44 am
Profile
has wat u liek
User avatar

Joined: Tue Sep 11, 2007 2:54 pm
Posts: 559
Location: Banland.
Reply with quote
Post 
Sorry about the corrupted installer, will upload a fresh beta when I can. The next beta is in testing and shouldn't be too long (about today or tomorrow).

I apologize again for the inconvenience.


Thu May 29, 2008 6:52 am
Profile
Justice is Blind

Joined: Wed Jul 28, 2004 3:33 pm
Posts: 620
Location: Test
Reply with quote
Post 
Huh?

The installer was OK for me.


Thu May 29, 2008 8:43 am
Profile ICQ YIM WWW
has wat u liek
User avatar

Joined: Tue Sep 11, 2007 2:54 pm
Posts: 559
Location: Banland.
Reply with quote
Post 
Was corrupted for me, but meh. :P Easily fixed.


Thu May 29, 2008 5:48 pm
Profile
-Burninated-
User avatar

Joined: Mon Sep 10, 2007 11:33 pm
Posts: 871
Location: Unspecified
Reply with quote
Post 
Mine was corrupted, too, so, I can wait. It's all good.

_________________
俺はテメエの倒す男だ! 宜しく! お前はもう死んでいる...


Thu May 29, 2008 6:06 pm
Profile
has wat u liek
User avatar

Joined: Tue Sep 11, 2007 2:54 pm
Posts: 559
Location: Banland.
Reply with quote
Post 
Uploaded.


Thu May 29, 2008 7:00 pm
Profile
Gecko snack

Joined: Sun Aug 21, 2005 11:06 am
Posts: 2372
Location: Australia, QLD
Reply with quote
Post 
In order for me to get that song to work I have to enable the Plays Forever and Ignore Silence options.

Enabling the Ignore Silence function alone makes the song end upon reaching 3 seconds.

Enabling the Plays Forever has no impact and will still end at 4 seconds unless I also use Ignore Silence

VGMStream plugin r155
64th Note v1.2 beta 3
Highly Experimental PSF1/PSF2 Player v2.09
MGME 0.5 beta 3

Direct Sound output with all buffers doubled.

_________________
Core i7 920 @ 2.66GHZ | ASUS P6T Motherboard | 8GB DDR3 1600 RAM | Gigabyte Geforce 760 4GB | Windows 10 Pro x64


Fri May 30, 2008 3:37 am
Profile WWW
Regular
User avatar

Joined: Thu Jun 30, 2005 1:54 pm
Posts: 327
Location: USA
Reply with quote
Post 
Quote:
Enabling the Ignore Silence function alone makes the song end upon reaching 3 seconds.

I wonder if this is another issue with the playback program not finishing playing its internal audio buffer when it gets an early signal from the plugin that the track has ended. They had this issue in Audacious too, since it involves the length of the track not being known ahead of time, unlike with other formats like mp3 where it's always known. I wouldn't be surprised if it occurred on only some hardware as well.

Here's something to try, if the tracks are cutting off when playing back through speakers: enable the DiskWriter (or equivalent) and try recording the track to disk, then see if that is cut off the same way. I'll have to get with mudlord to resolve this.


Fri May 30, 2008 6:49 am
Profile WWW
Gecko snack

Joined: Sun Aug 21, 2005 11:06 am
Posts: 2372
Location: Australia, QLD
Reply with quote
Post 
I think your right or close to the answer. Setting the buffer to the default 2000/500/500ms results in the file playing properly with out any advanced options ticked in the MGME plugin.

doubling them means the file ends prematurely.

_________________
Core i7 920 @ 2.66GHZ | ASUS P6T Motherboard | 8GB DDR3 1600 RAM | Gigabyte Geforce 760 4GB | Windows 10 Pro x64


Fri May 30, 2008 2:28 pm
Profile WWW
has wat u liek
User avatar

Joined: Tue Sep 11, 2007 2:54 pm
Posts: 559
Location: Banland.
Reply with quote
Post 
Thanks for letting me know.


Thu Jun 05, 2008 3:37 am
Profile
Justice is Blind

Joined: Wed Jul 28, 2004 3:33 pm
Posts: 620
Location: Test
Reply with quote
Post 
Out of curiousity, what would be the best sound frequency to pick? I mean, I know the SNES plays at about 22050 Hz if I recall, but I'm not sure if, say, the Genesis does.

Wonderful plugin by the way. It was quite satisfying to replace a bunch of old plugins with it.


Thu Jun 05, 2008 8:33 am
Profile ICQ YIM WWW
Gecko snack

Joined: Sun Aug 21, 2005 11:06 am
Posts: 2372
Location: Australia, QLD
Reply with quote
Post 
The snes is about 32040hz. It varies though by small amounts.

_________________
Core i7 920 @ 2.66GHZ | ASUS P6T Motherboard | 8GB DDR3 1600 RAM | Gigabyte Geforce 760 4GB | Windows 10 Pro x64


Thu Jun 05, 2008 8:40 am
Profile WWW
has wat u liek
User avatar

Joined: Tue Sep 11, 2007 2:54 pm
Posts: 559
Location: Banland.
Reply with quote
Post 
AFAIK, it hasn't exactly been pinned down. I know AntiRes did some research on the frequency, but it is somewhere between 32000Hz and 32040Hz.

The closest setting should be 32Khz for the SNES. Frequencies above 48khz won't be added.

Quote:
Wonderful plugin by the way. It was quite satisfying to replace a bunch of old plugins with it.


Glad you like it :wink:


Thu Jun 05, 2008 8:53 am
Profile
Regular
User avatar

Joined: Thu Jun 30, 2005 1:54 pm
Posts: 327
Location: USA
Reply with quote
Post 
Quote:
The closest setting should be 32Khz for the SNES. Frequencies above 48khz won't be added.

GME automatically uses its own internal good quality FIR resampler, so it's probably best to tell GME that you want 44100 or 48000 Hz output, and let GME resample as necessary. GME generates SPC at 32000 Hz internally, then resamples to the output rate, so the resampler doesn't affect accuracy at all (resampling to a higher sampling rate leaves the signal unchanged, since all frequencies can be represented in the higher rate). If you want to bypass this resampler for the SPC format, 32000 Hz is the rate to use, but then you rely on your operating system/sound card doing a better job at resampling. Does this plugin allow separate sample rates for each format? If not, then setting 32000 Hz would make other formats like NSF and GBS sound more muffled than they should be.


Thu Jun 05, 2008 1:39 pm
Profile WWW
has wat u liek
User avatar

Joined: Tue Sep 11, 2007 2:54 pm
Posts: 559
Location: Banland.
Reply with quote
Post 
Quote:
Does this plugin allow separate sample rates for each format?


Nope. Whatever option is set in the configuration, is the sample rate used for all formats.


Thu Jun 05, 2008 2:21 pm
Profile
Justice is Blind

Joined: Wed Jul 28, 2004 3:33 pm
Posts: 620
Location: Test
Reply with quote
Post 
Yeah, that's why I asked what I asked, I was afraid that setting the sample rate to something good for SNES music would made NSF and so on sound weird.


Thu Jun 05, 2008 2:30 pm
Profile ICQ YIM WWW
Regular
User avatar

Joined: Thu Jun 30, 2005 1:54 pm
Posts: 327
Location: USA
Reply with quote
Post 
Metatron wrote:
Yeah, that's why I asked what I asked, I was afraid that setting the sample rate to something good for SNES music would made NSF and so on sound weird.

Yeah, setting 32000 would make other formats sound more muffled. To summarize my previous post, unless your sound card's DAC can run at 32000 Hz, the sample stream will be resampled to 44100/48000/etc. Hz at some point before the DAC, so it's simply a question of whether you want GME or the OS/sound card to do this resampling. For purists, mudlord could add a "use 32000 Hz for SPC tracks" checkbox. Personally I think that a variable sample rate isn' even needed and the plugin could just always output 44100 Hz. That's such a common rate that anything should handle it correctly, and without any quality problems.


Thu Jun 05, 2008 6:05 pm
Profile WWW
Reply with quote
Post 
Quote:
unless your sound card's DAC can run at 32000 Hz, the sample stream will be resampled to 44100/48000/etc. Hz at some point before the DAC, so it's simply a question of whether you want GME or the OS/sound card to do this resampling.


I've been thinking about that, myself. It's probably the only advantage of something like 96KHz on a card that actually supports it -- you can resample to an even multiple with something like a 4-tap cubic or 6-tap hermite filter. It can't possibly be worse than a cheap sound card's resampler.

And it would also simplify changing emulation speeds. Rather than having to change the frequency playback rate, you could instead simply change the input samples to output samples ratio.

If you wanted to get daring, you could probably use 32040hz -> 96000hz, so that emulation doesn't run ~1% slower than real hardware.


Thu Jun 05, 2008 6:43 pm
has wat u liek
User avatar

Joined: Tue Sep 11, 2007 2:54 pm
Posts: 559
Location: Banland.
Reply with quote
Post 
Quote:
or purists, mudlord could add a "use 32000 Hz for SPC tracks" checkbox. Personally I think that a variable sample rate isn' even needed and the plugin could just always output 44100 Hz.


Done for next release. Users will be able to select whether SPCs are played at 32khz or 44100, which will be the sample rate for all other formats.


Sat Jun 14, 2008 3:58 am
Profile
Gecko snack

Joined: Sun Aug 21, 2005 11:06 am
Posts: 2372
Location: Australia, QLD
Reply with quote
Post 
are custom sample rates supported? you can enter them, not sure if they have any effect though.

_________________
Core i7 920 @ 2.66GHZ | ASUS P6T Motherboard | 8GB DDR3 1600 RAM | Gigabyte Geforce 760 4GB | Windows 10 Pro x64


Sat Jun 14, 2008 4:18 am
Profile WWW
has wat u liek
User avatar

Joined: Tue Sep 11, 2007 2:54 pm
Posts: 559
Location: Banland.
Reply with quote
Post 
Quote:
are custom sample rates supported? you can enter them, not sure if they have any effect though.

No, due to how I was enumerating sample rates for the combobox, it was editable, but sample rates can't be edited for use. Least in the next version, the combobox is eliminated for 44100Hz all around, except for elective 32Khz SPC playback.


Sun Jun 15, 2008 12:59 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 114 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software.