OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Ericsson AB. All rights reserved. | 2 * Copyright (C) 2011 Ericsson AB. All rights reserved. |
3 * Copyright (C) 2012 Google Inc. All rights reserved. | 3 * Copyright (C) 2012 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 StreamType type() const { return m_type; } | 76 StreamType type() const { return m_type; } |
77 const String& name() const { return m_name; } | 77 const String& name() const { return m_name; } |
78 bool remote() const { return m_remote; } | 78 bool remote() const { return m_remote; } |
79 bool readonly() const { return m_readonly; } | 79 bool readonly() const { return m_readonly; } |
80 | 80 |
81 void setReadyState(ReadyState); | 81 void setReadyState(ReadyState); |
82 ReadyState getReadyState() const { return m_readyState; } | 82 ReadyState getReadyState() const { return m_readyState; } |
83 | 83 |
84 void addObserver(Observer*); | 84 void addObserver(Observer*); |
85 | 85 |
86 ExtraData* extraData() const { return m_extraData.get(); } | 86 ExtraData* getExtraData() const { return m_extraData.get(); } |
87 void setExtraData(PassOwnPtr<ExtraData> extraData) { m_extraData = std::move
(extraData); } | 87 void setExtraData(PassOwnPtr<ExtraData> extraData) { m_extraData = std::move
(extraData); } |
88 | 88 |
89 void setConstraints(WebMediaConstraints constraints) { m_constraints = const
raints; } | 89 void setConstraints(WebMediaConstraints constraints) { m_constraints = const
raints; } |
90 WebMediaConstraints constraints() { return m_constraints; } | 90 WebMediaConstraints constraints() { return m_constraints; } |
91 | 91 |
92 void setAudioFormat(size_t numberOfChannels, float sampleRate); | 92 void setAudioFormat(size_t numberOfChannels, float sampleRate); |
93 void consumeAudio(AudioBus*, size_t numberOfFrames); | 93 void consumeAudio(AudioBus*, size_t numberOfFrames); |
94 | 94 |
95 bool requiresAudioConsumer() const { return m_requiresConsumer; } | 95 bool requiresAudioConsumer() const { return m_requiresConsumer; } |
96 void addAudioConsumer(AudioDestinationConsumer*); | 96 void addAudioConsumer(AudioDestinationConsumer*); |
(...skipping 20 matching lines...) Expand all Loading... |
117 HeapHashSet<Member<AudioDestinationConsumer>> m_audioConsumers; | 117 HeapHashSet<Member<AudioDestinationConsumer>> m_audioConsumers; |
118 OwnPtr<ExtraData> m_extraData; | 118 OwnPtr<ExtraData> m_extraData; |
119 WebMediaConstraints m_constraints; | 119 WebMediaConstraints m_constraints; |
120 }; | 120 }; |
121 | 121 |
122 typedef HeapVector<Member<MediaStreamSource>> MediaStreamSourceVector; | 122 typedef HeapVector<Member<MediaStreamSource>> MediaStreamSourceVector; |
123 | 123 |
124 } // namespace blink | 124 } // namespace blink |
125 | 125 |
126 #endif // MediaStreamSource_h | 126 #endif // MediaStreamSource_h |
OLD | NEW |