Jump to content
IGNORED

What happened to the sound libraries?


Kiwi

Recommended Posts

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 :\.

Link to comment
Share on other sites

  • 1 year later...

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.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 :\.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...