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

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

Issue 2839063003: Implement tail processing for AudioNodes (Closed)
Patch Set: Make declaration order consistent Created 3 years, 5 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) 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 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 void Reset() override; 55 void Reset() override;
56 56
57 size_t FftSize() const { return FftSizeForSampleRate(sample_rate_); } 57 size_t FftSize() const { return FftSizeForSampleRate(sample_rate_); }
58 static size_t FftSizeForSampleRate(float sample_rate); 58 static size_t FftSizeForSampleRate(float sample_rate);
59 59
60 float SampleRate() const { return sample_rate_; } 60 float SampleRate() const { return sample_rate_; }
61 61
62 double TailTime() const override; 62 double TailTime() const override;
63 double LatencyTime() const override; 63 double LatencyTime() const override;
64 bool RequiresTailProcessing() const override;
64 65
65 private: 66 private:
66 // Given an azimuth angle in the range -180 -> +180, returns the corresponding 67 // Given an azimuth angle in the range -180 -> +180, returns the corresponding
67 // azimuth index for the database, and azimuthBlend which is an interpolation 68 // azimuth index for the database, and azimuthBlend which is an interpolation
68 // value from 0 -> 1. 69 // value from 0 -> 1.
69 int CalculateDesiredAzimuthIndexAndBlend(double azimuth, 70 int CalculateDesiredAzimuthIndexAndBlend(double azimuth,
70 double& azimuth_blend); 71 double& azimuth_blend);
71 72
72 RefPtr<HRTFDatabaseLoader> database_loader_; 73 RefPtr<HRTFDatabaseLoader> database_loader_;
73 74
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 115
115 AudioFloatArray temp_l1_; 116 AudioFloatArray temp_l1_;
116 AudioFloatArray temp_r1_; 117 AudioFloatArray temp_r1_;
117 AudioFloatArray temp_l2_; 118 AudioFloatArray temp_l2_;
118 AudioFloatArray temp_r2_; 119 AudioFloatArray temp_r2_;
119 }; 120 };
120 121
121 } // namespace blink 122 } // namespace blink
122 123
123 #endif // HRTFPanner_h 124 #endif // HRTFPanner_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/audio/EqualPowerPanner.h ('k') | third_party/WebKit/Source/platform/audio/HRTFPanner.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698