Opened 10 years ago

Closed 10 years ago

#7757 closed enhancement (fixed)

Add device selection for Windows DirectX sound output

Reported by: Jeff Lu <jll544@…> Owned by: JYA
Priority: minor Milestone: unknown
Component: MythTV - Audio Output Version: head
Severity: medium Keywords: win32 directx
Cc: Ticket locked: no

Description

Attached patch for DirectX Sound adds the ability to specify device(s) to use, honoring independent pcm and passthru settings. Useful in Vista and Windows 7 because they represent analog and digital outputs as separate devices.

Devices are configured on the usual global settings page either by name prefix or by number (as shown by dxdiag). E.g. "DirectX:Digital Audio" or "DirectX:2". If the device ID is wrong or missing, the system default device is used. Only the default "Primary Sound Driver" is pre-populated on the settings page; it's up to the user to enter other device names.

Other fixes:

  • Set 48k samplerate for passthru (MS requirement) - patch for winaudio also attached.
  • Remove semi-redundant part of underrun detection, because it sometimes caused audio output to hang. The remaining timestamp-based detection works fine.

Attachments (4)

7757-directx_devices.patch (9.6 KB) - added by Jeff Lu <jll544@…> 10 years ago.
Add device selection for DirectX sound output
7757-winaudio_48k.patch (563 bytes) - added by Jeff Lu <jll544@…> 10 years ago.
Waveout audio fix to lock SPDIF sample rate to 48k
7757-winaudio_48k.2.patch (547 bytes) - added by Jeff Lu <jll544@…> 10 years ago.
Oops, last one got CRLF mangled. Try again.
7757-directx_devices.2.patch (9.5 KB) - added by Jeff Lu <jll544@…> 10 years ago.
Replaces original patch. Instead of removing the underrun detection, fix what causes the hang.

Download all attachments as: .zip

Change History (6)

Changed 10 years ago by Jeff Lu <jll544@…>

Attachment: 7757-directx_devices.patch added

Add device selection for DirectX sound output

Changed 10 years ago by Jeff Lu <jll544@…>

Attachment: 7757-winaudio_48k.patch added

Waveout audio fix to lock SPDIF sample rate to 48k

Changed 10 years ago by Jeff Lu <jll544@…>

Attachment: 7757-winaudio_48k.2.patch added

Oops, last one got CRLF mangled. Try again.

Changed 10 years ago by Jeff Lu <jll544@…>

Replaces original patch. Instead of removing the underrun detection, fix what causes the hang.

comment:1 Changed 10 years ago by markk

(In [23505]) Force 48k samplerate for windows audio.

Refs #7757.

comment:2 Changed 10 years ago by markk

Resolution: fixed
Status: newclosed

(In [23506]) Add device selection for Windows DirectX sound output with patch from Jeff Lu. Closes #7757.

Note: See TracTickets for help on using tickets.