return OI_OK;
}
-
-
-
/**
* Read the SBC header up to but not including the joint stereo mask. The syncword has already been
* examined, and the enhanced mode flag set, by FindSyncword.
OI_UINT8 d1;
- OI_ASSERT(data[0] == OI_SBC_SYNCWORD || data[0] == OI_SBC_ENHANCED_SYNCWORD);
+ OI_ASSERT(data[0] == OI_SBC_SYNCWORD || data[0] == OI_SBC_ENHANCED_SYNCWORD
+ || data[0] == OI_mSBC_SYNCWORD);
+
+ /**
+ * For mSBC, just set those parameters
+ */
+ if (data[0] == OI_mSBC_SYNCWORD){
+ frame->freqIndex = 0;
+ frame->frequency = 16000;
+
+ frame->blocks = 4;
+ frame->nrof_blocks = 15;
+
+ frame->mode = 0;
+ frame->nrof_channels = 1;
+
+ frame->alloc = SBC_LOUDNESS;
+
+ frame->subbands = 1;
+ frame->nrof_subbands = 8;
+
+ frame->cachedInfo = 0;
+
+ frame->bitpool = 26;
+ frame->crc = data[3];
+ return;
+ }
/* Avoid filling out all these strucutures if we already remember the values
* from last time. Just in case we get a stream corresponding to data[1] ==
return OI_CODEC_SBC_NO_SYNCWORD;
}
#else // SBC_ENHANCED
- while (*frameBytes && (**frameData != OI_SBC_SYNCWORD)) {
+
+ while (*frameBytes && (**frameData != OI_SBC_SYNCWORD)
+ && (**frameData != OI_mSBC_SYNCWORD)) {
(*frameBytes)--;
(*frameData)++;
}