More DAC samples

Discussion in 'Discussion and Q&A Archive' started by FireRat, Apr 26, 2010.

Thread Status:
Not open for further replies.
  1. FireRat

    FireRat Do Not Interact With This User, Anywhere!!! Exiled

    Joined:
    Oct 31, 2009
    Messages:
    535
    Hi again =P. I need add more DAC samples to the Sonic 2'Clone Driver, but i dont know. I tried to add in "PCM_Table" but does not work. I need to port some DAC samples to my Sonic3K ports (EXAMPLE: The miniboss music of sonic3 i need the "come on!" sample)


    How to add more samples?


    NOTE: I need to ADD MORE samples, NOT MODIFY THE EXISTENT
     
    Last edited by a moderator: May 4, 2010
  2. Pokepunch

    Pokepunch That guy who posts on occasion Member

    Joined:
    Aug 7, 2009
    Messages:
    270
    Location:
    UK
    Look cant you just stop a bit I mean you've asked so many questions and its irritating me so much,But not just that but you keep asking the same questions.How many DAC questions are you going to ask??
     
  3. FireRat

    FireRat Do Not Interact With This User, Anywhere!!! Exiled

    Joined:
    Oct 31, 2009
    Messages:
    535
    Sorry. This is the last
     
  4. DanielHall

    DanielHall Well-Known Member Member

    Joined:
    Jan 18, 2010
    Messages:
    860
    Location:
    North Wales
    Really? =P By looking through the past threads in the D&Q, I noticed that promise was made and broken by numerous people. [​IMG]
     
  5. FireRat

    FireRat Do Not Interact With This User, Anywhere!!! Exiled

    Joined:
    Oct 31, 2009
    Messages:
    535
    Sorry, sorry. Just Answer me ok?
     
  6. MarkeyJester

    MarkeyJester ♡ ! Member

    Joined:
    Jun 27, 2009
    Messages:
    2,867
    You're no-one's boss.


    When it comes to adding more samples, although I'm not sure what your DAC driver is like (but judging by the fact that you are using the "Clone" driver), I can see that the DAC part of the driver is run via Zilog-80, while I'm not too familiar with Zilog entirely, I know that the table size is only fit for 20 sample's info.


    One way of having more than 20 samples which I've taken use of, is if say sample C3 is being played, have 81 set to play for the Zilog, but change the first data info in the table to C3's data, so although the Z80 is playing 81 for every sample, the table info is different, thus a different sample is played. I personally think that having the Zilog rom data in a ram space of it's own is as useful as hell, thank you SEGA =P
     
    Last edited by a moderator: Apr 26, 2010
  7. Irixion

    Irixion Well-Known Member Member

    Joined:
    Aug 11, 2007
    Messages:
    670
    Location:
    Ontario, Canada
  8. MarkeyJester

    MarkeyJester ♡ ! Member

    Joined:
    Jun 27, 2009
    Messages:
    2,867
    Because had he done some research, he would've found it himself, which is one reason I didn't give much info out on this issue.
     
  9. FireRat

    FireRat Do Not Interact With This User, Anywhere!!! Exiled

    Joined:
    Oct 31, 2009
    Messages:
    535
    Thanks irixion! [​IMG]


    but i cannot port more of 7 samples...
     
    Last edited by a moderator: Apr 28, 2010
  10. FireRat

    FireRat Do Not Interact With This User, Anywhere!!! Exiled

    Joined:
    Oct 31, 2009
    Messages:
    535
    Oh c'mon anybody can answer me?


    Here's my code:



    Code:
    		dc.l	$A00200, DAC1  &#59;kick
    
    		dc.w	$2CF		
    
    		dc.b	$19,0		
    
    		dc.l	$A00208, DAC2  &#59;Snare
    
    		dc.w	$770			
    
    		dc.b	$4,0		
    
    		dc.l	$A00210, DAC3   &#59;Clap
    
    		dc.w	$2CF
    
    		dc.b	$19,0
    
    		dc.l	$A00218, DAC4   &#59;Scratch
    
    		dc.w	$BB5	 
    
    		dc.b	$A,0	 
    
    		dc.l	$A00220, DAC5   &#59;Timpani
    
    		dc.w	$1016		   
    
    		dc.b	$1D,0			
    
    		dc.l	$A00228, DAC6   &#59;Tom
    
    		dc.w	$622
    
    		dc.b	$C,0
    
    		dc.l	$A00230, DAC7   &#59;Bongo
    
    		dc.w	$5C4
    
    		dc.b	$1D,0
    
    		dc.l	$A00238, DAC8  &#59;Come on!
    
    		dc.w	$710		   
    
    		dc.b	$F,0
    The latest sample does not work...
     
  11. DanielHall

    DanielHall Well-Known Member Member

    Joined:
    Jan 18, 2010
    Messages:
    860
    Location:
    North Wales
    Sorry, I don't have a clue how to music hack properly.
     
  12. MarkeyJester

    MarkeyJester ♡ ! Member

    Joined:
    Jun 27, 2009
    Messages:
    2,867
    I already did give you an answer, look above. I like to give answers without doing the work for people, it shows how committed they are with working on a project, good luck =)
     
  13. Irixion

    Irixion Well-Known Member Member

    Joined:
    Aug 11, 2007
    Messages:
    670
    Location:
    Ontario, Canada

    The way you worded it, I don't even get it haha.


    Look, basically you need to make another DAC table. It fixed the issue for me.
     
  14. FireRat

    FireRat Do Not Interact With This User, Anywhere!!! Exiled

    Joined:
    Oct 31, 2009
    Messages:
    535
    xD. I now fixed this by changing this fuckin driver to the S1HL driver. =P
     
  15. FireRat

    FireRat Do Not Interact With This User, Anywhere!!! Exiled

    Joined:
    Oct 31, 2009
    Messages:
    535
    Hey, sorry for this last fuck, but because the S1HL add more samples guide is very complicated (especially by i not know correctly the english xP) i decided to change to the original driver. In the disassembly of the driver of puto, i encountered a PCM table. here's my code.



    Code:
    PCM_Table:
    
    	dw	DAC_Sample1; Kick sample
    
    	dw	(DAC_Sample1_End-DAC_Sample1)
    
    	dw	0017h&#59; Pitch = 17h
    
    	dw	0000h
    
    	
    
    	dw	DAC_Sample2; Snare sample
    
    	dw	(DAC_Sample2_End-DAC_Sample2)
    
    	dw	0001h&#59; Pitch = 1h
    
    	dw	0000h
    
    	
    
    	dw	DAC_Sample3; Timpani sample
    
    	dw	(Dac_Sample3_End-DAC_Sample3)
    
    Sample3_Pitch:
    
    	dw	001Bh&#59; Pitch = 1Bh
    
    	dw	0000h
    
    
    
    	dw	DAC_Sample2; Snare sample
    
    	dw	(DAC_Sample2_End-DAC_Sample2)
    
    	dw	0001h&#59; Pitch = 1h
    
    	dw	0000h
    
    
    
    	dw	DAC_Sample2; Snare sample
    
    	dw	(DAC_Sample2_End-DAC_Sample2)
    
    	dw	0001h&#59; Pitch = 1h
    
    	dw	0000h
    
    
    
    	dw	DAC_Sample2; Snare sample
    
    	dw	(DAC_Sample2_End-DAC_Sample2)
    
    	dw	0001h&#59; Pitch = 1h
    
    	dw	0000h
    
    
    
    	dw	DAC_Sample2; Snare sample
    
    	dw	(DAC_Sample2_End-DAC_Sample2)
    
    	dw	0001h&#59; Pitch = 1h
    
    	dw	0000h
    
    
    
    	dw	DAC_Sample2; Snare sample
    
    	dw	(DAC_Sample2_End-DAC_Sample2)
    
    	dw	0001h&#59; Pitch = 1h
    
    	dw	0000h
    
    
    
    	dw	DAC_Sample2; Snare sample
    
    	dw	(DAC_Sample2_End-DAC_Sample2)
    
    	dw	0001h&#59; Pitch = 1h
    
    	dw	0000h
    
    
    
    	dw	DAC_Sample2; Snare sample
    
    	dw	(DAC_Sample2_End-DAC_Sample2)
    
    	dw	0001h&#59; Pitch = 1h
    
    	dw	0000h
    
    
    
    	dw	DAC_Sample2; Snare sample
    
    	dw	(DAC_Sample2_End-DAC_Sample2)
    
    	dw	0001h&#59; Pitch = 1h
    
    	dw	0000h
    
    
    
    	dw	DAC_Sample2; Snare sample
    
    	dw	(DAC_Sample2_End-DAC_Sample2)
    
    	dw	0001h&#59; Pitch = 1h
    
    	dw	0000h
    (sorry for too many snare samples, this is because i tried to fill this)


    I tried to fill this because later the $83 sample, is the noise, sega sound, etc. Now when is filled y tried this but always does not work. HOW TO FIX THIS FUCKIN PROBLEM?!?!?!?!?!?!
     
    Last edited by a moderator: May 4, 2010
  16. theocas

    theocas #! Member

    Joined:
    Apr 10, 2010
    Messages:
    375
    How about you stop saying fuck for a sec. What errors do you get? Compile Errors? Runtime Errors? And just remember, please use asm tags to wrap your ASM code. I am not too good with the driver you are using, but just send us the errors you get and we'd be happy to figure out what you need to fix here.


    EDIT: If you want to write fuckin correctly, write it like so: fuckin' :)
     
    Last edited by a moderator: May 4, 2010
  17. MarkeyJester

    MarkeyJester ♡ ! Member

    Joined:
    Jun 27, 2009
    Messages:
    2,867
    Firstly, I'm not too fond of the abusive use with the word "Fuck" here right now by either of you, as it seems very unnecessary and almost sounds as if you're doing it deliberately not as an expression, but just because you can? Whatever the reason, I'll just advise that maybe you should try not using that word for a while, it makes you seem less friendly (At least in my opinion anyway).


    On with Sonic 1's Z80 driver, be careful when using that, the samples used by that driver (as told by JMan right here) are held within the Z80 rom itself, and takes up about 80% of the Z80's SRam space, so to add more samples in that space is almost impossible. Insted, try using this driver (Which so happens to be written by JMan), or better yet the "S1HL" driver as you were using before, they feature bank switching, allowing the Z80 to access any place in the MC68 rom, rather than holding them in Z80 SRam taking up space.
     
    Last edited by a moderator: May 4, 2010
  18. EMK-20218

    EMK-20218 The Fuss Maker Exiled

    Joined:
    Aug 8, 2008
    Messages:
    1,067
    Location:
    Jardim Capelinha, São Paulo
    Ah, another DAC request topic for the same question. I remember I gave you the possible solution there on a old topic that give us the same question:


    How do I add more than x samples to the y driver?


    Giving everytime the same answer makes me a bit tired.
     
  19. FireRat

    FireRat Do Not Interact With This User, Anywhere!!! Exiled

    Joined:
    Oct 31, 2009
    Messages:
    535
    The link is broken...
     
  20. c1owd

    c1owd Previously 'CarrascoZX0' Member

    Joined:
    Dec 13, 2008
    Messages:
    364
    Hahahaha, oh god where do I start...

    Good for you man! I happy for you seriously. =P

    Haha wow, so just like that right? After almost 4 HOURS when you said you fixed the problem by switching to the S1HL driver. You gave up because you couldn't understand the guide and barley tried? Just like that? In four hours? You just gave up? Really?! *facepalm*


    And you just told us that you fixed the problem too. wtf?


    Besides, if you couldn't understand how to insert the S1HL driver even with the guide. What makes you think you can do it with puto's? There's no guide for that you know... And, what's so hard about inserting the S1HL Driver? The guide is so easy to understand. Just the only big difference is that the S1HL Driver uses compressed DAC samples instead of uncompressed ones... I'm not trying to be messed up or anything but at least TRY!

    Why don't you scroll down the page huh? Markey will give you a special surprise at the end. =P


    Though, for some reason I thought inserting the S1HL Sound Driver was easier than Jman's. (But that's just me...)
     
    Last edited by a moderator: May 5, 2010
Thread Status:
Not open for further replies.