summaryrefslogtreecommitdiffstats
path: root/media/audio/simple_sources.h
diff options
context:
space:
mode:
authorhenrika@chromium.org <henrika@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-29 08:30:19 +0000
committerhenrika@chromium.org <henrika@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-29 08:30:19 +0000
commit59404dd4e61e8d92aaf05a7c2457100eb4897b46 (patch)
treea2f336e1ec6b461a47ffcfe87dfd61b411db9be8 /media/audio/simple_sources.h
parent9e36ea471ba30805197bc62c8bef7c1926dbcb39 (diff)
downloadchromium_src-59404dd4e61e8d92aaf05a7c2457100eb4897b46.zip
chromium_src-59404dd4e61e8d92aaf05a7c2457100eb4897b46.tar.gz
chromium_src-59404dd4e61e8d92aaf05a7c2457100eb4897b46.tar.bz2
This patch ensures that the audio_output_win_unittest works for AUDIO_PCM_LOW_LATENCY.
It seems like only test which utilized AUDIO_PCM_LOW_LATENCY has been broken for a while. It was most likely I who broke it when I added support for WASAPI output. Anyhow, in this patch, I ensure that we can still test using the low-larency flag. A buffer size of 10ms is used on Vista and higher (<=> WASAPI) and 50ms is used (as before) in XP. I have also modified the sinus source since it contained two issues actually. 1) It did not store a valid state between each frame (=> distorsion at end-points). 2) The volume 2^15 was too high and could lead to odd effects for negative numbers. Both these things are fixed in this CL and all tones now sounds better. The old tones were all distorted. BUG=none TEST=audio_output_win_unittest Review URL: http://codereview.chromium.org/8678012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111890 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/audio/simple_sources.h')
-rw-r--r--media/audio/simple_sources.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/media/audio/simple_sources.h b/media/audio/simple_sources.h
index dd2782c..a4373a0 100644
--- a/media/audio/simple_sources.h
+++ b/media/audio/simple_sources.h
@@ -36,6 +36,7 @@ class MEDIA_EXPORT SineWaveAudioSource
int channels_;
double freq_;
double sample_freq_;
+ int time_state_;
};
// Defines an interface for pushing audio output. In contrast, the interfaces