Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(153)

Side by Side Diff: Source/modules/webaudio/AudioContext.cpp

Issue 403013002: Rename WebCore to blink in Modules (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/modules/webaudio/AudioContext.h ('k') | Source/modules/webaudio/AudioDestinationNode.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010, Google Inc. All rights reserved. 2 * Copyright (C) 2010, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 #endif 69 #endif
70 70
71 #include "wtf/ArrayBuffer.h" 71 #include "wtf/ArrayBuffer.h"
72 #include "wtf/Atomics.h" 72 #include "wtf/Atomics.h"
73 #include "wtf/PassOwnPtr.h" 73 #include "wtf/PassOwnPtr.h"
74 #include "wtf/text/WTFString.h" 74 #include "wtf/text/WTFString.h"
75 75
76 // FIXME: check the proper way to reference an undefined thread ID 76 // FIXME: check the proper way to reference an undefined thread ID
77 const WTF::ThreadIdentifier UndefinedThreadIdentifier = 0xffffffff; 77 const WTF::ThreadIdentifier UndefinedThreadIdentifier = 0xffffffff;
78 78
79 namespace WebCore { 79 namespace blink {
80 80
81 bool AudioContext::isSampleRateRangeGood(float sampleRate) 81 bool AudioContext::isSampleRateRangeGood(float sampleRate)
82 { 82 {
83 // FIXME: It would be nice if the minimum sample-rate could be less than 44. 1KHz, 83 // FIXME: It would be nice if the minimum sample-rate could be less than 44. 1KHz,
84 // but that will require some fixes in HRTFPanner::fftSizeForSampleRate(), a nd some testing there. 84 // but that will require some fixes in HRTFPanner::fftSizeForSampleRate(), a nd some testing there.
85 return sampleRate >= 44100 && sampleRate <= 96000; 85 return sampleRate >= 44100 && sampleRate <= 96000;
86 } 86 }
87 87
88 // Don't allow more than this number of simultaneous AudioContexts talking to ha rdware. 88 // Don't allow more than this number of simultaneous AudioContexts talking to ha rdware.
89 const unsigned MaxHardwareContexts = 6; 89 const unsigned MaxHardwareContexts = 6;
(...skipping 871 matching lines...) Expand 10 before | Expand all | Expand 10 after
961 } 961 }
962 962
963 void AudioContext::trace(Visitor* visitor) 963 void AudioContext::trace(Visitor* visitor)
964 { 964 {
965 visitor->trace(m_renderTarget); 965 visitor->trace(m_renderTarget);
966 visitor->trace(m_destinationNode); 966 visitor->trace(m_destinationNode);
967 visitor->trace(m_listener); 967 visitor->trace(m_listener);
968 EventTargetWithInlineData::trace(visitor); 968 EventTargetWithInlineData::trace(visitor);
969 } 969 }
970 970
971 } // namespace WebCore 971 } // namespace blink
972 972
973 #endif // ENABLE(WEB_AUDIO) 973 #endif // ENABLE(WEB_AUDIO)
OLDNEW
« no previous file with comments | « Source/modules/webaudio/AudioContext.h ('k') | Source/modules/webaudio/AudioDestinationNode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698