1
0
Fork 0
forked from suyu/suyu
suyu/src/core/hle
Lioncash 16730c4c43 service/audren_u: Handle audio USB output revision queries in ListAudioDeviceName()
Audio devices use the supplied revision information in order to
determine if USB audio output is able to be supported. In this case, we
can only really handle using this revision information in
ListAudioDeviceName(), where it checks if USB audio output is supported
before supplying it as a device name.

A few other scenarios exist where the revision info is checked, such as:

- Early exiting from SetAudioDeviceOutputVolume if USB audio is
  attempted to be set when that device is unsupported.

- Early exiting and returning 0.0f in GetAudioDeviceOutputVolume when
  USB output volume is queried and it's an unsupported device.

- Falling back to AHUB headphones in GetActiveAudioDeviceName when the
  device type is USB output, but is unsupported based off the revision
  info.

In order for these changes to also be implemented, a few other changes
to the interface need to be made.

Given we now properly handle everything about ListAudioDeviceName(), we
no longer need to describe it as a stubbed function.
2019-07-19 07:55:27 -04:00
..
kernel Merge pull request #2687 from lioncash/tls-process 2019-07-18 13:53:04 -04:00
service service/audren_u: Handle audio USB output revision queries in ListAudioDeviceName() 2019-07-19 07:55:27 -04:00
ipc.h Merge pull request #2090 from FearlessTobi/port-4599 2019-03-20 23:44:20 -04:00
ipc_helpers.h ipc_helpers: Amend floating-point type in Pop<double> specialization 2019-05-18 22:05:33 -04:00
lock.cpp
lock.h
result.h hle/result: Remove unnecessary bitfield entry for ResultCode 2019-04-05 16:34:34 -04:00