Skip to content

snd_commands.h wrong default define + both music+sfx issue #19

@GreenSnakeLinux

Description

@GreenSnakeLinux

Hello,

In the sample: 16-sound-music
snd_commands.h contain the define _SND_CMD_BASE_GENERATED with the value 4 but it should be 8
it works because in main.c you redefine it with a value of 8
The file contain 8 defaults commands in snd_commands_info.h
It should take it into account

Anyway I manage to play a sfx or a music with a lot of struggle, my rom.mk was the one from sample 1 (GAMEROM=puzzledp)
and i must change it to: GAMEROM=lastbld2 or GAMEROM=fatfury2
I have same result with both. I'm not sure to understand why, is puzzledp a game with no sound and no music ?

Now I want to play both sfx and music at same time, it is possible with a sfx using adpcm_b and music using also adpcm_b ?
or music must be in .fur format ? if yes how to convert .wav/.mp3 into .fur format ?
Currently if I play a sfx, the music stop. And in snd_commands.h my files are both detected as sfx: #define SND_NB_FX (2)

thanks for your help

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions