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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 // May return null. | 166 // May return null. |
167 virtual WebSpeechSynthesizer* createSpeechSynthesizer(WebSpeechSynthesizerCl
ient*) { return nullptr; } | 167 virtual WebSpeechSynthesizer* createSpeechSynthesizer(WebSpeechSynthesizerCl
ient*) { return nullptr; } |
168 | 168 |
169 | 169 |
170 // Audio -------------------------------------------------------------- | 170 // Audio -------------------------------------------------------------- |
171 | 171 |
172 virtual double audioHardwareSampleRate() { return 0; } | 172 virtual double audioHardwareSampleRate() { return 0; } |
173 virtual size_t audioHardwareBufferSize() { return 0; } | 173 virtual size_t audioHardwareBufferSize() { return 0; } |
174 virtual unsigned audioHardwareOutputChannels() { return 0; } | 174 virtual unsigned audioHardwareOutputChannels() { return 0; } |
175 | 175 |
176 // Creates a device for audio I/O. | 176 // Creates a device for WebAudio. |
177 // Pass in (numberOfInputChannels > 0) if live/local audio input is desired. | 177 // Pass in (numberOfInputChannels > 0) if live/local audio input is desired. |
178 virtual WebAudioDevice* createAudioDevice(size_t bufferSize, unsigned number
OfInputChannels, unsigned numberOfChannels, double sampleRate, WebAudioDevice::R
enderCallback*, const WebString& deviceId, const WebSecurityOrigin&) { return nu
llptr; } | 178 virtual WebAudioDevice* createAudioDevice(size_t bufferSize, unsigned number
OfInputChannels, unsigned numberOfChannels, double sampleRate, WebAudioDevice::R
enderCallback*, const WebString& deviceId, const WebSecurityOrigin&) { return nu
llptr; } |
179 | 179 |
180 | 180 |
181 // MIDI ---------------------------------------------------------------- | 181 // MIDI ---------------------------------------------------------------- |
182 | 182 |
183 // Creates a platform dependent WebMIDIAccessor. MIDIAccessor under platform | 183 // Creates a platform dependent WebMIDIAccessor. MIDIAccessor under platform |
184 // creates and owns it. | 184 // creates and owns it. |
185 virtual WebMIDIAccessor* createMIDIAccessor(WebMIDIAccessorClient*) { return
nullptr; } | 185 virtual WebMIDIAccessor* createMIDIAccessor(WebMIDIAccessorClient*) { return
nullptr; } |
186 | 186 |
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
635 protected: | 635 protected: |
636 Platform(); | 636 Platform(); |
637 virtual ~Platform() { } | 637 virtual ~Platform() { } |
638 | 638 |
639 WebThread* m_mainThread; | 639 WebThread* m_mainThread; |
640 }; | 640 }; |
641 | 641 |
642 } // namespace blink | 642 } // namespace blink |
643 | 643 |
644 #endif | 644 #endif |
OLD | NEW |