mirror of
https://github.com/switchbrew/switch-examples.git
synced 2025-12-09 21:55:14 +01:00
Print current device state
This commit is contained in:
parent
873817ee47
commit
ca1c5104d6
@ -68,6 +68,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))
|
||||||
{
|
{
|
||||||
rc = audoutRegisterBufferEvent(&event);
|
rc = audoutRegisterBufferEvent(&event);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user