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

Side by Side Diff: Source/modules/webaudio/MediaStreamAudioDestinationNode.cpp

Issue 22572005: Remove all uses of the ASCIILiteral class. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rm it from wtf Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « Source/modules/speech/SpeechSynthesis.cpp ('k') | Source/modules/webmidi/MIDIPort.cpp » ('j') | 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) 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 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 return adoptRef(new MediaStreamAudioDestinationNode(context, numberOfChannel s)); 43 return adoptRef(new MediaStreamAudioDestinationNode(context, numberOfChannel s));
44 } 44 }
45 45
46 MediaStreamAudioDestinationNode::MediaStreamAudioDestinationNode(AudioContext* c ontext, size_t numberOfChannels) 46 MediaStreamAudioDestinationNode::MediaStreamAudioDestinationNode(AudioContext* c ontext, size_t numberOfChannels)
47 : AudioBasicInspectorNode(context, context->sampleRate(), numberOfChannels) 47 : AudioBasicInspectorNode(context, context->sampleRate(), numberOfChannels)
48 , m_mixBus(AudioBus::create(numberOfChannels, ProcessingSizeInFrames)) 48 , m_mixBus(AudioBus::create(numberOfChannels, ProcessingSizeInFrames))
49 { 49 {
50 ScriptWrappable::init(this); 50 ScriptWrappable::init(this);
51 setNodeType(NodeTypeMediaStreamAudioDestination); 51 setNodeType(NodeTypeMediaStreamAudioDestination);
52 52
53 m_source = MediaStreamSource::create(ASCIILiteral("WebAudio-") + createCanon icalUUIDString(), MediaStreamSource::TypeAudio, "MediaStreamAudioDestinationNode ", MediaStreamSource::ReadyStateLive, true); 53 m_source = MediaStreamSource::create("WebAudio-" + createCanonicalUUIDString (), MediaStreamSource::TypeAudio, "MediaStreamAudioDestinationNode", MediaStream Source::ReadyStateLive, true);
54 MediaStreamSourceVector audioSources; 54 MediaStreamSourceVector audioSources;
55 audioSources.append(m_source); 55 audioSources.append(m_source);
56 MediaStreamSourceVector videoSources; 56 MediaStreamSourceVector videoSources;
57 m_stream = MediaStream::create(context->scriptExecutionContext(), MediaStrea mDescriptor::create(audioSources, videoSources)); 57 m_stream = MediaStream::create(context->scriptExecutionContext(), MediaStrea mDescriptor::create(audioSources, videoSources));
58 MediaStreamCenter::instance().didCreateMediaStream(m_stream->descriptor()); 58 MediaStreamCenter::instance().didCreateMediaStream(m_stream->descriptor());
59 59
60 m_source->setAudioFormat(numberOfChannels, context->sampleRate()); 60 m_source->setAudioFormat(numberOfChannels, context->sampleRate());
61 61
62 initialize(); 62 initialize();
63 } 63 }
(...skipping 14 matching lines...) Expand all
78 m_source->consumeAudio(m_mixBus.get(), numberOfFrames); 78 m_source->consumeAudio(m_mixBus.get(), numberOfFrames);
79 } 79 }
80 80
81 void MediaStreamAudioDestinationNode::reset() 81 void MediaStreamAudioDestinationNode::reset()
82 { 82 {
83 } 83 }
84 84
85 } // namespace WebCore 85 } // namespace WebCore
86 86
87 #endif // ENABLE(WEB_AUDIO) 87 #endif // ENABLE(WEB_AUDIO)
OLDNEW
« no previous file with comments | « Source/modules/speech/SpeechSynthesis.cpp ('k') | Source/modules/webmidi/MIDIPort.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698