| 1 | X-Account-Key: account2
|
|---|
| 2 | X-UIDL: <603740-2008-0930-123226-13658@ispmxmss03.windstream.net>
|
|---|
| 3 | X-Mozilla-Status: 0013
|
|---|
| 4 | X-Mozilla-Status2: 00000000
|
|---|
| 5 | Return-Path: <portaudio-bounces@techweb.rfa.org>
|
|---|
| 6 | Received: from ispmxaamta07-gx.windstream.net ([66.208.60.24])
|
|---|
| 7 | by ispmxmta12-srv.windstream.net with ESMTP
|
|---|
| 8 | id <20080930173226.ZSRA9353.ispmxmta12-srv.windstream.net@ispmxaamta07-gx.windstream.net>
|
|---|
| 9 | for <gidluck@alltel.net>; Tue, 30 Sep 2008 12:32:26 -0500
|
|---|
| 10 | Received: from techweb.rfa.org ([66.208.60.24])
|
|---|
| 11 | by ispmxaamta07-gx.windstream.net with ESMTP
|
|---|
| 12 | id <20080930173226.QVYQ8401.ispmxaamta07-gx.windstream.net@techweb.rfa.org>
|
|---|
| 13 | for <gidluck@alltel.net>; Tue, 30 Sep 2008 12:32:26 -0500
|
|---|
| 14 | Received: from techweb.rfa.org (localhost.localdomain [127.0.0.1])
|
|---|
| 15 | by techweb.rfa.org (Postfix) with ESMTP id 0D4ECD6C88;
|
|---|
| 16 | Tue, 30 Sep 2008 13:31:55 -0400 (EDT)
|
|---|
| 17 | Delivered-To: portaudio@techweb.rfa.org
|
|---|
| 18 | Received: from orm.enotty.net (orm.enotty.net [217.155.224.221])
|
|---|
| 19 | by techweb.rfa.org (Postfix) with ESMTP id 0A60FD6E14
|
|---|
| 20 | for <portaudio@techweb.rfa.org>; Tue, 30 Sep 2008 13:31:28 -0400 (EDT)
|
|---|
| 21 | Received: from obsidian.enotty.net ([217.155.224.220])
|
|---|
| 22 | by orm.enotty.net with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32)
|
|---|
| 23 | (Exim 4.63) (envelope-from <sb-lst@enotty.net>)
|
|---|
| 24 | id 1Kkj3X-0001RN-5g; Tue, 30 Sep 2008 18:30:39 +0100
|
|---|
| 25 | Received: from localhost ([127.0.0.1] helo=obsidian.enotty.net)
|
|---|
| 26 | by obsidian.enotty.net with esmtp (Exim 4.69)
|
|---|
| 27 | (envelope-from <sb-lst@enotty.net>)
|
|---|
| 28 | id 1Kkj3O-0007UB-1F; Tue, 30 Sep 2008 18:30:30 +0100
|
|---|
| 29 | Date: Tue, 30 Sep 2008 18:30:30 +0100
|
|---|
| 30 | Message-ID: <87d4ilv8w9.wl@obsidian.enotty.net>
|
|---|
| 31 | From: Stelios Bounanos <sb-lst@enotty.net>
|
|---|
| 32 | To: portaudio@techweb.rfa.org
|
|---|
| 33 | In-Reply-To: <48CD34F7.60900@alltel.net>
|
|---|
| 34 | References: <48AEBD7D.9030802@sygyt.com>
|
|---|
| 35 | <010501c90661$30e3a730$0b00a8c0@rossmacbook>
|
|---|
| 36 | <48CD34F7.60900@alltel.net>
|
|---|
| 37 | User-Agent: Wanderlust/2.15.6 (Almost Unreal) Emacs/23.0.60.1 (Debian)
|
|---|
| 38 | X-Face: _>CZ{PP8LMzNr2bB6(]k5WpkR;
|
|---|
| 39 | 1K_~Um'nJq#FZq8,c$sf\/z%Ln4v7X2k8<.jJEPTnq!#N
|
|---|
| 40 | SIK)-G%n<9&>#'o(Q7otm9r*UTfdZKu
|
|---|
| 41 | X-Attribution: sb
|
|---|
| 42 | X-PGP-Key: http://enotty.net/sb-gpg-pub.asc
|
|---|
| 43 | MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka")
|
|---|
| 44 | X-rfa-techweb-MailScanner: Found to be clean, Found to be clean
|
|---|
| 45 | X-rfa-techweb-MailScanner-SpamCheck: not spam, SpamAssassin (not cached,
|
|---|
| 46 | score=-3.243, required 6, autolearn=not spam, AWL -0.64,
|
|---|
| 47 | BAYES_00 -2.60, SPF_HELO_PASS -0.00), not spam, SpamAssassin (cached,
|
|---|
| 48 | score=-3.163, required 6, autolearn=not spam, AWL -0.56,
|
|---|
| 49 | BAYES_00 -2.60, SPF_HELO_PASS -0.00)
|
|---|
| 50 | Cc: Gordon Gidluck <gidluck@alltel.net>
|
|---|
| 51 | Subject: Re: [Portaudio] CreateThread vs. _beginthreadex in WMME
|
|---|
| 52 | X-BeenThere: portaudio@techweb.rfa.org
|
|---|
| 53 | X-Mailman-Version: 2.1.9
|
|---|
| 54 | Precedence: list
|
|---|
| 55 | List-Id: Portaudio Mailing List <portaudio.techweb.rfa.org>
|
|---|
| 56 | List-Unsubscribe: <http://techweb.rfa.org/mailman/listinfo/portaudio>,
|
|---|
| 57 | <mailto:portaudio-request@techweb.rfa.org?subject=unsubscribe>
|
|---|
| 58 | List-Archive: <http://techweb.rfa.org/pipermail/portaudio>
|
|---|
| 59 | List-Post: <mailto:portaudio@techweb.rfa.org>
|
|---|
| 60 | List-Help: <mailto:portaudio-request@techweb.rfa.org?subject=help>
|
|---|
| 61 | List-Subscribe: <http://techweb.rfa.org/mailman/listinfo/portaudio>,
|
|---|
| 62 | <mailto:portaudio-request@techweb.rfa.org?subject=subscribe>
|
|---|
| 63 | Content-Type: text/plain; charset="us-ascii"
|
|---|
| 64 | Content-Transfer-Encoding: 7bit
|
|---|
| 65 | Sender: portaudio-bounces@techweb.rfa.org
|
|---|
| 66 | Errors-To: portaudio-bounces@techweb.rfa.org
|
|---|
| 67 | X-rfa-techweb-MailScanner-From: portaudio-bounces@techweb.rfa.org
|
|---|
| 68 | X-Cloudmark-Analysis: v=1.0 c=1 a=FzLEsc44_lMA:10 a=4ahWgtOr4jAA:10 a=oOE5mZu8+yHL2XNsYUwqZA==:17 a=w_pzkKWiAAAA:8 a=BDktQ--kAAAA:8 a=3DJzGCkn4tyJkKXHR2oA:9 a=hkIfk_z7bEFtSdRcHEkA:7 a=vS3pq78Y3qh3Uce41FnwMSnsSK0A:4 a=_KtGf5bnNxAA:10 a=50e4U0PicR4A:10
|
|---|
| 69 |
|
|---|
| 70 | Hi,
|
|---|
| 71 |
|
|---|
| 72 | >>>>> On Sun, 14 Sep 2008 10:59:51 -0500, Gordon Gidluck <gidluck@alltel.net> said:
|
|---|
| 73 |
|
|---|
| 74 | > Ross,
|
|---|
| 75 | > Changes are committed in SVN for pa_win_wmme.c and pa_win_wdmks.c .
|
|---|
| 76 | > There is a small issue with data types with wasapi and I have emailed
|
|---|
| 77 | > David Viens hoping that he can look into that.
|
|---|
| 78 |
|
|---|
| 79 | > The V19 code builds on Visual Studio 2008. I just had to download ASIO
|
|---|
| 80 | > code from Steinberg and also get a DirectX SDK from Microsoft for the build.
|
|---|
| 81 | > VS2008 converts two files (.sln and .vcproj) when importing the Visual
|
|---|
| 82 | > Studio 2005 project.
|
|---|
| 83 |
|
|---|
| 84 | SVN changeset 1388 ("change CreateThread to _beginthreadex") breaks
|
|---|
| 85 | compilation on cygwin:
|
|---|
| 86 |
|
|---|
| 87 | % ./configure --prefix=/usr/local/portaudio --enable-static --disable-shared
|
|---|
| 88 | % make
|
|---|
| 89 | % make install
|
|---|
| 90 | % cd test
|
|---|
| 91 | % gcc -o pa_devs.exe pa_devs.c $(pkg-config --cflags --libs portaudio-2.0)
|
|---|
| 92 | /usr/local/portaudio/lib/libportaudio.a(pa_win_wmme.o): In function `StartStream':
|
|---|
| 93 | /usr/local/src/portaudio/trunk/src/hostapi/wmme/pa_win_wmme.c:3247: undefined reference to `__beginthreadex'
|
|---|
| 94 | collect2: ld returned 1 exit status
|
|---|
| 95 |
|
|---|
| 96 | It works with that changeset reverted.
|
|---|
| 97 |
|
|---|
| 98 | The _beginthreadex function is specific to Microsoft's toolchain:
|
|---|
| 99 |
|
|---|
| 100 | http://www.cygwin.com/ml/cygwin/2005-01/msg00892.html
|
|---|
| 101 |
|
|---|
| 102 | The above thread, as well as the following email, also suggest that
|
|---|
| 103 | there is no memory leak associated with CreateThread on cygwin:
|
|---|
| 104 |
|
|---|
| 105 | http://cygwin.com/ml/cygwin/2001-07/msg01176.html
|
|---|
| 106 |
|
|---|
| 107 | Since cygwin's gcc defines __GNUC__ and __CYGWIN__ it would be trivial
|
|---|
| 108 | to call _beginthreadex or CreateThread with a preprocessor conditional.
|
|---|
| 109 |
|
|---|
| 110 |
|
|---|
| 111 | Regards,
|
|---|
| 112 | Stelios.
|
|---|
| 113 | _______________________________________________
|
|---|
| 114 | Portaudio mailing list
|
|---|
| 115 | Portaudio@techweb.rfa.org
|
|---|
| 116 | http://techweb.rfa.org/mailman/listinfo/portaudio
|
|---|
| 117 |
|
|---|