OLD | NEW |
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 Loading... |
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) |
OLD | NEW |