bool AmAudioFormat::operator == (const AmAudioFormat& r) const { return ( codec && r.codec && (r.codec->id == codec->id) && (r.bytes2samples(1024) == bytes2samples(1024)) && (r.channels == channels) && (r.rate == rate)); }
bool AmAudioFormat::operator == (const AmAudioFormat& r) const { return ( codec && r.codec && (strlen(r.codec->name) == strlen(codec->name)) && (!memcmp(r.codec->name,codec->name,strlen(codec->name))) && (r.bytes2samples(1024) == bytes2samples(1024)) && (r.channels == channels) && (r.rate == rate)); }