From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.50.43.168 with SMTP id x8mr2416941igl.4.1412258165259; Thu, 02 Oct 2014 06:56:05 -0700 (PDT) X-Received: by 10.140.21.51 with SMTP id 48mr16078qgk.12.1412258165228; Thu, 02 Oct 2014 06:56:05 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!h18no661849igc.0!news-out.google.com!i10ni61qaf.0!nntp.google.com!dc16no331543qab.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 2 Oct 2014 06:56:05 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=20.132.68.133; posting-account=71T85QoAAACdj14SLDEMBv_3HCGzGIoF NNTP-Posting-Host: 20.132.68.133 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Debugging Audio Issue using Windows 7? From: dd24fan Injection-Date: Thu, 02 Oct 2014 13:56:05 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:22005 Date: 2014-10-02T06:56:05-07:00 List-Id: Looking for some guidance on what to do with an application on Windows 7 playing audio sounds on 2 devices (Realtek onboard & Soundblaster Z). Currently with legacy API all sounds come through the Realtek device only. In Windows XP the application used to play sounds on the onboard and an older Sound Blaster card when software was triggered by a hardware input. Windows 7 has Core Audio APIs now but I'm not sure how to integrate it with legacy API so that I can play certain sounds to the Realtek and Sound Blaster like in XP. I'm using ObjectAda 8.2.2 (can't upgrade due to contractual issues) and there is a directory (..\ObjectAda\win32ada\binding\win32) that has the winapi, winapiconstants, win32.mmsystem, etc ada code. Our application code then uses pragma Elaborates to reference the files (see example below) with Ada.Unchecked_Conversion; with Winapi; with Winapiconstants; with Unchecked_Conversion; with System; with Win32.Mmsystem; with Idirectsound; with Idirectsoundbuffer; with Vc; with Cwavesoundread; pragma Elaborate(Winapi); pragma Elaborate(Winapiconstants); pragma Elaborate(Unchecked_Conversion); pragma Elaborate(System); pragma Elaborate(Win32.Mmsystem); pragma Elaborate(Idirectsound); pragma Elaborate(Idirectsoundbuffer); pragma Elaborate(Vc); pragma Elaborate(Cwavesoundread); pragma Elaborate(Interfaces.C); I guess my question would be is there a way to modify existing code without having to re-write all of it to the new Windows 7 Core Audio API? Any help is greatly appreciated. -Davelin