Return-Path: Received: from post.thorcom.com (post.thorcom.com [195.171.43.25]) by klubnl.pl (8.14.4/8.14.4/Debian-8+deb8u2) with ESMTP id x478RDGv007130 for ; Tue, 7 May 2019 10:27:15 +0200 Received: from majordom by post.thorcom.com with local (Exim 4.14) id 1hNvIE-0007wQ-DQ for rs_out_1@blacksheep.org; Tue, 07 May 2019 09:17:42 +0100 Received: from [195.171.43.32] (helo=relay1.thorcom.net) by post.thorcom.com with esmtp (Exim 4.14) id 1hNvHp-0007wH-Qf for rsgb_lf_group@blacksheep.org; Tue, 07 May 2019 09:17:17 +0100 Received: from mail-ua1-x935.google.com ([2607:f8b0:4864:20::935]) by relay1.thorcom.net with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1hNvHn-0003LR-3b for rsgb_lf_group@blacksheep.org; Tue, 07 May 2019 09:17:16 +0100 Received: by mail-ua1-x935.google.com with SMTP id 49so2282960uas.0 for ; Tue, 07 May 2019 01:17:14 -0700 (PDT) X-DKIM-Result: Domain=gmail.com Result=Good and Known Domain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=zZGkfSJntmAvQ4hg7NResZB8shv/1NjSvqYUZG2vJto=; b=hhTVai7LtMDx0KZDdrolOA6WixROPSj/ZIUwbaMOErNIIReznCn1KVRwFaaunfqKkY kaW7YO8JCO3uWKwDEtHSRG0u1EHD5L0W1Sh1FsPqLrhMkw1O+MkcemgCNIH5eqGz866T KOUwRMFYruw3ydZinIGWtjpW8zIUt0anhu/lUbOAwl4bxESAfrE4jVhu0PWh/fKioAYp 9iL7cEsi/icIp+ti7K1g8Jx5nGPRymCKktoarXweW0OeF1/FPXDdexPXq/O9fStVC6m1 xL07/Ir+cSRgI1bPq+ydGoC43jQdjl9f7omGWAcC7MZYivz6Tbh4j5YOI2t3K+cLXcbR hwKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=zZGkfSJntmAvQ4hg7NResZB8shv/1NjSvqYUZG2vJto=; b=ZO5YKCPgL53gpVpm4fcoEACe3H/OL4UkKJfZl86NPVf9YdVkrq2GxSjGABYrVmdLMQ YPDZl0XOCwCyYhFcPXdRVgyfyFDaw95chvbe8ZBGI21g6d1+Yn7Xp/+wIMGbvODR+1nn 4/aPPiKIzNpuFP0FNczJyNklCFk5e2GFg9Kk7x26VThSidq78HAEWdaPswOCqAc1M4of /yxN15/c4lwWA4m8XM7YhO240mixoif4MjXRg5beL4A3c3Im1B2E7spp4EajRMDjrj3u SZRzm43l74CjSONKlQSWGFsZ6os8d6KeaPeVoXUErXbBzEUvWW6CxGvllcioV6EBW6Hm rVww== X-Gm-Message-State: APjAAAUIpYp590lWBpUx6WFSxeBf+Q5dnOtqm7Z8kyr/SEayZapV11wX KpkvN2kFzo8m5QF8BXme/MgHUXgqkXDa8+AlJ10Jig== X-Google-Smtp-Source: APXvYqw4RDiI4K/VPqS1MbofLs1GqgpqXkPekh5VhS/LePc85AYdo9CbtBtML8WFRR5Ti92ntU4yrcTGVXnPaSTHpWU= X-Received: by 2002:ab0:484c:: with SMTP id c12mr2797180uad.57.1557217032542; Tue, 07 May 2019 01:17:12 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Andy Talbot Date: Tue, 7 May 2019 09:16:47 +0100 Message-ID: To: "rsgb_lf_group@blacksheep.org" , rsgb-lf-group@groups.io X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "relay1.thorcom.net", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: I know there are plenty of software authors here ... So asking in case anyone knows . How can I change the default soundcard (playback or recording) from INSIDE a piece of software I want to control which device a .wav file is played back from using the basic sndPlaySound call (or it's equivalents in high level languages). I really don't want to have to go into the whole WAVEOUT [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:935 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andy.g4jnt[at]gmail.com) 0.0 HTML_MESSAGE BODY: HTML included in message -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-Scan-Signature: ce0e5a4ae990e5a63db3ab7aea21191b Subject: LF: Changing default soundcard in Windows in software Content-Type: multipart/alternative; boundary="000000000000101e6e058847d8b6" X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on post.thorcom.com X-Spam-Level: X-Spam-Status: No, hits=0.5 required=5.0 tests=HTML_40_50,HTML_MESSAGE autolearn=no version=2.63 X-SA-Exim-Scanned: Yes Sender: owner-rsgb_lf_group@blacksheep.org Precedence: bulk Reply-To: rsgb_lf_group@blacksheep.org X-Listname: rsgb_lf_group X-SA-Exim-Rcpt-To: rs_out_1@blacksheep.org X-SA-Exim-Scanned: No; SAEximRunCond expanded to false --000000000000101e6e058847d8b6 Content-Type: text/plain; charset="UTF-8" I know there are plenty of software authors here ... So asking in case anyone knows . How can I change the default soundcard (playback or recording) from INSIDE a piece of software I want to control which device a .wav file is played back from using the basic sndPlaySound call (or it's equivalents in high level languages). I really don't want to have to go into the whole WAVEOUT saga just to use something other than the default soundcard allocated at the time. I know the default can be set the Sound Mixer, but this is a need to do it from inside software. Preferably via a WinAPI call Andy www.g4jnt.com --000000000000101e6e058847d8b6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I know there are plenty of software authors here= ...
So asking in case anyone knows .
=

<= /div>
How can I change the default= soundcard (playback or recording) from INSIDE a piece of software

I want to control whi= ch device a .wav file is played back from using the basic sndPlaySound call= (or it's equivalents in high level languages).=C2=A0 =C2=A0I really do= n't want to have to go into the whole WAVEOUT saga just=C2=A0 to use so= mething other than the default soundcard allocated at the time.

I know the default can b= e set the Sound Mixer, but this is a need to do it from inside software.=C2= =A0 =C2=A0Preferably via a WinAPI call
=C2=A0
--000000000000101e6e058847d8b6--