[Bug 28027] New: μ-law rendering with pauses and repetitions
http://bugs.winehq.org/show_bug.cgi?id=28027 Summary: μ-law rendering with pauses and repetitions Product: Wine Version: 1.3.26 Platform: x86 OS/Version: Mac OS X Status: UNCONFIRMED Severity: normal Priority: P2 Component: mmdevapi AssignedTo: wine-bugs(a)winehq.org ReportedBy: hoehle(a)users.sourceforge.net CC: aeikum(a)codeweavers.com On MacOS, playing the 11kulaw.wav sample from the MCI shell causes intermittent pauses (of variable duration, roughly ~0.5s). After each pause, sound does not necessarily resume where it left off, but the audible output is correct (μ-law was decoded). MCI shell (bug #20232, comment #10): wine wintest.exe mcishell open 11kulaw.wav alias u play u from 0 close u By contrast, rendering IMA_ADPCM works. The difference is that ADPCM goes through Wine's codec, while μ-law is apparently handled by MacOS, as you can tell from the missing fixme:g711:G711_StreamSize lines that appear on Linux (or in older versions of Wine on MacOS, e.g. 1.1.35). trace:coreaudio:AudioClient_Initialize (0x11d7b0)->(0, c0000, f4240, c350, 0x139 438, {d7875583-d596-4af9-9c30-7755c50b26f8}) trace:coreaudio:dump_fmt wFormatTag: 0x7 (Unknown) trace:coreaudio:dump_fmt nChannels: 1 trace:coreaudio:dump_fmt nSamplesPerSec: 11025 trace:coreaudio:dump_fmt nAvgBytesPerSec: 11025 trace:coreaudio:dump_fmt nBlockAlign: 1 trace:coreaudio:dump_fmt wBitsPerSample: 8 One possible fix might be to have mmdevapi refuse all but linear PCM. Perhaps this particular bug is nevertheless interesting because it might reveal faults in the handling of the Mac OS audio units. After all, μ-law might be transparent to the player because its samples/sec, blockalign etc. look exactly like linear PCM. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=28027 --- Comment #1 from Jörg Höhle <hoehle(a)users.sourceforge.net> 2011-09-19 09:41:48 CDT --- That bug is caused by waveform.c:WOD_PushData filling up the whole buffer with silence when the queue is empty. The queue is empty on MacOS because of bug #28093. See bug #27937 for another issue caused by writing silence. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=28027 Raymond <superquad.vortex2(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |superquad.vortex2(a)gmail.com --- Comment #2 from Raymond <superquad.vortex2(a)gmail.com> 2011-09-24 22:23:38 CDT --- For alsa, au88x0 are the only pci sound cards which support u law and a law using wine 1.3.29 and fallback "sysdefault" of pulse plugin seem bug since the messages are repeated many times when playing fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 10000 channels, pretending there's only 2 channels pulseaudio -k;./wine ../wintest.exe mcishell I: caps.c: Limited capabilities successfully to CAP_SYS_NICE. I: caps.c: Dropping root privileges. I: caps.c: Limited capabilities successfully to CAP_SYS_NICE. E: main.c: Failed to kill daemon: No such process fixme:service:scmdatabase_autostart_services Auto-start service L"DXDebug" failed to start: 2 mci.c:178: Type your commands to the MCI, end with Ctrl-Z/^D open ../11kulaw.wav alias u mci.c:188: command: open ../11kulaw.wav alias u mci.c:193: Response: 1 play u from 0 mci.c:188: command: play u from 0 fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 10000 channels, pretending there's only 2 channels fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 10000 channels, pretending there's only 2 channels fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 10000 channels, pretending there's only 2 channels fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 10000 channels, pretending there's only 2 channels fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 10000 channels, pretending there's only 2 channels fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 10000 channels, pretending there's only 2 channels fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 10000 channels, pretending there's only 2 channels fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 10000 channels, pretending there's only 2 channels fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 10000 channels, pretending there's only 2 channels fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 10000 channels, pretending there's only 2 channels fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 10000 channels, pretending there's only 2 channels fixme:g711:G711_StreamSize fixme:g711:G711_StreamSize close u mci.c:188: command: close u fixme:console:CONSOLE_DefaultHandler Terminating process 8 on event 0 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=28027 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |1.4.0 --- Comment #3 from Austin English <austinenglish(a)gmail.com> 2011-10-09 15:23:01 CDT --- Sound bug => 1.4 milestone. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=28027 --- Comment #4 from Raymond <superquad.vortex2(a)gmail.com> 2011-10-09 18:35:48 CDT --- μ-law , a-law and iadpcm are 4bits, may be some part of the code use wBitsPerSample / 8 http://source.winehq.org/git/wine.git/commitdiff/ad75d9a21722a9516b50868b1ec... Refer to above patch why Average bytes per second is 5588 at 11025Hz wfa.wfx.nSamplesPerSec=11025; wfa.wfx.nAvgBytesPerSec=5588 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=28027 Jörg Höhle <hoehle(a)users.sourceforge.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED --- Comment #5 from Jörg Höhle <hoehle(a)users.sourceforge.net> 2011-11-01 04:44:53 CDT --- Fixed by http://source.winehq.org/git/wine.git/commit/1cde966c35dcb0b5dc7bc5a6c42b788... winmm is no more writing silence.
why Average bytes per second is 5588 at 11025Hz It's more than 4/8 because there's some overhead.
-- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=28027 Jörg Höhle <hoehle(a)users.sourceforge.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |1cde966c35dcb0b5dc7bc5a6c42 | |b788f6d8f561c -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=28027 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #6 from Alexandre Julliard <julliard(a)winehq.org> 2011-11-04 14:14:33 CDT --- Closing bugs fixed in 1.3.32. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
participants (1)
-
wine-bugs@winehq.org