| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 // Audio -------------------------------------------------------------- | 149 // Audio -------------------------------------------------------------- |
| 150 | 150 |
| 151 virtual double audioHardwareSampleRate() { return 0; } | 151 virtual double audioHardwareSampleRate() { return 0; } |
| 152 virtual size_t audioHardwareBufferSize() { return 0; } | 152 virtual size_t audioHardwareBufferSize() { return 0; } |
| 153 virtual unsigned audioHardwareOutputChannels() { return 0; } | 153 virtual unsigned audioHardwareOutputChannels() { return 0; } |
| 154 | 154 |
| 155 // Creates a device for audio I/O. | 155 // Creates a device for audio I/O. |
| 156 // Pass in (numberOfInputChannels > 0) if live/local audio input is desired. | 156 // Pass in (numberOfInputChannels > 0) if live/local audio input is desired. |
| 157 virtual WebAudioDevice* createAudioDevice(size_t bufferSize, unsigned number
OfInputChannels, unsigned numberOfChannels, double sampleRate, WebAudioDevice::R
enderCallback*, const WebString& deviceId) { return 0; } | 157 virtual WebAudioDevice* createAudioDevice(size_t bufferSize, unsigned number
OfInputChannels, unsigned numberOfChannels, double sampleRate, WebAudioDevice::R
enderCallback*, const WebString& deviceId) { return 0; } |
| 158 | 158 |
| 159 // FIXME: remove deprecated APIs once chromium switches over to new method. | |
| 160 virtual WebAudioDevice* createAudioDevice(size_t bufferSize, unsigned number
OfChannels, double sampleRate, WebAudioDevice::RenderCallback*) { return 0; } | |
| 161 virtual WebAudioDevice* createAudioDevice(size_t bufferSize, unsigned number
OfInputChannels, unsigned numberOfChannels, double sampleRate, WebAudioDevice::R
enderCallback*) { return 0; } | |
| 162 | |
| 163 | 159 |
| 164 // MIDI ---------------------------------------------------------------- | 160 // MIDI ---------------------------------------------------------------- |
| 165 | 161 |
| 166 // Creates a platform dependent WebMIDIAccessor. MIDIAccessor under platform | 162 // Creates a platform dependent WebMIDIAccessor. MIDIAccessor under platform |
| 167 // creates and owns it. | 163 // creates and owns it. |
| 168 virtual WebMIDIAccessor* createMIDIAccessor(WebMIDIAccessorClient*) { return
0; } | 164 virtual WebMIDIAccessor* createMIDIAccessor(WebMIDIAccessorClient*) { return
0; } |
| 169 | 165 |
| 170 | 166 |
| 171 // Blob ---------------------------------------------------------------- | 167 // Blob ---------------------------------------------------------------- |
| 172 | 168 |
| (...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 638 virtual WebDatabaseObserver* databaseObserver() { return 0; } | 634 virtual WebDatabaseObserver* databaseObserver() { return 0; } |
| 639 | 635 |
| 640 | 636 |
| 641 protected: | 637 protected: |
| 642 virtual ~Platform() { } | 638 virtual ~Platform() { } |
| 643 }; | 639 }; |
| 644 | 640 |
| 645 } // namespace blink | 641 } // namespace blink |
| 646 | 642 |
| 647 #endif | 643 #endif |
| OLD | NEW |