switchbrew / switch-examples

Switch examples for devkitA64 and libnx.
https://devkitpro.org/viewforum.php?f=42
569 stars 101 forks source link

playtone does not play any sound #10

Closed ericde45 closed 6 years ago

ericde45 commented 6 years ago

hello just tried HBL + playtone, while undocked, on the internal screen and with no external power

it does not sound anything

i tried pushing the keys but no difference

other examples are working fine ( hello world, simple gfx )

yellows8 commented 6 years ago

volume?

ericde45 commented 6 years ago

volume is at the max sound is ok in the menus i built my own sample test using libtransistor, and it works fine ( not through HBL of course but using node+pegaswitch+ace) just checked volume level while using playtone, volume is ok, still no sound the only key doing something is + to leave the application

yellows8 commented 6 years ago

Tested again & it works fine here.

yellows8 commented 6 years ago

Are both joy-cons attached/detached? Nothing connected with USB?

ericde45 commented 6 years ago

both joy cons are attached, nothing on usb. no power attached. i will check deeper this evening, i will try to build my own code, removing SIN function for a direct = function to have a high volume sound. ( HBL is an improvment for end user, but not for coder as this involves removing the SD, which involves rebooting, and pegaswitch + hbl does not work 100%)

ericde45 commented 6 years ago

test done right now :

i also tried to upload the playtone nro through pegaswitch+ace, but it is a pity it does not work.

ericde45 commented 6 years ago

i also tried with sample = 0xFFF and then tried it with dock + TV always the same issue

could that be linked to the fact that i own an European Switch, running in french language ? Serial: XAJ7000777XXXX

ericde45 commented 6 years ago

with the release of libtransistor 1.1.2, i downloaded their already built nro, run them through HBL, and the test_audio_output.nro is working fine, i can ear the 12 seconds ta ta ta ta :)

there seems to be an issue with libnx for audio

yellows8 commented 6 years ago

A fix is being worked on (see PR).

ericde45 commented 6 years ago

great ! i hope my inputs can help :)

ericde45 commented 6 years ago

i just built last libnx, and then rebuilt playtone, issue fixed thanks