Fwd: Re: kernel32/tests: Add tests for job objects (try 7)

2013-10-11 Thread Andrew Cook
(no idea why my client sent this to wine-patches) On 10/10/13 15:23, Andrew Cook wrote: > --- > dlls/kernel32/tests/process.c | 159 > +- > include/winbase.h | 1 + > include/winnt.h | 90

Re: rpcss: Convert to a service

2013-10-02 Thread Andrew Cook
Ignore this, for some reason this randomly forks a huge number of rpcss instances, and decided to not do so while i was testing it On 03/10/13 14:00, Andrew Cook wrote: > --- > dlls/rpcrt4/rpc_epmap.c | 40 --- > programs/rpcss/Makefile.in | 2 +- > pr

Re: [PATCH] dsound: fixup IDirectSoundCaptureBuffer_QueryInterface

2013-10-01 Thread Andrew Eikum
Seems reasonable, but could you put together some tests to show this? Andrew On Sat, Sep 28, 2013 at 10:41:15AM +0200, Maarten Lankhorst wrote: > diff --git a/dlls/dsound/capture.c b/dlls/dsound/capture.c > index 40f1702..0fe300c 100644 > --- a/dlls/dsound/capture.c > +++ b/dlls/dsou

Re: ntdll/tests: Add tests for job objects. (try 2)

2013-09-06 Thread Andrew Cook
On 06/09/13 17:12, Frédéric Delanoy wrote: > On Fri, Sep 6, 2013 at 5:41 AM, Andrew Cook wrote: >> --- >> dlls/ntdll/tests/Makefile.in | 1 + >> dlls/ntdll/tests/job.c | 151 >> +++ >> include/winnt.h

Re: ntdll: Implement job objects

2013-08-27 Thread Andrew Cook
On 27/08/13 22:02, Dmitry Timoshkov wrote: > Andrew Cook wrote: >> --- a/include/wine/server_protocol.h >> +++ b/include/wine/server_protocol.h > > And don't include autogenerated stuff in the patch. > Is there anything about this on the wiki? i wasn't sure ho

Re: RFC: winedev guide multimedia chapter patch

2013-08-21 Thread Andrew Eikum
NMM wave output device. This should be changed in the > + winmm wave output device. This should be changed in the > future. > This whole paragraph can actually be removed. The dsound object it refers to no longer exists. Thanks for updating this, Andrew

Re: winmm: fix WOD_Open() WAVE_MAPPER no-device case.

2013-08-20 Thread Andrew Eikum
l. Thanks for the fix! Andrew

Re: winmm: fix WOD_Open() WAVE_MAPPER no-device case.

2013-08-20 Thread Andrew Eikum
hat, too, if you want. Or I'll submit a patch myself later. Andrew

Re: Process for reporting security bugs?

2013-08-12 Thread Andrew Church
k -- reported as http://bugs.winehq.org/show_bug.cgi?id=22450) so I just added a comment onto the bug. Thanks, --Andrew Church achu...@achurch.org http://achurch.org/

Re: Process for reporting security bugs?

2013-08-12 Thread Andrew Church
ws applications from reading your entire filesystem! In addition to the Windows share, malicious programs could detect that they are running under Wine and execute native Linux system calls to get around any restrictions imposed by Wine. Consider running programs you don't trust in a virtua

Process for reporting security bugs?

2013-08-12 Thread Andrew Church
fore posting the bug in a publicly visible manner. Thanks, --Andrew Church achurch+wine-de...@achurch.org http://achurch.org/

Re: [2/2] wineserver: perform access check when creating event objects (try 2)

2013-08-08 Thread Andrew Cook
g CreateEventEx with generic flags fails to correctly set permissions, the patch as it stands though will likely cause regressions. On 02/08/13 21:58, Andrew Cook wrote: > --- > dlls/ntdll/tests/om.c | 4 ++-- > server/event.c| 5 + > 2 files changed, 3 insertions(+), 6 deletions(-) > >

Re: winmm: Standardize and simplify two error messages.

2013-07-10 Thread Andrew Eikum
e through the registry: http://wiki.winehq.org/MIDI I think your change is clearly an improvement. Andrew

Re: po: Update Simplified Chinese translation. (newer)

2013-07-05 Thread Andrew Eikum
s to eCommunications. So, "human voice" is the intended meaning. Hope this clears it up! Andrew On Fri, Jul 05, 2013 at 11:43:23PM +0800, Qian Hong wrote: > Hi Andrew, > > While discussing the translation of 'Voice output device' and 'Voice > input devic

Re: Add tests for ntdll event functions

2013-06-03 Thread Andrew Cook
ing an event, the handle is allocated with alloc_handle_no_access_check, which does not call event_map_access this causes event_op and event_query to fail, as the handle only has GENERIC_ALL, not the actual event permissions, which does not match windows behaviour (or at least windows 7 anyway),

Re: [PATCH (try 2)] dsound: Copy SetFormat format more directly if we're not in PRIMARYWRITE mode

2013-05-29 Thread Andrew Eikum
nstead of reassigning > primary_pwfx to NULL? > CopyFormat will only return NULL if HeapAlloc fails (actually, CopyFormat will probably crash). I've stopped caring about out of memory conditions since they add way too much error handling code and we can't reasonably recover from them anyway. Andrew

Re: [PATCH 2/5] dinput: Support SendForceFeedbackCommand for OSX joysticks

2013-05-22 Thread Andrew Eikum
ir corresponding Win32 codes. > Interesting, thanks. I'll go back and fix this. Andrew

Re: [PATCH 2/3] oleaut32: COM cleanup for ITypeInfo object

2013-05-09 Thread Andrew Eikum
, too. Whichever. Andrew On Wed, May 08, 2013 at 03:12:45PM -0500, Andrew Eikum wrote: > --- > dlls/oleaut32/typelib.c | 30 +++--- > 1 file changed, 15 insertions(+), 15 deletions(-) > > diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c > inde

Re: msvcp60: Avoid signed-unsigned integer comparisons

2013-03-11 Thread Andrew Talbot
larmbr zhan wrote: > On Sun, Mar 10, 2013 at 5:48 AM, Andrew Talbot > wrote: >> msvcp60: Avoid signed-unsigned integer comparisons. > > > Hi, Andrew Talbot. > > I find that you are working on these "Avoid signed-unsigned integer > comparisons" things

Re: [PATCH] dsound: copy program parameters in SetFormat

2013-02-13 Thread Andrew Eikum
applies with an offset and the Wine patch tracker didn't like this: > --- a/dlls/dsound/primary.c > +++ a/dlls/dsound/primary.c but git-am imported the raw mail file just fine. Andrew

Re: winmm: More compatible waveIn/Out[Un]Prepare WHDR_* flag handling.

2013-02-13 Thread Andrew Eikum
> >IMHO calling named winmm:xyz functions should be equivalent to dispatching > >MM* messages > > I forgot to add that I'm still surprised that Andrew Eikum could reimplement > waveIn/OutMessage *without* using MMDRV_Message by simply returning > MMSYSERR_NOTSUPPORT

Re: RFC: Remove auto-scan of ALSA devices from winealsa.drv (and get repeatable behaviour)

2013-01-22 Thread Andrew Eikum
On Tue, Jan 22, 2013 at 11:15:59AM +0100, joerg-cyril.hoe...@t-systems.com wrote: > Andrew Eikum was in favour of this too and since implemented winmm > device notification upon change. Remember the December thread: > http://www.winehq.org/pipermail/wine-devel/2012-December/098114.html

Re: [PATCH 1/5] dsound: rework ugly mixer logic

2013-01-15 Thread Andrew Eikum
On Tue, Jan 15, 2013 at 06:51:59PM +0100, Maarten Lankhorst wrote: > Op 07-01-13 16:58, Andrew Eikum schreef: > > This patch breaks the sound on Zaxxon[1] on both CoreAudio and ALSA > > without PulseAudio. I didn't test OSS. It skips around on the ship's > > shooting

Re: Wine Wiki needs your help!

2013-01-14 Thread Andrew Eikum
org/SheriOci?action=recall&rev=1 I don't know if there's a way to keep Moinmoin from preserving revision history on deleted pages, but it might be sufficient to simply disable that. I doubt there's much useful history on deleted pages anyway. Andrew

Re: [PATCH] [2/2] kernel32/tests: Add test with a large string for CompareStringA.

2013-01-08 Thread Andrew Eikum
0b5. > Maybe avoid that particular sequence of bits ;) <http://lkml.org/lkml/2012/7/18/625> Andrew

Re: [PATCH] dsound: rework ugly mixer logic

2012-12-31 Thread Andrew Eikum
On Mon, Dec 31, 2012 at 07:03:31PM +0100, Maarten Lankhorst wrote: > Op 31-12-12 17:59, Andrew Eikum schreef: > > On Sat, Dec 29, 2012 at 01:24:03AM +0100, Maarten Lankhorst wrote: > >> + if(!maxq){ > >> + /* nothing to do! */ > >> + L

Re: [PATCH] dsound: rework ugly mixer logic

2012-12-31 Thread Andrew Eikum
AUDCLNT_STREAMFLAGS_EVENTCALLBACK, 80, 0, device->pwfx, > NULL); ... > +frames = (UINT64)device->pwfx->nSamplesPerSec * 80 / 1000; Could you #define the 80? Anyway, I gave it a test on ALSA+Pulse and didn't find any issues. I'll test the other backends when you resubmit. Andrew

Re: oleaut32: Indentation fix (Try 2)

2012-12-20 Thread Andrew Talbot
Sorry, I should have labelled this patch as "Try 2". -- Andy.

Re: dsound: use event based threads, v2

2012-12-20 Thread Andrew Eikum
Looks good to me, no problems with any of the drivers. I think it'd be good to get it in on Monday, as release day is tomorrow, but that's not my call. Andrew On Wed, Dec 19, 2012 at 10:30:04AM +0100, Maarten Lankhorst wrote: > Use a thread instead of a timer for greater precision.

Re: mmdevapi: Avoid lock contention after SetEvent.

2012-12-20 Thread Andrew Eikum
our synchronization methods well enough to know if this is correct. Is it true that SetEvent() causes a context switch? I see it eventually resolves down to a write() in , but I don't know what that implies. Julliard, any thoughts? Andrew

Re: dsound: change mix rate of primary buffer

2012-12-18 Thread Andrew Eikum
you planning to use this for? We could support different mix buffer formats, but I'm not sure this use case is worth the effort. Andrew

Re: winealsa: Separate read and write pointers.

2012-12-18 Thread Andrew Eikum
that into Wine after the next release? Andrew

Re: dsound: change mix rate of primary buffer

2012-12-18 Thread Andrew Eikum
orts efficiently. This requires some more intelligence in AudioClient_GetMixFormat in , which currently probes for capabilities and chooses the best available format. Andrew

Re: gdi32: Indentation fix

2012-12-15 Thread Andrew Talbot
Dmitry Timoshkov wrote: > Andrew Talbot wrote: > >> Changelog: >> gdi32: Indentation fix. > > Please keep 4 spaces indentation without tabs. > Thus far, I have fixed the bits of code that are misleadingly indented using the same indentation regime as the sur

Re: RFC: Remove auto-scan of ALSA devices from winealsa.drv

2012-12-12 Thread Andrew Eikum
On Wed, Dec 12, 2012 at 04:45:11PM +0100, Henri Verbeet wrote: > On 12 December 2012 16:31, Andrew Eikum wrote: > > Even ignoring the Pulse case, we don't have an acceptable enumeration > > API. > Yes, I know. I just don't think it would be unreasonable to try to >

Re: RFC: Remove auto-scan of ALSA devices from winealsa.drv

2012-12-12 Thread Andrew Eikum
On Wed, Dec 12, 2012 at 03:57:40PM +0100, Henri Verbeet wrote: > On 12 December 2012 15:28, Andrew Eikum wrote: > > It's tricky because ALSA and PulseAudio have different theories about > > where device selection should occur -- in the application or in the > > audio m

Re: RFC: Remove auto-scan of ALSA devices from winealsa.drv

2012-12-12 Thread Andrew Eikum
t yet. I don't think lacking that interface prevents us from doing this particular enhancement, though. Andrew

Re: RFC: Remove auto-scan of ALSA devices from winealsa.drv

2012-12-12 Thread Andrew Eikum
to use "default" or allow the user to specify their own device. That seems like a fine compromise. So it seems reasonable to me to list only "default", but also provide an easy way to add new devices. Forcing users like Max to go to regedit in every new prefix to add a new audio device really sucks. This means some sort of driver-specific dialog in winecfg (or control panel?). That sucks too, but I think it's the least-bad solution. Andrew

Re: [PATCH] winmm: Don't mask out SND_ALIAS_ID or SND_FILENAME in sndPlaySound

2012-12-05 Thread Andrew Eikum
On Thu, Dec 06, 2012 at 12:14:53AM +0800, Dmitry Timoshkov wrote: > Andrew Eikum wrote: > > > > > The call is only supposed to return TRUE or FALSE, so I guess it's > > > > checking that the return value isn't 3 or something. Not very useful, > > >

Re: [PATCH] winmm: Don't mask out SND_ALIAS_ID or SND_FILENAME in sndPlaySound

2012-12-05 Thread Andrew Eikum
On Wed, Dec 05, 2012 at 11:21:39PM +0800, Dmitry Timoshkov wrote: > Andrew Eikum wrote: > > The call is only supposed to return TRUE or FALSE, so I guess it's > > checking that the return value isn't 3 or something. Not very useful, > > sure, but it look

Re: [PATCH] winmm: Don't mask out SND_ALIAS_ID or SND_FILENAME in sndPlaySound

2012-12-05 Thread Andrew Eikum
On Wed, Dec 05, 2012 at 11:06:48PM +0800, Dmitry Timoshkov wrote: > Andrew Eikum wrote: > > > > > +br = sndPlaySoundA((LPCSTR)SND_ALIAS_SYSTEMASTERISK, > > > > SND_ALIAS_ID|SND_SYNC); > > > > +ok(br == TRUE || br == FALSE, "sndPl

Re: [PATCH] winmm: Don't mask out SND_ALIAS_ID or SND_FILENAME in sndPlaySound

2012-12-05 Thread Andrew Eikum
On Wed, Dec 05, 2012 at 11:59:01AM +0800, Dmitry Timoshkov wrote: > Andrew Eikum wrote: > > > +br = sndPlaySoundA((LPCSTR)SND_ALIAS_SYSTEMASTERISK, > > SND_ALIAS_ID|SND_SYNC); > > +ok(br == TRUE || br == FALSE, "sndPlaySound gave strange return: > >

Re: [PATCH] dsound: Use event based threads

2012-12-03 Thread Andrew Eikum
plug openal in as the last step. Andrew

Re: [PATCH] dsound: Use event based threads

2012-11-30 Thread Andrew Eikum
On Thu, Nov 29, 2012 at 12:50:20PM +0100, Maarten Lankhorst wrote: > Op 21-11-12 19:16, Maarten Lankhorst schreef: > > Signed-off-by: Maarten Lankhorst > > > Bump, anything wrong with this patch? > Been spending my "Wine time" on Bug 32297 this week. I'll take a look at this shortly. Andrew

Re: Explicit fall-through in switch statements?

2012-11-26 Thread Andrew Talbot
Perhaps I should add that the list is of caseS/defaultS that may be fallen through to, rather than out from. Unfortunately,because I produced it in a hurry, it does contain the odd copy-and-paste error for case names (e.g., the case for dmusic/collection.c line 409 should be default:, not case 8:,

Re: Explicit fall-through in switch statements?

2012-11-26 Thread Andrew Talbot
Vincent Povirk wrote: > It might be useful to post a listing of the files where unmarked > fall-throughs (falls-through?) appear, and I could see if any of them > are on my turf. Here is a rough-and-ready list of where they are. dlls/msvcp100/exception.c (line 498) case EXCEPTION: dlls/msvcp100/

Re: msvcp60: Remove superfluous semicolons

2012-11-26 Thread Andrew Talbot
Jacek Caban wrote: > It's probably better to change the macro to require the semicolon. > > Jacek The reason I did it that way was because there are two variants of the DEFINE_CXX_DATA macro, surrounded by an #ifndef construct: one comprising three struct declarations, all ending in semicolons,

Re: Explicit fall-through in switch statements?

2012-11-26 Thread Andrew Talbot
Frédéric Delanoy wrote: > For every wine version, static checkers (like coverity) detect cases > where a switch case automatically falls-through to the next case. > > Shouldn't be there a rule that such cases are always marked with a > "fall-through comment"? > With the possible exception of case

Re: [PATCH v4] dsound: create a primary_pwfx separately from pwfx

2012-11-21 Thread Andrew Eikum
Yeah, that fixes the problem. This patch looks good to me now. Andrew On Fri, Nov 16, 2012 at 08:35:51PM +0100, Maarten Lankhorst wrote: > I promised I would never touch it, but then I wanted to play skyrim > > V2: Limit channels to 2 in primary if not in writeprimary mode > V

Re: mciavi: Fix player deadlock when starting to play.

2012-11-12 Thread Andrew Eikum
Seems reasonable to me. Thanks for working on this old code. On Thu, Nov 08, 2012 at 10:51:08AM +0100, joerg-cyril.hoe...@t-systems.com wrote: >

Re: [PATCH 3/3] winmm: Call IsFormatSupported for WAVE_FORMAT_QUERY only.

2012-10-26 Thread Andrew Eikum
Ran tests on all four backends and everything seems okay. On Fri, Oct 26, 2012 at 10:31:33AM +0200, joerg-cyril.hoe...@t-systems.com wrote: > Hi, > > With the previous code in place, we can derive sane values for > WAVE_FORMAT_QUERY. > > Given the amount of work and side-effects that the audio

Re: [PATCH 3/6] dsound: create a primary_pwfx separately from pwfx

2012-10-22 Thread Andrew Eikum
On Sat, Oct 20, 2012 at 12:13:08AM +0200, Maarten Lankhorst wrote: > Hey, > > Op 19-10-12 15:29, Andrew Eikum schreef: > > Patches 1 and 2 in this series look fine. > > > > I have a series of patches similar to this one in my dsound > > multichannel branch. This p

Re: [PATCH 5/6] dsound: rework ugly mixer logic

2012-10-22 Thread Andrew Eikum
On Sat, Oct 20, 2012 at 12:03:55AM +0200, Maarten Lankhorst wrote: > Op 19-10-12 15:54, Andrew Eikum schreef: > > Mostly good cleanup in this one. Some thoughts below... > > > > On Tue, Oct 16, 2012 at 02:06:29PM +0200, Maarten Lankhorst wrote: > >> diff --git a/dlls/

Re: [PATCH 4/6] dsound: Use event based threads

2012-10-22 Thread Andrew Eikum
On Fri, Oct 19, 2012 at 11:33:22PM +0200, Maarten Lankhorst wrote: > Op 19-10-12 15:40, Andrew Eikum schreef: > > I'm a big fan of error checking (or at least reporting), so these > > unchecked calls make me nervous. They'll probably never fail, but if > > they do,

Re: [PATCH 6/6] dsound: remove now unused variables

2012-10-19 Thread Andrew Eikum
Be nice if you could split this up and squash it into the previous patches. Andrew On Tue, Oct 16, 2012 at 02:06:30PM +0200, Maarten Lankhorst wrote: > From: Maarten Lankhorst > > No longer influence anything, so zap them. > --- > dlls/dsound/dsound_main.c| 17 --

Re: [PATCH 5/6] dsound: rework ugly mixer logic

2012-10-19 Thread Andrew Eikum
MulDiv(device->pwfx->nBlockAlign, > device->pwfx->nSamplesPerSec, 100); > -}else > -ret = MulDiv(device->pwfx->nSamplesPerSec * > device->pwfx->nBlockAlign, period, 1000); > - > -ret -= ret % device->pwfx->nBlockAlign; > -return ret; > -} > - ... > +device->fraglen = MulDiv(device->pwfx->nSamplesPerSec, period, 1000) > * device->pwfx->nBlockAlign; This should be a separate patch. I don't have an argument /against/ it, but why do you prefer 10ms over whatever the driver prefers? Andrew

Re: [PATCH 4/6] dsound: Use event based threads

2012-10-19 Thread Andrew Eikum
the event fires periodically */ > +IAudioClient_Start(device->client); > + > +IAudioClient_GetStreamLatency(device->client, &period); I'm a big fan of error checking (or at least reporting), so these unchecked calls make me nervous. They'll probably never fail, but if they do, I think they should fail loudly. Andrew

Re: [PATCH 3/6] dsound: create a primary_pwfx separately from pwfx

2012-10-19 Thread Andrew Eikum
n't reviewed it lately; it might not even work), but it should show you what I had in mind for this kind of cleanup. I can bump those up in priority, but I don't think this blocks patches 4-6 in this series anyway. Andrew ds_mc.tar.gz Description: Binary data

Re: [PATCH 10/25] mciseq: Limit concurrency when starting to play.

2012-10-08 Thread Andrew Eikum
ve's headers don't give us MIDI symbols, and there are a lot to define. So maybe it's not worth it. Anyway, something to think about cleaning up in the future. Thanks for improving this code! Andrew

Re: [PATCH] dmusic: Add master clock tests.

2012-09-24 Thread Andrew Eikum
On Sun, Sep 23, 2012 at 08:44:59PM +0200, Christian Costa wrote: > @@ -66,6 +68,11 @@ static void test_dmusic(void) > return; > } > > +hr = IDirectMusic_GetMasterClock(dmusic, &guid_clock, &clock); > +ok(hr == S_OK, "IDirectMusic_GetMasterClock returned: %x\n", hr); > +o

very slow updating of client area

2012-09-16 Thread Andrew Makhorin
Hello, Please see below a function that processes WM_PAINT message. Being run under Wine this function updates the client area (50x120 chars) about 50 times slower than under Windows XP. Could anyone please explain me what might be wrong and suggest how to fix that? Thank you, Andrew Makhorin

Re: Investigating iexplore/activex issues

2012-07-27 Thread Andrew Eikum
ly well, so I might be able to help answer questions if your problem turns up in that area. You may also have to look into one of the various IDispatch implementations, like . Anyway, hope that helps guide you towards the right source files and log channels, at least. Andrew

Re: dsound: Add detection of output format and allow a maximum of 8 channels

2012-07-14 Thread Andrew Eikum
On Sat, Jul 14, 2012 at 05:00:02PM +1000, Donny Yang wrote: > Andrew, I've removed the two driver edits. IAudioClient_GetMixFormat() > needs an initialised client parameter which doesn't exist in > DirectSoundDevice_Create(), so it can only be done after the client is >

Re: dsound: Add support for adjusting volume of more than 2 channels

2012-07-13 Thread Andrew Eikum
GHT; > + else { > + FIXME("There is no support for %u channels without an > extensible wave format\n", channels); > return; > } Before you resend, please consider testing how Windows behaves in this condition. Does it actually refuse to apply any volume at all? Andrew

Re: dsound: Add detection of output format and allow a maximum of 8 channels

2012-07-13 Thread Andrew Eikum
is->ss.format = PA_SAMPLE_INVALID; > switch(fmt->wFormatTag) { > case WAVE_FORMAT_IEEE_FLOAT: > -if (!fmt->nChannels || fmt->nChannels > 2 || fmt->wBitsPerSample != > 32) > +if (!fmt->nChannels || fmt->nChannels > 8 || fmt->wBitsPerSample != > 32) > break; > This->ss.format = PA_SAMPLE_FLOAT32LE; > pa_channel_map_init_auto(&This->map, fmt->nChannels, > PA_CHANNEL_MAP_ALSA); > break; > case WAVE_FORMAT_PCM: > -if (!fmt->nChannels || fmt->nChannels > 2) > +if (!fmt->nChannels || fmt->nChannels > 8) > break; > if (fmt->wBitsPerSample == 8) > This->ss.format = PA_SAMPLE_U8; Wine doesn't have a PulseAudio driver yet, so this chunk won't apply. Andrew

Re: [PATCH] winepulse.drv: Add PulseAudio driver

2012-06-18 Thread Andrew Eikum
On Mon, Jun 18, 2012 at 08:49:55AM -0700, Chris Robinson wrote: > On Monday, June 18, 2012 9:31:04 AM Andrew Eikum wrote: > > Yeah, I experimented with ADJUST_LATENCY, as it seems to be the trick > > to getting lower latencies. Then we have to maintain our own buffer, > > wh

Re: [PATCH] winepulse.drv: Add PulseAudio driver

2012-06-18 Thread Andrew Eikum
. wonderful API, isn't it? Your mail makes me think I should go back to the pulse-independent timer setup. That is, write to Pulse during the CreateTimerQueueTimer() callback. I have a strong feeling I've been down that path before, but I could give it another shot. Thanks again, Andrew

Re: [PATCH (try2)] winepulse.drv: Add PulseAudio driver

2012-06-15 Thread Andrew Eikum
to reproduce it on a Debian 6 VM, as well. Now I just need to find a better way to check if PA is running. Andrew

Re: [PATCH (try2)] winepulse.drv: Add PulseAudio driver

2012-06-14 Thread Andrew Eikum
On Wed, Jun 13, 2012 at 09:02:33PM +0200, Alexandre Julliard wrote: > Andrew Eikum writes: > > > The configure.ac changes and parts of the driver itself were written by > > Maarten Lankhorst. > > It doesn't work here, it's apparently using the driver even tho

Re: [PATCH variant 1] dsound: use a low-quality FIR for games

2012-05-22 Thread Andrew Eikum
ng. That should explain what's going on here. We could test this on Gyb's machine by setting DefaultSampleRate=22050 and hacking to return S_OK without actually changing the primary buffer's format. That should give GTA:SA similar cp_fields performance to Darwinia, and I expect it would fix the lag issue. Andrew

Re: [PATCH 1/4] dsound: Remove minlen, since we always mix full chunks anyway

2012-05-15 Thread Andrew Eikum
On Tue, May 15, 2012 at 12:33:25PM +0600, Alexander E. Patrakov wrote: > Andrew Eikum wrote: > > - > > - TRACE("Mixed at least %d from all buffers\n", minlen); > > - return minlen; > > Hi. You have removed the message that could say "Mixed at least

Re: [PATCH] winmm: Don't call MMDevAPI during process exit

2012-05-10 Thread Andrew Eikum
On Thu, May 10, 2012 at 08:29:25AM +0200, Alexandre Julliard wrote: > Andrew Eikum writes: > > > --- > > This fixes bug 30631, introduced by > > 31291cdc6ccc4c172ccf86f383c6a90f31a50ba1. > > > > In addition to safely exiting on process exit, we do much more &g

Re: [PATCH] dmusic: Variable spelling fix.

2012-05-10 Thread Andrew Eikum
hr = IStream_Read(stream, data, size, &read); > if(FAILED(hr)){ I called it that to prevent shadowing read(3). It probably doesn't matter since we almost never use that call in Wine, but that was the rationale. Andrew

Re: [PATCH] winealsa.drv: Init *num to 0 (Coverity)

2012-04-16 Thread Andrew Eikum
On Mon, Apr 16, 2012 at 11:53:00AM -0500, Andrew Eikum wrote: > On Mon, Apr 16, 2012 at 09:09:58AM +0200, Marcus Meissner wrote: > > Also initialize a "may be uninitialized" value the compiler sees. > > Of course I quoted the wrong section of your mail :) > > No

Re: [PATCH] winealsa.drv: Init *num to 0 (Coverity)

2012-04-16 Thread Andrew Eikum
verity oversight. I'd either leave it as-is, or also remove the *num=0 from alsa_enum_devices. Andrew > Ciao, Marcus > --- > dlls/winealsa.drv/mmdevdrv.c |3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/dlls/winealsa.drv/mmdevdrv.c b/dlls/

Re: WASAPI ISimpleAudioVolume::SetMasterVolume appears to not work

2012-04-16 Thread Andrew Eikum
Wine do this. We would need to build a software mixer into Wine to do volume control, and we don't have that (yet). Andrew

Re: winealsa: Fix an uninitialized variable compiler warning.

2012-04-06 Thread Andrew Eikum
Thanks. GCC 4.7 must be smart enough to detect the same if-conditions, and doesn't issue a warning for me. Kind of impressive, actually. Andrew On Fri, Apr 06, 2012 at 02:49:38AM +0200, Józef Kucia wrote: > --- > dlls/winealsa.drv/mmdevdrv.c |2 +- > 1 files changed, 1 in

Re: [PATCH 3/3] dmsynth: Put port caps that match native ones.

2012-03-30 Thread Andrew Eikum
On Fri, Mar 30, 2012 at 12:33:51PM +0200, joerg-cyril.hoe...@t-systems.com wrote: > Andrew Eikum asked Christian Costa: > >Just to be clear, which "native" do you mean? Does this match Windows > >7's dmusic behavior, or something else? I've been trying to target

Re: [PATCH 2/5] dmusic: Enumerate ports for midi out and midi in devices in EnumPort.

2012-03-29 Thread Andrew Eikum
On Thu, Mar 29, 2012 at 04:18:20PM +0200, Christian Costa wrote: > It's the original code. I decided to keep it in this patch and add error > checking in the patch that comes just after. > I can merge them but I prefer to do things incrementally as much as > possible. Ah, sure enough. I missed tha

Re: [PATCH 3/3] dmsynth: Put port caps that match native ones.

2012-03-29 Thread Andrew Eikum
Just to be clear, which "native" do you mean? Does this match Windows 7's dmusic behavior, or something else? I've been trying to target Windows 7's behavior in the new audio design. Also... On Thu, Mar 29, 2012 at 08:53:52AM +0200, Christian Costa wrote: > - obj->pCaps.dwEffectFlags = DMUS_E

Re: [PATCH 2/5] dmusic: Enumerate ports for midi out and midi in devices in EnumPort.

2012-03-29 Thread Andrew Eikum
On Thu, Mar 29, 2012 at 08:52:45AM +0200, Christian Costa wrote: > +midiOutGetDevCapsW(index - 1, &caps, sizeof(caps)); > ... > +CoCreateInstance(&CLSID_DirectMusicSynth, NULL, > CLSCTX_INPROC_SERVER, &IID_IDirectMusicSynth8, (void**)&synth); > +IDirectMusicSynth8_GetPo

Re: [PATCH 5/5] dmusic: Implement partially SetDirectSound.

2012-03-29 Thread Andrew Eikum
It would be nice to see some tests for this. For example, how does this IDirectSound reference relate to the one created by IDirectMusicPerformance::InitAudio()? On Thu, Mar 29, 2012 at 08:53:10AM +0200, Christian Costa wrote: > > --- > dlls/dmusic/dmusic.c | 27 +--

RFC: Duplicate in/out device naming

2012-03-27 Thread Andrew Eikum
it is arguably an application bug? Try to guess at the device type, and insert names like "Speakers" and "Microphone" into the MMDevAPI device name, even if that might be wrong? Thoughts? Andrew

Re: Instructions for using JACK with with Wine's ALSA output on wiki: reverted twice

2012-03-12 Thread Andrew Eikum
On Mon, Mar 12, 2012 at 07:18:39AM -0600, Vitaliy Margolen wrote: > On 03/12/2012 06:11 AM, Andrew Eikum wrote: > >On Sun, Mar 11, 2012 at 10:15:40AM -0600, Vitaliy Margolen wrote: > >>That information simply does not belong on Wine wiki. It talks about > >>making Jac

Re: Instructions for using JACK with with Wine's ALSA output on wiki: reverted twice

2012-03-12 Thread Andrew Eikum
find. There is no emergency here that could not have been better resolved by a discussion over email. The fact that you've been specifically called out in two threads in one weekend might be a hint that it is _your_ behavior that is inappropriate. Andrew

Re: Major mmdevapi and winmm audio bugs

2012-02-28 Thread Andrew Eikum
On Tue, Feb 28, 2012 at 08:24:37AM -0600, Andrew Eikum wrote: > I'm investigating native TimerQueue's operation now. If it turns out > that TimerQueue isn't sufficient, we'll probably just switch over to > using poll() like winmm's timer stuff does. > And, n

Re: Major mmdevapi and winmm audio bugs

2012-02-28 Thread Andrew Eikum
;ve also been burned enough times by relying on the audio backend to work correctly that I hesitate to give the backends more responsibility than absolutely necessary. I'm investigating native TimerQueue's operation now. If it turns out that TimerQueue isn't sufficient, we'll probably just switch over to using poll() like winmm's timer stuff does. Andrew

Re: dsound: Small fixes to IDirectSoundCaptureBuffer

2012-02-27 Thread Andrew Eikum
This patch looks sane and fixes the tests on my machine, but causes no changes to dsound capture behavior in Audacity. I don't have much of an opinion on if it should go in for 1.4. On Tue, Feb 21, 2012 at 05:33:35PM +0100, Maarten Lankhorst wrote: > --- > I suspect a lot more AUDCLNT_E_* calls wi

Re: winmm: Allow new sounds to interrupt previous PlaySound invocations.

2012-02-16 Thread Andrew Eikum
On Thu, Feb 16, 2012 at 10:10:09AM +0100, joerg-cyril.hoe...@t-systems.com wrote: > Hi, > > this fixes bug #28413. > Thanks Jörg, looks sane to me and I can confirm it fixes the problem. Andrew

Re: winealsa.drv patch to enum all software devices from .asoundrc

2012-02-14 Thread Andrew Eikum
nalysis. Here's a patch. It uses pipes to separate device names, since I know commas are meaningful in ALSA. Perhaps that's not enough, and we need to do quoting? In any case, this patch ought to be enough to satisfy users for 1.4. Any thoughts, anyone? Andrew >From 9fd014ff6535493cc4

Re: winealsa.drv patch to enum all software devices from .asoundrc

2012-02-13 Thread Andrew Eikum
istry entry would be fine with me. Here's a stupid registry entry patch. The paths are: HKCU\Software\Wine\Drivers\winealsa.drv\ALSAOutputDevice HKCU\Software\Wine\Drivers\winealsa.drv\ALSAInputDevice If we can't reach a sensible consensus about device enumeration sometime this week,

Re: winealsa.drv patch to enum all software devices from .asoundrc

2012-02-13 Thread Andrew Eikum
(Jorg has a patchset that does most of this). Unfortunately, we'd potentially be presenting broken devices to the user, but I think it's probably better than trying to guess if a device is broken like we do now. Andrew

Re: winealsa.drv patch to enum all software devices from .asoundrc

2012-02-09 Thread Andrew Eikum
g to Follow all instructions. What is my mistake? > I just meant that it wasn't correct for sending to wine-patches. Basically, just make your changes as a commit in Git, and then use git-format-patch to create a patch file. You can attach that to your email and send it. Take a look at some mails here <http://source.winehq.org/patches/> for an idea of what your mail (or attachment) should look like when you send it. You can also find more information here: <http://wiki.winehq.org/GitWine> Andrew

Re: winealsa.drv patch to enum all software devices from .asoundrc

2012-02-09 Thread Andrew Eikum
On Tue, Feb 07, 2012 at 11:32:34PM +0200, Нискородов Серёжа wrote: > Perhaps the code is not so clear and beautiful, but it works for me, > and maybe someone wants to send it to the repository, or to correct > and send a corrected. One more thing, this messes up the default device selection, which

Re: winealsa.drv patch to enum all software devices from .asoundrc

2012-02-09 Thread Andrew Eikum
It's not bad at all! After fixing the little stuff above, you can send it to wine-patches yourself. Please read <http://wiki.winehq.org/SubmittingPatches>; your wine-devel mail was not formatted correctly. Andrew

Re: winmm: TRACE unhandled messages

2012-02-08 Thread Andrew Eikum
ng useful there, but I can't figure out how to get at it. Using the simpler case of WODM_GETNUMDEVS also failed in every case. > If Wine does not map these, all we'll get to "hear" in AppDB is that attentive > people miss sound or music that they remember listening to 10 years ago on > native. > Well, hopefully they would also file bugs :) Andrew

Re: winecoreaudio.drv: Improve underrun handling

2012-01-30 Thread Andrew Eikum
rent time when we detect an underrun (although detecting when the queue is empty needs some work, as Ken pointed out). In ALSA, we use snd_pcm_recover() after underruns, but AudioQueue doesn't seem to have an analogous function that works well. Andrew

Re: winecoreaudio.drv: Improve underrun handling

2012-01-30 Thread Andrew Eikum
esn't matter? > >if(list_count(...) == 0) > I once wrote a patch to turn such a pattern into if(list_empty(...)) > Oops, I forgot that existed. I'll fix that in the next version. Andrew

Re: [PATCH 2/3] winecoreaudio: Implement the lock-free callback design.

2012-01-30 Thread Andrew Eikum
patch seems fine. Andrew

Re: [PATCH 2/2] winmm: Restore useful MMSYSERR_* codes at open time.

2012-01-27 Thread Andrew Eikum
ather than put S_FALSE->BADFORMAT into the generic conversion. Andrew

  1   2   3   4   5   6   7   8   >