Lines Matching refs:NBAIO_Format
59 struct NBAIO_Format { struct
68 extern const NBAIO_Format Format_Invalid; argument
71 size_t Format_frameSize(const NBAIO_Format& format);
75 NBAIO_Format Format_from_SR_C(unsigned sampleRate, unsigned channelCount, audio_format_t format);
78 unsigned Format_sampleRate(const NBAIO_Format& format);
81 unsigned Format_channelCount(const NBAIO_Format& format);
88 bool Format_isValid(const NBAIO_Format& format);
91 bool Format_isEqual(const NBAIO_Format& format1, const NBAIO_Format& format2);
123 virtual ssize_t negotiate(const NBAIO_Format offers[], size_t numOffers,
124 NBAIO_Format counterOffers[], size_t& numCounterOffers);
128 virtual NBAIO_Format format() const { return mNegotiated ? mFormat : Format_Invalid; } in format()
131 NBAIO_Port(const NBAIO_Format& format) : mNegotiated(false), mFormat(format), in NBAIO_Port()
138 NBAIO_Format mFormat; // (mFormat != Format_Invalid) does not imply mNegotiated
226 NBAIO_Sink(const NBAIO_Format& format = Format_Invalid) : NBAIO_Port(format), mFramesWritten(0) in NBAIO_Port()
324 NBAIO_Source(const NBAIO_Format& format = Format_Invalid) : NBAIO_Port(format), mFramesRead(0) in NBAIO_Port()