| 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 * 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 26 matching lines...) Expand all Loading... |
| 37 const unsigned short FINISHED_STATE = 3; | 37 const unsigned short FINISHED_STATE = 3; |
| 38 | 38 |
| 39 readonly attribute unsigned short playbackState; | 39 readonly attribute unsigned short playbackState; |
| 40 | 40 |
| 41 readonly attribute AudioGain gain; | 41 readonly attribute AudioGain gain; |
| 42 readonly attribute AudioParam playbackRate; | 42 readonly attribute AudioParam playbackRate; |
| 43 | 43 |
| 44 attribute boolean loop; // This is the proper attribute name from the sp
ecification. | 44 attribute boolean loop; // This is the proper attribute name from the sp
ecification. |
| 45 attribute boolean looping; // This is an alias for the .loop attribute f
or backwards compatibility. | 45 attribute boolean looping; // This is an alias for the .loop attribute f
or backwards compatibility. |
| 46 | 46 |
| 47 [V8MeasureAs=WebAudioStart] void start(in double when); | 47 void noteOn(in double when); |
| 48 // FIXME: unfork | 48 void noteGrainOn(in double when, in double grainOffset, in double grainD
uration); |
| 49 [V8MeasureAs=WebAudioStart, ImplementedAs=startGrain] void start(in doub
le when, in double grainOffset, in double grainDuration); | |
| 50 void stop(in double when); | |
| 51 | |
| 52 #if defined(ENABLE_LEGACY_WEB_AUDIO) && ENABLE_LEGACY_WEB_AUDIO | |
| 53 [V8MeasureAs=LegacyWebAudioNoteOn] void noteOn(in double when); | |
| 54 [V8MeasureAs=LegacyWebAudioNoteOn] void noteGrainOn(in double when, in d
ouble grainOffset, in double grainDuration); | |
| 55 void noteOff(in double when); | 49 void noteOff(in double when); |
| 56 #endif | |
| 57 }; | 50 }; |
| 58 } | 51 } |
| OLD | NEW |