Lines Matching refs:format
38 NEGOTIATE = 0x80000010, // Must (re-)negotiate format. For negotiate() only, the offeree
47 // Negotiation of format is based on the data provider and data sink, or the data consumer and
51 // attributes, rather than a struct with separate fields for format, sample rate, channel count,
68 size_t Format_frameSize(const NBAIO_Format& format);
72 NBAIO_Format Format_from_SR_C(unsigned sampleRate, unsigned channelCount, audio_format_t format);
75 unsigned Format_sampleRate(const NBAIO_Format& format);
78 unsigned Format_channelCount(const NBAIO_Format& format);
85 bool Format_isValid(const NBAIO_Format& format);
123 // Return the current negotiated format, or Format_Invalid if negotiation has not been done,
125 virtual NBAIO_Format format() const { return mNegotiated ? mFormat : Format_Invalid; }
128 NBAIO_Port(const NBAIO_Format& format) : mNegotiated(false), mFormat(format),
129 mFrameSize(Format_frameSize(format)) { }
218 NBAIO_Sink(const NBAIO_Format& format = Format_Invalid) : NBAIO_Port(format), mFramesWritten(0)
305 NBAIO_Source(const NBAIO_Format& format = Format_Invalid) : NBAIO_Port(format), mFramesRead(0)