Homebrew Homebrew HelpDesk

  • Thread starter Thread starter BurningDesire
  • Start date Start date
  • Views Views 13,162
  • Replies Replies 106
  • Likes Likes 7
That example doesn't even compile...

Code:
error: cannot convert 'double' to 'void*' for argument '4' to 'Result csndPlaySound(int, u32, u32, void*, void*, u32)'

  csndPlaySound(channel+8, s->format, 44100, 1.0, 0.0, (u32*)s->data, (u32*)s->data, s->size);

For me it compiles flawlessly
 
OK, I just this second redownloaded and rebuilt ctrulib....

And you guy's say I'm the only one getting any sort of error with the bundled audio example?


Code:
MacMini:mic spinal$ make

main.c

arm-none-eabi-gcc -MMD -MP -MF /opt/devkitpro/examples/3ds/audio/mic/build/main.d -g -Wall -O2 -mword-relocations -fomit-frame-pointer -ffast-math -march=armv6k -mtune=mpcore -mfloat-abi=hard -I/opt/devkitpro/examples/3ds/audio/mic/include -I/Users/spinal/devkitPro/libctru/include -I/opt/devkitpro/examples/3ds/audio/mic/build -DARM11 -D_3DS -c /opt/devkitpro/examples/3ds/audio/mic/source/main.c -o main.o 

/opt/devkitpro/examples/3ds/audio/mic/source/main.c: In function 'main':

/opt/devkitpro/examples/3ds/audio/mic/source/main.c:18:2: warning: implicit declaration of function 'CSND_initialize' [-Wimplicit-function-declaration]

  if(CSND_initialize(NULL)==0)audio_initialized = 1;

  ^

/opt/devkitpro/examples/3ds/audio/mic/source/main.c:42:5: warning: implicit declaration of function 'CSND_setchannel_playbackstate' [-Wimplicit-function-declaration]

    CSND_setchannel_playbackstate(0x8, 0);//Stop audio playback.

    ^

/opt/devkitpro/examples/3ds/audio/mic/source/main.c:43:5: warning: implicit declaration of function 'CSND_sharedmemtype0_cmdupdatestate' [-Wimplicit-function-declaration]

    CSND_sharedmemtype0_cmdupdatestate(0);

    ^

/opt/devkitpro/examples/3ds/audio/mic/source/main.c:62:5: warning: implicit declaration of function 'CSND_playsound' [-Wimplicit-function-declaration]

    CSND_playsound(0x8, CSND_LOOP_DISABLE, CSND_ENCODING_PCM16, 16000, (u32*)audiobuf, NULL, audiobuf_pos, 2, 0);

    ^

/opt/devkitpro/examples/3ds/audio/mic/source/main.c:62:25: error: 'CSND_LOOP_DISABLE' undeclared (first use in this function)

    CSND_playsound(0x8, CSND_LOOP_DISABLE, CSND_ENCODING_PCM16, 16000, (u32*)audiobuf, NULL, audiobuf_pos, 2, 0);

                        ^

/opt/devkitpro/examples/3ds/audio/mic/source/main.c:62:25: note: each undeclared identifier is reported only once for each function it appears in

/opt/devkitpro/examples/3ds/audio/mic/source/main.c:80:2: warning: implicit declaration of function 'CSND_shutdown' [-Wimplicit-function-declaration]

  if(audio_initialized)CSND_shutdown();

  ^

make[1]: *** [main.o] Error 1

make: *** [build] Error 2

MacMini:mic spinal$
 
  • Like
Reactions: clank
OK, I just this second redownloaded and rebuilt ctrulib....

And you guy's say I'm the only one getting any sort of error with the bundled audio example?


Code:
MacMini:mic spinal$ make

main.c

arm-none-eabi-gcc -MMD -MP -MF /opt/devkitpro/examples/3ds/audio/mic/build/main.d -g -Wall -O2 -mword-relocations -fomit-frame-pointer -ffast-math -march=armv6k -mtune=mpcore -mfloat-abi=hard -I/opt/devkitpro/examples/3ds/audio/mic/include -I/Users/spinal/devkitPro/libctru/include -I/opt/devkitpro/examples/3ds/audio/mic/build -DARM11 -D_3DS -c /opt/devkitpro/examples/3ds/audio/mic/source/main.c -o main.o

/opt/devkitpro/examples/3ds/audio/mic/source/main.c: In function 'main':

/opt/devkitpro/examples/3ds/audio/mic/source/main.c:18:2: warning: implicit declaration of function 'CSND_initialize' [-Wimplicit-function-declaration]

  if(CSND_initialize(NULL)==0)audio_initialized = 1;

  ^

/opt/devkitpro/examples/3ds/audio/mic/source/main.c:42:5: warning: implicit declaration of function 'CSND_setchannel_playbackstate' [-Wimplicit-function-declaration]

    CSND_setchannel_playbackstate(0x8, 0);//Stop audio playback.

    ^

/opt/devkitpro/examples/3ds/audio/mic/source/main.c:43:5: warning: implicit declaration of function 'CSND_sharedmemtype0_cmdupdatestate' [-Wimplicit-function-declaration]

    CSND_sharedmemtype0_cmdupdatestate(0);

    ^

/opt/devkitpro/examples/3ds/audio/mic/source/main.c:62:5: warning: implicit declaration of function 'CSND_playsound' [-Wimplicit-function-declaration]

    CSND_playsound(0x8, CSND_LOOP_DISABLE, CSND_ENCODING_PCM16, 16000, (u32*)audiobuf, NULL, audiobuf_pos, 2, 0);

    ^

/opt/devkitpro/examples/3ds/audio/mic/source/main.c:62:25: error: 'CSND_LOOP_DISABLE' undeclared (first use in this function)

    CSND_playsound(0x8, CSND_LOOP_DISABLE, CSND_ENCODING_PCM16, 16000, (u32*)audiobuf, NULL, audiobuf_pos, 2, 0);

                        ^

/opt/devkitpro/examples/3ds/audio/mic/source/main.c:62:25: note: each undeclared identifier is reported only once for each function it appears in

/opt/devkitpro/examples/3ds/audio/mic/source/main.c:80:2: warning: implicit declaration of function 'CSND_shutdown' [-Wimplicit-function-declaration]

  if(audio_initialized)CSND_shutdown();

  ^

make[1]: *** [main.o] Error 1

make: *** [build] Error 2

MacMini:mic spinal$

I don't have any kind of issue with it :P
 
  • Like
Reactions: Garcia98
So I am having a bit of an error myself here and I need some help. I am trying to install Ironhax on my 9.9.0.26U n3DS XL. I have the "installer" folder at sdmc:/3ds/installer and I have launched the game previously (played it for a bit) and I have the newest boot.3dsx on the root of my sd, but when I tried doing the installer, it screwed up and said something went wrong. The system locked and after waiting a few minutes, I restarted.

Now when I go back to the HBL and select the installer, I get an error saying "Missing target title".
mxa1uYg.jpg

Anyone know what I can do? I tried deleting the folder and copying it over again, but it still does this.
 
So I am having a bit of an error myself here and I need some help. I am trying to install Ironhax on my 9.9.0.26U n3DS XL. I have the "installer" folder at sdmc:/3ds/installer and I have launched the game previously (played it for a bit) and I have the newest boot.3dsx on the root of my sd, but when I tried doing the installer, it screwed up and said something went wrong. The system locked and after waiting a few minutes, I restarted.

Now when I go back to the HBL and select the installer, I get an error saying "Missing target title".
mxa1uYg.jpg

Anyone know what I can do? I tried deleting the folder and copying it over again, but it still does this.
Delete IronFall's save with svdt on tubehax!
 
I'm obviously missing a step here. Give me step by step instructions for updating, because thats the 4th time I downloaded and built that exact version.
 
I'm obviously missing a step here. Give me step by step instructions for updating, because thats the 4th time I downloaded and built that exact version.

Just "download as ZIP" and put the ctrulib folder inside your devkitpro folder, it should be at C:/devkitpro/ probably. You don't need to build anything, just download the zip file and extract the ctrulib folder.
 

Site & Scene News

Popular threads in this forum