Lines Matching defs:source

12  *  * Redistributions of source code must retain the above copyright notice,
109 command.source = whatSource;
143 command->source = output;
162 BBufferConsumer::SetOutputEnabled(const media_source &source,
170 if (IS_INVALID_SOURCE(source))
177 command.source = source;
185 return SendToPort(source.port, PRODUCER_ENABLE_OUTPUT, &command, sizeof(command));
190 BBufferConsumer::RequestFormatChange(const media_source &source,
198 if (IS_INVALID_SOURCE(source))
205 command.source = source;
213 return SendToPort(source.port, PRODUCER_FORMAT_CHANGE_REQUESTED, &command, sizeof(command));
218 BBufferConsumer::RequestAdditionalBuffer(const media_source &source,
223 if (IS_INVALID_SOURCE(source))
228 command.source = source;
234 return SendToPort(source.port, PRODUCER_ADDITIONAL_BUFFER_REQUESTED, &command, sizeof(command));
239 BBufferConsumer::RequestAdditionalBuffer(const media_source& source,
243 if (IS_INVALID_SOURCE(source))
248 command.source = source;
253 return SendToPort(source.port, PRODUCER_ADDITIONAL_BUFFER_REQUESTED,
259 BBufferConsumer::SetOutputBuffersFor(const media_source &source,
265 if (IS_INVALID_SOURCE(source))
284 command->source = source;
302 status_t status = SendToPort(source.port, PRODUCER_SET_BUFFER_GROUP,
315 BBufferConsumer::SendLatencyChange(const media_source& source,
319 if (IS_INVALID_SOURCE(source))
326 command.source = source;
332 "%" B_PRId32 "/%" B_PRId32 " changed to %" B_PRId64 "\n", source.port, source.id,
335 return SendToPort(source.port, PRODUCER_LATENCY_CHANGED, &command,
421 rv = Connected(request->input.source, request->input.destination, request->input.format, &reply.input);
431 fBufferCache->FlushCacheForPort(request->source.port);
434 Disconnected(request->source, request->destination);
453 completedcommand.info.source = request->producer;
518 command->source = output;
537 BBufferConsumer::RequestFormatChange(const media_source& source,
542 if (IS_INVALID_SOURCE(source))
549 command.source = source;
557 return SendToPort(source.port, PRODUCER_FORMAT_CHANGE_REQUESTED, &command,
565 BBufferConsumer::SetOutputEnabled(const media_source& source, bool enabled,
569 if (IS_INVALID_SOURCE(source))
574 command.source = source;
582 return SendToPort(source.port, PRODUCER_ENABLE_OUTPUT, &command,