Kiwi Posted May 10, 2013 Share Posted May 10, 2013 I tried to get sound working. I had update_sound() in NMI, and had start_sound(1,play_sound); and the compiler isn't picking it up. It won't compile the paddle example from the cv programming example that I copied words to words. Try to compile : smash.c smash.c:32: warning 112: function 'start_sound' implicit declaration C:\sdcctest\smashgame>sdcc -mz80 -c --std-c99 --oldralloc smash.c smash.c:32: error 101: too many parameters smash.c:34: warning 112: function 'start_sound' implicit declaration smash.c:34: error 101: too many parameters smash.c:119: warning 112: function 'update_sound' implicit declaration appears in CCI3. I really want to start on learning how to put sounds in my game, but these function doesn't work or appears to be missing from the h files :\. Quote Link to comment Share on other sites More sharing options...
digress Posted July 8, 2014 Share Posted July 8, 2014 I have just run into this same problem. I'm actually trying to disable the bios sound routines but none of these "Start_sound", "Stop_sound", Update_sound" routines seem to be there. Did you find a solution ? Thanks I tried to get sound working.I had update_sound() in NMI, and had start_sound(1,play_sound); and the compiler isn't picking it up. It won't compile the paddle example from the cv programming example that I copied words to words.Try to compile : smash.csmash.c:32: warning 112: function 'start_sound' implicit declarationC:\sdcctest\smashgame>sdcc -mz80 -c --std-c99 --oldralloc smash.csmash.c:32: error 101: too many parameterssmash.c:34: warning 112: function 'start_sound' implicit declarationsmash.c:34: error 101: too many parameterssmash.c:119: warning 112: function 'update_sound' implicit declarationappears in CCI3. I really want to start on learning how to put sounds in my game, but these function doesn't work or appears to be missing from the h files :\. Quote Link to comment Share on other sites More sharing options...
Kiwi Posted July 8, 2014 Author Share Posted July 8, 2014 I found out you're suppose to have set_snd_table(snd_table); in the very first line of your code. So that solved my sound issue.void main(void) {set_snd_table(snd_table);}Then I was able to use the sound table and use the play_sound(x);, stop_sound(x);. Those old functions,Start sound, stop sound and update sound , seems to be removed. Also, the programming example from newcoleco from the time I download the homebrew had their set_snd_table(snd_table); removed.As for disabling the sound bios routines, I haven't got that far with that. Quote Link to comment Share on other sites More sharing options...
digress Posted July 8, 2014 Share Posted July 8, 2014 ok, cool. I had that working then already. I was trying to removed the snd_table and disable the bios sound routines so that would explain why the stop_sound was not working. I figured it would work anyways even if no sound table was set or loaded since it wasn't trying to stop a specific sound. I found out you're suppose to have set_snd_table(snd_table); in the very first line of your code. So that solved my sound issue.void main(void) {set_snd_table(snd_table);}Then I was able to use the sound table and use the play_sound(x);, stop_sound(x);. Those old functions,Start sound, stop sound and update sound , seems to be removed. Also, the programming example from newcoleco from the time I download the homebrew had their set_snd_table(snd_table); removed.As for disabling the sound bios routines, I haven't got that far with that. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.