result=ma_data_source_unmap(pDataSource,framesMapped);/* Do this last because the result code is used below to determine whether or not we need to loop. */
}
if(result!=MA_SUCCESS){
if(result==MA_AT_END){
if(loop){
ma_data_source_seek_to_pcm_frame(pDataSource,0);
}else{
break;/* We've reached the end and we're not looping. */
We can now read some data from the callback. We should never have read more input frame than will be consumed. If the format of the callback is the same as the effect's input
We can now read some data from the callback. We should never read more input frame than will be consumed. If the format of the callback is the same as the effect's input
format we can save ourselves a copy and run on a slightly faster path.
*/
if(callbackConversionRequired==MA_FALSE){
if(preEffectConversionRequired==MA_FALSE){
/* Fast path. No need for conversion between the callback and the */