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

Side by Side Diff: Source/platform/audio/Panner.cpp

Issue 176873003: Remove type of panningModelType "soundfield". (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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
« no previous file with comments | « Source/platform/audio/Panner.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 * 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 switch (model) { 45 switch (model) {
46 case PanningModelEqualPower: 46 case PanningModelEqualPower:
47 panner = adoptPtr(new EqualPowerPanner(sampleRate)); 47 panner = adoptPtr(new EqualPowerPanner(sampleRate));
48 break; 48 break;
49 49
50 case PanningModelHRTF: 50 case PanningModelHRTF:
51 panner = adoptPtr(new HRTFPanner(sampleRate, databaseLoader)); 51 panner = adoptPtr(new HRTFPanner(sampleRate, databaseLoader));
52 break; 52 break;
53 53
54 // FIXME: sound field panning is not yet implemented...
55 case PanningModelSoundField:
56 default: 54 default:
57 ASSERT_NOT_REACHED(); 55 ASSERT_NOT_REACHED();
58 return nullptr; 56 return nullptr;
59 } 57 }
60 58
61 return panner.release(); 59 return panner.release();
62 } 60 }
63 61
64 } // namespace WebCore 62 } // namespace WebCore
65 63
66 #endif // ENABLE(WEB_AUDIO) 64 #endif // ENABLE(WEB_AUDIO)
OLDNEW
« no previous file with comments | « Source/platform/audio/Panner.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698