| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 PanningModelHRTF = 1 | 51 PanningModelHRTF = 1 |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 typedef unsigned PanningModel; | 54 typedef unsigned PanningModel; |
| 55 | 55 |
| 56 static PassOwnPtr<Panner> create(PanningModel, float sampleRate, HRTFDatabas
eLoader*); | 56 static PassOwnPtr<Panner> create(PanningModel, float sampleRate, HRTFDatabas
eLoader*); |
| 57 | 57 |
| 58 virtual ~Panner() { }; | 58 virtual ~Panner() { }; |
| 59 | 59 |
| 60 virtual void pan(double azimuth, double elevation, const AudioBus* inputBus,
AudioBus* outputBus, size_t framesToProcess) = 0; | 60 virtual void pan(double azimuth, double elevation, const AudioBus* inputBus,
AudioBus* outputBus, size_t framesToProcess) = 0; |
| 61 virtual void panWithSampleAccurateValues(double* azimuth, double* elevation,
const AudioBus* inputBus, AudioBus* outputBus, size_t framesToProcess) = 0; |
| 61 | 62 |
| 62 virtual void reset() = 0; | 63 virtual void reset() = 0; |
| 63 | 64 |
| 64 virtual double tailTime() const = 0; | 65 virtual double tailTime() const = 0; |
| 65 virtual double latencyTime() const = 0; | 66 virtual double latencyTime() const = 0; |
| 66 | 67 |
| 67 protected: | 68 protected: |
| 68 Panner(PanningModel model) : m_panningModel(model) { } | 69 Panner(PanningModel model) : m_panningModel(model) { } |
| 69 | 70 |
| 70 PanningModel m_panningModel; | 71 PanningModel m_panningModel; |
| 71 }; | 72 }; |
| 72 | 73 |
| 73 } // namespace blink | 74 } // namespace blink |
| 74 | 75 |
| 75 #endif // Panner_h | 76 #endif // Panner_h |
| OLD | NEW |