OLD | NEW |
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 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 #if ENABLE(WEB_AUDIO) | 31 #if ENABLE(WEB_AUDIO) |
32 | 32 |
33 #include "platform/audio/AudioChannel.h" | 33 #include "platform/audio/AudioChannel.h" |
34 | 34 |
35 #include <math.h> | 35 #include <math.h> |
36 #include <algorithm> | 36 #include <algorithm> |
37 #include "platform/audio/VectorMath.h" | 37 #include "platform/audio/VectorMath.h" |
38 #include "wtf/OwnPtr.h" | 38 #include "wtf/OwnPtr.h" |
39 | 39 |
40 namespace WebCore { | 40 namespace blink { |
41 | 41 |
42 using namespace VectorMath; | 42 using namespace VectorMath; |
43 | 43 |
44 void AudioChannel::resizeSmaller(size_t newLength) | 44 void AudioChannel::resizeSmaller(size_t newLength) |
45 { | 45 { |
46 ASSERT(newLength <= m_length); | 46 ASSERT(newLength <= m_length); |
47 if (newLength <= m_length) | 47 if (newLength <= m_length) |
48 m_length = newLength; | 48 m_length = newLength; |
49 } | 49 } |
50 | 50 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 float max = 0; | 124 float max = 0; |
125 | 125 |
126 vmaxmgv(data(), 1, &max, length()); | 126 vmaxmgv(data(), 1, &max, length()); |
127 | 127 |
128 return max; | 128 return max; |
129 } | 129 } |
130 | 130 |
131 } // WebCore | 131 } // WebCore |
132 | 132 |
133 #endif // ENABLE(WEB_AUDIO) | 133 #endif // ENABLE(WEB_AUDIO) |
OLD | NEW |