| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 17 matching lines...) Expand all Loading... |
| 28 #include "wtf/build_config.h" | 28 #include "wtf/build_config.h" |
| 29 | 29 |
| 30 #if !OS(MACOSX) && !USE(WEBAUDIO_FFMPEG) && !USE(WEBAUDIO_OPENMAX_DL_FFT) | 30 #if !OS(MACOSX) && !USE(WEBAUDIO_FFMPEG) && !USE(WEBAUDIO_OPENMAX_DL_FFT) |
| 31 | 31 |
| 32 #include "platform/audio/FFTFrame.h" | 32 #include "platform/audio/FFTFrame.h" |
| 33 | 33 |
| 34 namespace blink { | 34 namespace blink { |
| 35 | 35 |
| 36 // Normal constructor: allocates for a given fftSize. | 36 // Normal constructor: allocates for a given fftSize. |
| 37 FFTFrame::FFTFrame(unsigned /*fftSize*/) : m_FFTSize(0), m_log2FFTSize(0) { | 37 FFTFrame::FFTFrame(unsigned /*fftSize*/) : m_FFTSize(0), m_log2FFTSize(0) { |
| 38 ASSERT_NOT_REACHED(); | 38 NOTREACHED(); |
| 39 } | 39 } |
| 40 | 40 |
| 41 // Creates a blank/empty frame (interpolate() must later be called). | 41 // Creates a blank/empty frame (interpolate() must later be called). |
| 42 FFTFrame::FFTFrame() : m_FFTSize(0), m_log2FFTSize(0) { | 42 FFTFrame::FFTFrame() : m_FFTSize(0), m_log2FFTSize(0) { |
| 43 ASSERT_NOT_REACHED(); | 43 NOTREACHED(); |
| 44 } | 44 } |
| 45 | 45 |
| 46 // Copy constructor. | 46 // Copy constructor. |
| 47 FFTFrame::FFTFrame(const FFTFrame& frame) | 47 FFTFrame::FFTFrame(const FFTFrame& frame) |
| 48 : m_FFTSize(frame.m_FFTSize), m_log2FFTSize(frame.m_log2FFTSize) { | 48 : m_FFTSize(frame.m_FFTSize), m_log2FFTSize(frame.m_log2FFTSize) { |
| 49 ASSERT_NOT_REACHED(); | 49 NOTREACHED(); |
| 50 } | 50 } |
| 51 | 51 |
| 52 FFTFrame::~FFTFrame() { | 52 FFTFrame::~FFTFrame() { |
| 53 ASSERT_NOT_REACHED(); | 53 NOTREACHED(); |
| 54 } | 54 } |
| 55 | 55 |
| 56 void FFTFrame::doFFT(const float* data) { | 56 void FFTFrame::doFFT(const float* data) { |
| 57 ASSERT_NOT_REACHED(); | 57 NOTREACHED(); |
| 58 } | 58 } |
| 59 | 59 |
| 60 void FFTFrame::doInverseFFT(float* data) { | 60 void FFTFrame::doInverseFFT(float* data) { |
| 61 ASSERT_NOT_REACHED(); | 61 NOTREACHED(); |
| 62 } | 62 } |
| 63 | 63 |
| 64 void FFTFrame::initialize() {} | 64 void FFTFrame::initialize() {} |
| 65 | 65 |
| 66 void FFTFrame::cleanup() { | 66 void FFTFrame::cleanup() { |
| 67 ASSERT_NOT_REACHED(); | 67 NOTREACHED(); |
| 68 } | 68 } |
| 69 | 69 |
| 70 } // namespace blink | 70 } // namespace blink |
| 71 | 71 |
| 72 #endif // !OS(MACOSX) && !USE(WEBAUDIO_FFMPEG) && !USE(WEBAUDIO_OPENMAX_DL_FFT) | 72 #endif // !OS(MACOSX) && !USE(WEBAUDIO_FFMPEG) && !USE(WEBAUDIO_OPENMAX_DL_FFT) |
| OLD | NEW |