comp.lang.ada
 help / color / mirror / Atom feed
* Debugging Sound Issue with 2 Sound Cards on Windows 7: Any ideas out there?
@ 2015-04-24 15:19 dd24fan
  2015-04-24 21:54 ` tmoran
  0 siblings, 1 reply; 3+ messages in thread
From: dd24fan @ 2015-04-24 15:19 UTC (permalink / raw)


Hi all!  Currently have a 32-bit application that worked great in Windows XP with 2 sound cards.  

With XP wave files when triggered would play to the approproriate sound device.

As part of the ada code we had a configuration text file that had string identifier names which we defined depending on the device cards installed.

With a new Win7 PC I brought over the 32-bit app and right now I have the onboard Realtek "Speakers (Realtek High Definition Audio)" and another card installed from Diamond MM "Speakers (C-Media PCI Audio Device)".

The Realtek device simulates all external sounds in our simulation (APU-auxilliary power unit. High pitched engine running sound).  The PCI device simulates intercom sounds in our simulation using headsets.

The problem now is that all the sounds play only through the Realtek.

I don't have experience in working with the winapi libraries but did not think that anything had to be done or touched with that code as far as the setup structure to play the sounds.

We are still using ObjectAda version 8.2 with the bindings from Winapi 4.1
C:\Program Files\..\ObjectAda\winapi\v4.1\binding\ascii\src

Would anyone have any ideas what to try to resolve this problem?  Is this a Win 7 issue?

Thanks,

D


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Debugging Sound Issue with 2 Sound Cards on Windows 7: Any ideas out there?
  2015-04-24 15:19 Debugging Sound Issue with 2 Sound Cards on Windows 7: Any ideas out there? dd24fan
@ 2015-04-24 21:54 ` tmoran
  2015-04-29 19:01   ` dd24fan
  0 siblings, 1 reply; 3+ messages in thread
From: tmoran @ 2015-04-24 21:54 UTC (permalink / raw)


Sounds more like an OS, or device driver problem.
Looking at my Claw binding, I see it calls
  pragma Import(StdCall, waveOutOpen, "waveOutOpen");
with a small integer to select the playing device.  But I don't have
a dual card Windows 7 configuration to test running two at once.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Debugging Sound Issue with 2 Sound Cards on Windows 7: Any ideas out there?
  2015-04-24 21:54 ` tmoran
@ 2015-04-29 19:01   ` dd24fan
  0 siblings, 0 replies; 3+ messages in thread
From: dd24fan @ 2015-04-29 19:01 UTC (permalink / raw)


Ended up being a code change.  Works great. Back in business the way it was in XP.  Thanks.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-04-29 19:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-24 15:19 Debugging Sound Issue with 2 Sound Cards on Windows 7: Any ideas out there? dd24fan
2015-04-24 21:54 ` tmoran
2015-04-29 19:01   ` dd24fan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox