Search found 306 matches

by tryphon
Fri Oct 25, 2019 1:53 pm
Forum: SGDK
Topic: [XGM] PCM sfx doesn't start
Replies: 3
Views: 199

Re: [XGM] PCM sfx doesn't start

Yes we did, and you're right, that's indeed the problem. At first I thought I had a priority problem, then that isPlayingPCM was releasing info too early, but it's the contrary : it takes too much time to consider the channel used. I'll update my "pcm manager" to block a channel during the 2 first f...
by tryphon
Thu Oct 24, 2019 8:06 pm
Forum: SGDK
Topic: [XGM] PCM sfx doesn't start
Replies: 3
Views: 199

Re: [XGM] PCM sfx doesn't start

After some texts, I think the problem is related to XGM_isPCMPlaying...
by tryphon
Thu Oct 24, 2019 5:32 pm
Forum: SGDK
Topic: [XGM] PCM sfx doesn't start
Replies: 3
Views: 199

[XGM] PCM sfx doesn't start

I noticed sometimes, PCM sfx doesn't start when I call XGM_playPCM. Especially when I play very close sfx. Therefore I have the 3 questions : 1) is the priority the only thing that can prevent a PCM to be played ? 2) does a priority of 15 mean that the PCM will overpass any playing PCM (so it can't ...
by tryphon
Wed Aug 28, 2019 1:28 pm
Forum: Megadrive/Genesis
Topic: Sega Tech Docs archive
Replies: 26
Views: 4790

Re: Sega Tech Docs archive

Huge move. Thank you all for gathering this...
by tryphon
Wed Jul 24, 2019 3:30 pm
Forum: SGDK
Topic: SGDK1.4 crashes at compilation
Replies: 4
Views: 700

Re: SGDK1.4 crashes at compilation

Mmmh, I'll try to compile in my fridge and keep you informed :P
by tryphon
Tue Jul 23, 2019 10:05 pm
Forum: SGDK
Topic: SGDK1.4 crashes at compilation
Replies: 4
Views: 700

SGDK1.4 crashes at compilation

I don't know if it's due to my PC or SGDK, I post this in case someone else would encounter the same behaviour, which could give a hint about the cause. My PC crashes consistently (about 1 every 5 compilations) when I compile the xgmplayer sample. I'm not speaking of a compilation error, but a true ...
by tryphon
Mon Jul 22, 2019 9:26 am
Forum: SGDK
Topic: SGDK1.4 : Typo in sample/xgmplayer
Replies: 1
Views: 551

SGDK1.4 : Typo in sample/xgmplayer

A simple typo left in main.c source code :

line 288 : SPR_initEx(20, 80, 64);
Should be : SPR_initEx(80, 64);

Also, for nitpicking, line 63 : 0x0044, // D - dark yellow
Should be : 0x0044, // E - dark yellow
by tryphon
Wed Jul 17, 2019 3:06 pm
Forum: SGDK
Topic: 4 PCM example
Replies: 3
Views: 788

Re: 4 PCM example

ok, I'm going a similar way (except that, since I didn't know MML, I used a custom format).
by tryphon
Wed Jul 17, 2019 7:25 am
Forum: SGDK
Topic: 4 PCM example
Replies: 3
Views: 788

4 PCM example

Is there somewhere a VGM (or at least an XGM one) file that uses all 4 PCM channels (or at least more than 1) ?

All the samples from xgmplayer example use only one PCM channel.

Or do I have to mix my channels "by hand" ?
by tryphon
Fri Jul 12, 2019 9:31 am
Forum: SGDK
Topic: Internal XGM specs ?
Replies: 5
Views: 783

Re: Internal XGM specs ?

Do you think it'd be feasible to add a kind of JSR feature (jump to another part of the xgc code, and a return code) ?

It'd allow to store separately instruments settings, or isolate repeating patterns of music ?

I guess it's not so easy, because you must have thought about it.
by tryphon
Fri Jul 12, 2019 6:24 am
Forum: SGDK
Topic: Internal XGM specs ?
Replies: 5
Views: 783

Re: Internal XGM specs ?

Salut Stef, j'espère que tout va bien, je te croise plus trop sur le forum des malades (qui porte de "mieux en mieux" ce titre). The first reason is that I don't want to rely on any external tool (besides the ones I wrote myself). The second reason is that, at some point, I may want to modify the XG...
by tryphon
Wed Jul 10, 2019 12:58 pm
Forum: SGDK
Topic: Internal XGM specs ?
Replies: 5
Views: 783

Internal XGM specs ?

Bilingual post :P Je veux générer moi-même mon code XGM. Je me suis donc orienté vers la spécification du format qu'on trouve ici : https://github.com/Stephane-D/SGDK/blob/master/bin/xgm.txt Et j'ai voulu m'assurer de deux-trois trucs en regardant un XGM directement dans la ROM de sample/xgmplayer. ...
by tryphon
Wed Jul 03, 2019 9:04 am
Forum: Sound
Topic: Is there a way to fake the YM2151 2nd detune ?
Replies: 0
Views: 1012

Is there a way to fake the YM2151 2nd detune ?

The YM2151 has a second Detune parameter which affects noticeably the generated sound. Is there a way to reproduce it ? I can't change the channel frequency because it affects only one operator...

Is the only way to turn it into a sample ?
by tryphon
Sat Jun 15, 2019 7:15 pm
Forum: Sound
Topic: How DAC works ?
Replies: 8
Views: 1060

Re: How DAC works ?

Thank you !
by tryphon
Sat Jun 15, 2019 9:22 am
Forum: Sound
Topic: How DAC works ?
Replies: 8
Views: 1060

How DAC works ?

I have some questions about channel 6 DAC mode : 1) do you confirm there's a 9th bit of value at bit 3 of register 2C ? I don't see this register mentioned in most documentations, nor in VGM specs, in particular data blocks are byte based, does it mean that all YM2612 vgm dumps are wrong ? 2) if I w...