mirror of
https://github.com/switchbrew/switch-examples.git
synced 2025-08-10 01:59:24 +02:00
Print current device state
This commit is contained in:
parent
873817ee47
commit
ca1c5104d6
@ -67,6 +67,11 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
rc = audoutInitialize();
|
rc = audoutInitialize();
|
||||||
printf("audoutInitialize() returned 0x%x\n", rc);
|
printf("audoutInitialize() returned 0x%x\n", rc);
|
||||||
|
|
||||||
|
printf("Sample rate: 0x%x\n", audoutGetSampleRate());
|
||||||
|
printf("Channel count: 0x%x\n", audoutGetChannelCount());
|
||||||
|
printf("PCM format: 0x%x\n", audoutGetPcmFormat());
|
||||||
|
printf("Device state: 0x%x\n", audoutGetDeviceState());
|
||||||
|
|
||||||
if (R_SUCCEEDED(rc))
|
if (R_SUCCEEDED(rc))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user