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

Side by Side Diff: third_party/WebKit/Source/platform/audio/Panner.h

Issue 1820403002: Implement Automations for PannerNode and AutioListener (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update test because CL for min/maxValue AudioParam landed Created 4 years, 7 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
OLDNEW
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/audio/HRTFPanner.cpp ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698