xians@webrtc.org
cf1b6aec30
iReduced the flakiness of the volume tests in linux pulseaudio
...
Review URL: https://webrtc-codereview.appspot.com/390013
git-svn-id: http://webrtc.googlecode.com/svn/trunk@1774 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-02-27 17:22:49 +00:00
henrike@webrtc.org
70efc3250d
Factory method for the ADM in the interface file.
...
BUG=N/A
TEST=no
Review URL: https://webrtc-codereview.appspot.com/396017
git-svn-id: http://webrtc.googlecode.com/svn/trunk@1753 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-02-23 17:45:33 +00:00
xians@webrtc.org
6eb0ca2e75
Two problems are fixed:
...
#1 , avoid leaving the lock without entering the lock.
#2 , race problems in variables like _playError, _recError, _recWarning, _playWarning.
Review URL: https://webrtc-codereview.appspot.com/400006
git-svn-id: http://webrtc.googlecode.com/svn/trunk@1751 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-02-23 10:39:53 +00:00
leozwang@webrtc.org
4ad4c24092
Add android to audio device module
...
Review URL: https://webrtc-codereview.appspot.com/402001
git-svn-id: http://webrtc.googlecode.com/svn/trunk@1745 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-02-22 16:04:59 +00:00
xians@webrtc.org
20aabbb0be
Remove the deprecated kTraceModuleCall trace from audio device module.
...
Review URL: https://webrtc-codereview.appspot.com/396011
git-svn-id: http://webrtc.googlecode.com/svn/trunk@1729 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-02-20 09:17:41 +00:00
braveyao@webrtc.org
590e5eb283
Convert audio layer to WAV on Vista RTM(without any Service Pack)
...
Review URL: https://webrtc-codereview.appspot.com/397001
git-svn-id: http://webrtc.googlecode.com/svn/trunk@1702 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-02-16 03:21:05 +00:00
xians@webrtc.org
3dbed8597e
This CL makes the playout delay value thread safe.
...
With the patch, _sndCardPlayDelay is calculated in the DoRenderThread instead of capture thread, an capture thread only gets the _sndCardPlayDelay value.
And _sndCardPlayDelay and _sndCardRecDelay are only changed to be Atomic32 to make them to be accessed by multiple threads.
Test=None
Bug=256
Review URL: https://webrtc-codereview.appspot.com/394001
git-svn-id: http://webrtc.googlecode.com/svn/trunk@1653 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-02-09 13:50:48 +00:00
phoglund@webrtc.org
78088c2f36
Removed warnings on Windows and enabled warnings-as-errors on Windows.
...
BUG=
TEST=
Review URL: https://webrtc-codereview.appspot.com/377004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@1624 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-02-07 14:56:45 +00:00
mflodman@webrtc.org
c80d9d9361
Removed default cases causing clang errors, -Wcovered-switch-default.
...
BUG=
TEST=Bulid with clang version 3.1 (trunk 148911)
Review URL: https://webrtc-codereview.appspot.com/379008
git-svn-id: http://webrtc.googlecode.com/svn/trunk@1604 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-02-06 10:11:25 +00:00
phoglund@webrtc.org
d1a860b415
Fixed GCC 4.6 errors (mostly 'unused variable' errors and incorrect usage of EXPECT_EQ with booleans.
...
Fixed remaining compilation errors in release, etc.
Fixed errors from GCC 4.6 compilation.
BUG=
TEST=
Review URL: https://webrtc-codereview.appspot.com/366008
git-svn-id: http://webrtc.googlecode.com/svn/trunk@1554 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-01-26 14:49:28 +00:00
braveyao@webrtc.org
5f9a7baaea
Review URL: http://webrtc-codereview.appspot.com/347012
...
git-svn-id: http://webrtc.googlecode.com/svn/trunk@1423 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-01-13 10:22:44 +00:00
braveyao@webrtc.org
e3eaf44ccf
one logical enhancement in CoreAudio error handler. It should never happen, but so far the only suspect to a rare crash report.
...
Review URL: http://webrtc-codereview.appspot.com/349002
git-svn-id: http://webrtc.googlecode.com/svn/trunk@1382 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-01-11 03:07:52 +00:00
pwestin@webrtc.org
c450a19669
Removed Version function from all modules.
...
TBR=henrik_a
Review URL: http://webrtc-codereview.appspot.com/329023
git-svn-id: http://webrtc.googlecode.com/svn/trunk@1330 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-01-04 15:00:12 +00:00
punyabrata@webrtc.org
8fa31bc4e5
Truncated messages, need a %S instead of $s for a double byte TCHAR
...
Review URL: http://webrtc-codereview.appspot.com/333002
git-svn-id: http://webrtc.googlecode.com/svn/trunk@1321 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-01-03 22:34:15 +00:00
xians@webrtc.org
0744ee563d
Disable API tests on ALSA since the tests don't work for all the alsa devices.
...
Review URL: http://webrtc-codereview.appspot.com/317004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@1147 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-12-09 14:05:29 +00:00
andrew@webrtc.org
b0be7aa7ae
Remove deprecated OS X Core Audio APIs.
...
We no longer support the 10.4 SDK, so we can remove the weak-leaking
feature and exclusively use the added-in-10.5 APIs.
BUG=issue143
TEST=voe_auto_test
Review URL: http://webrtc-codereview.appspot.com/322001
git-svn-id: http://webrtc.googlecode.com/svn/trunk@1136 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-12-08 20:15:36 +00:00
xians@webrtc.org
eff3c8905f
this patch fixes the valgrind warnings in the adm api test for pulseaudio in linux.
...
Review URL: http://webrtc-codereview.appspot.com/301012
git-svn-id: http://webrtc.googlecode.com/svn/trunk@1108 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-12-06 10:02:56 +00:00
punyabrata@webrtc.org
c1ed87602a
Adding some error handling functionality in the windows audio core implementation to
...
stop rendering automatically and throw a playout-error callback when RequestPlayoutData
fails
Review URL: http://webrtc-codereview.appspot.com/300003
git-svn-id: http://webrtc.googlecode.com/svn/trunk@1080 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-12-01 17:55:35 +00:00
andrew@webrtc.org
587c844741
Query the capture volume immediately on Win Core.
...
This allows the capture volume to be queried immediately at capture
startup, rather than waiting the usual one second interval.
Review URL: http://webrtc-codereview.appspot.com/297003
git-svn-id: http://webrtc.googlecode.com/svn/trunk@1064 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-11-30 17:43:05 +00:00
punyabrata@webrtc.org
c9801465b6
Adding a check to ensure that the memcpy does not exceed bounds of the arrays.
...
Review URL: http://webrtc-codereview.appspot.com/290007
git-svn-id: http://webrtc.googlecode.com/svn/trunk@1055 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-11-29 18:49:54 +00:00
braveyao@webrtc.org
0a18522e1b
Add support to 96kHz sampling rate to Windows CoreAudio interface.
...
Review URL: http://webrtc-codereview.appspot.com/295003
git-svn-id: http://webrtc.googlecode.com/svn/trunk@1018 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-11-25 02:45:39 +00:00
kjellander@webrtc.org
543c3eaa46
Fixing Release compilation errors
...
Review URL: http://webrtc-codereview.appspot.com/267026
git-svn-id: http://webrtc.googlecode.com/svn/trunk@1000 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-11-23 12:20:35 +00:00
braveyao@webrtc.org
7d3e9498bc
This CL is to support certain audio devices which don't offer volume control. Try to be more compatible to those rare cases.
...
Review URL: http://webrtc-codereview.appspot.com/276011
git-svn-id: http://webrtc.googlecode.com/svn/trunk@997 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-11-23 03:35:42 +00:00
andrew@webrtc.org
5a529395aa
Make DMO init safe when not supported.
...
BUG=issue133
TEST=voe_auto_test
Review URL: http://webrtc-codereview.appspot.com/284001
git-svn-id: http://webrtc.googlecode.com/svn/trunk@990 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-11-22 18:04:26 +00:00
braveyao@webrtc.org
f556b9d1f4
This modification is supposed to fix the webrtc issue 144/145. With this fix, people could set/get mic volume before StartSend().
...
Review URL: http://webrtc-codereview.appspot.com/277007
git-svn-id: http://webrtc.googlecode.com/svn/trunk@971 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-11-18 02:17:28 +00:00
kjellander@webrtc.org
c05b56a38b
Fixing compilation error
...
Review URL: http://webrtc-codereview.appspot.com/276010
git-svn-id: http://webrtc.googlecode.com/svn/trunk@961 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-11-17 08:59:48 +00:00
kjellander@webrtc.org
0403ef419f
Restructuring and adding unit test targets on project level instead of in common_audio.
...
Review URL: http://webrtc-codereview.appspot.com/280001
git-svn-id: http://webrtc.googlecode.com/svn/trunk@959 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-11-17 08:35:47 +00:00
punyabrata@webrtc.org
81d4499dee
Microphone volume on Mac not being printed properly due
...
to a mismatch in variable type. Additionally, now printing
a volume that will range from 0 - 255
Review URL: http://webrtc-codereview.appspot.com/267016
git-svn-id: http://webrtc.googlecode.com/svn/trunk@951 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-11-16 02:06:49 +00:00
andrew@webrtc.org
6a85b17a0a
Potential fix for crash after Mac sleep.
...
When a Mac goes to sleep, the OS pauses the IO threads. If a
subsequent StopSend/Playout happens, we time out waiting for the IO
threads, but didn't ensure they were shut down.
BUG=
TEST=voe_cmd_test, voe_auto_test
Review URL: http://webrtc-codereview.appspot.com/269013
git-svn-id: http://webrtc.googlecode.com/svn/trunk@949 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-11-15 16:23:41 +00:00
andrew@webrtc.org
0db7dc6e18
Add file-playing channels to voe_cmd_test.
...
Fix file reading and writing.
TEST=voe_cmd_test
Review URL: http://webrtc-codereview.appspot.com/279001
git-svn-id: http://webrtc.googlecode.com/svn/trunk@938 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-11-13 01:34:05 +00:00
braveyao@webrtc.org
1f6d740571
This CL is about to manually reset the ShutdownRenderEvent at StopPlayout().
...
It could happen that if you want to restart playout, the new sponsored Render thread would catch this event
if the previous Render thread quits before this event is set.
With this modification, the device plugging out/in during talking would be supported well.
Review URL: http://webrtc-codereview.appspot.com/248002
git-svn-id: http://webrtc.googlecode.com/svn/trunk@839 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-10-28 21:30:30 +00:00
henrika@webrtc.org
bdb55c806f
This CL is an attempt to remove a crash we can see when closing down VoiceEgine.
...
It can happen that the capture thread tries to access an invalid object after StopPlayout has been called.
I have also extended the usage of the new ScopedCOMInitializer to all threads. See this step as code cleanup.
Review URL: http://webrtc-codereview.appspot.com/239014
git-svn-id: http://webrtc.googlecode.com/svn/trunk@813 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-10-25 11:03:28 +00:00
henrika@webrtc.org
a6c23357c0
Solves crash in ADM API unit test for Core Audio on Windows
...
Review URL: http://webrtc-codereview.appspot.com/244009
git-svn-id: http://webrtc.googlecode.com/svn/trunk@812 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-10-25 08:31:33 +00:00
henrika@webrtc.org
5423bc2d0b
Adds correct absolute paths to all input files in ADM functional unit tests.
...
Files are now read and played out correctly.
Review URL: http://webrtc-codereview.appspot.com/246006
git-svn-id: http://webrtc.googlecode.com/svn/trunk@811 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-10-25 08:24:20 +00:00
henrika@webrtc.org
bf478faebb
Ensures that ADM unit tests builds on all platforms.
...
Review URL: http://webrtc-codereview.appspot.com/240009
git-svn-id: http://webrtc.googlecode.com/svn/trunk@800 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-10-24 10:31:02 +00:00
henrika@webrtc.org
cedbb036d1
[Issue 101] Solves memory leak on Windows
...
git-svn-id: http://webrtc.googlecode.com/svn/trunk@784 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-10-20 12:11:45 +00:00
andrew@webrtc.org
b2d4921f3b
Remove trailing whitespace in AudioDevice.
...
(That I introduced...)
Review URL: http://webrtc-codereview.appspot.com/198002
git-svn-id: http://webrtc.googlecode.com/svn/trunk@703 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-10-06 16:34:36 +00:00
leozwang@google.com
522f42bb80
Add kPlatformAndroid to platform check function
...
Review URL: http://webrtc-codereview.appspot.com/161002
git-svn-id: http://webrtc.googlecode.com/svn/trunk@622 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-09-19 17:39:05 +00:00
andrew@webrtc.org
b524f441d0
Correct some comment spelling errors. Skipping review.
...
Review URL: http://webrtc-codereview.appspot.com/144002
git-svn-id: http://webrtc.googlecode.com/svn/trunk@594 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-09-13 18:04:30 +00:00
andrew@webrtc.org
a3c6d61c44
Integrate the built-in WASAPI AEC DMO to VoE.
...
Review URL: http://webrtc-codereview.appspot.com/108006
git-svn-id: http://webrtc.googlecode.com/svn/trunk@592 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-09-13 17:17:49 +00:00
xians@google.com
d3185fe219
refactor the gyp file to gypi file.
...
Basically, the gypi file is a copy of gyp file, but has some difference on the
path of the dependencies.
Review URL: http://webrtc-codereview.appspot.com/137020
git-svn-id: http://webrtc.googlecode.com/svn/trunk@581 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-09-12 12:24:39 +00:00
henrika@google.com
73d65513f1
Adds reference counting to the ADM.
...
This CL modifies the ADM interface to ensure that an external ADM
can't call Create and Destroy any longer.
It also contains some minor style nits to conform better with
the Chromium style guide.
Review URL: http://webrtc-codereview.appspot.com/133014
git-svn-id: http://webrtc.googlecode.com/svn/trunk@552 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-09-07 15:11:18 +00:00
punyabrata@google.com
eba8c32840
Resolving a race condition issue related to using shared devices
...
(e.g. usb headsets) where we were not stopped the shared callback
until both StopPlayout() and StopRecording() are called. Google
internal bugid 4478351
Review URL: http://webrtc-codereview.appspot.com/130001
git-svn-id: http://webrtc.googlecode.com/svn/trunk@489 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-08-30 14:32:22 +00:00
xians@google.com
e74a9ea303
AudioDeviceUtility::WaitForKey() pulls two characters if the first one is a newline, but discards the final value.
...
The current code assigns that second value to a local variable, which generates a set-but-unused warning on gcc 4.6.0. Instead, cast the result away.
I also refactor the code a bit by adding the right indentation and removing empty lines.
Bug=http://code.google.com/p/webrtc/issues/detail?id=53
Test=none
Review URL: http://webrtc-codereview.appspot.com/135005
git-svn-id: http://webrtc.googlecode.com/svn/trunk@486 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-08-30 08:27:02 +00:00
xians@google.com
932096c84f
Porting gtalk alsa impl from depot to webrtc
...
Review URL: http://webrtc-codereview.appspot.com/123002
git-svn-id: http://webrtc.googlecode.com/svn/trunk@484 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-08-30 07:41:55 +00:00
xians@webrtc.org
c57f9c38ad
Using IAudioEndpointVolume in IsSpeakerMuteAvailable and IsMicrophoneMuteAvailable to be consistent with SpeakerMute and MicrophoneMute APIs.
...
Review URL: http://webrtc-codereview.appspot.com/112007
git-svn-id: http://webrtc.googlecode.com/svn/trunk@458 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-08-26 12:28:33 +00:00
frkoenig@google.com
cf36b2aa9b
Match new[] / delete []
...
Quiet valgrind warnings by correctly matching
new[] with delete[].
Review URL: http://webrtc-codereview.appspot.com/126005
git-svn-id: http://webrtc.googlecode.com/svn/trunk@437 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-08-24 15:48:47 +00:00
xians@webrtc.org
9d64705dea
The method AudioDeviceWindowsWave::RecProc can use uninitialized variables t1 and t2.
...
This results in an exception in debug mode and unpredictable behavior in release mode.
The problem is at line 3514:
// Calculate processing time
consumedTime = (int)(t2.QuadPart-t1.QuadPart);
Bug=http://code.google.com/p/webrtc/issues/detail?id=42
Test=none
Review URL: http://webrtc-codereview.appspot.com/121002
git-svn-id: http://webrtc.googlecode.com/svn/trunk@419 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-08-23 09:14:56 +00:00
punyabrata@webrtc.org
5895ea1573
Fixes volume problem controls, happening with some Logitech headsets. Originally submitted as gips p4 depot CL 38122.
...
Review URL: http://webrtc-codereview.appspot.com/116008
git-svn-id: http://webrtc.googlecode.com/svn/trunk@418 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-08-22 22:46:38 +00:00
punyabrata@google.com
9695e75fbd
Resolve a crash related to pulseAudio where we need to check if
...
pa_context_get_source_info_by_name/pa_context_get_sink_info_by_name
has early failure and returns NULL,then to avoid WaitForOperationCompletion
from crashing, paOperation must be checked to ensure it is not NULL.
Please note that ::WaitForOperationCompletion( ) is a void function
therefore returning without any error code if paOperation is indeed NULL
Google internal bug id [4356730]
Review URL: http://webrtc-codereview.appspot.com/122003
git-svn-id: http://webrtc.googlecode.com/svn/trunk@417 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-08-22 22:35:14 +00:00