| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 PanningModelEqualPower = 0, | 50 PanningModelEqualPower = 0, |
| 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 PanningModel panningModel() const { return m_panningModel; } | |
| 61 | |
| 62 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; |
| 63 | 61 |
| 64 virtual void reset() = 0; | 62 virtual void reset() = 0; |
| 65 | 63 |
| 66 virtual double tailTime() const = 0; | 64 virtual double tailTime() const = 0; |
| 67 virtual double latencyTime() const = 0; | 65 virtual double latencyTime() const = 0; |
| 68 | 66 |
| 69 protected: | 67 protected: |
| 70 Panner(PanningModel model) : m_panningModel(model) { } | 68 Panner(PanningModel model) : m_panningModel(model) { } |
| 71 | 69 |
| 72 PanningModel m_panningModel; | 70 PanningModel m_panningModel; |
| 73 }; | 71 }; |
| 74 | 72 |
| 75 } // namespace blink | 73 } // namespace blink |
| 76 | 74 |
| 77 #endif // Panner_h | 75 #endif // Panner_h |
| OLD | NEW |