Use tinysndfile

Change-Id: I6f94fed488662a93e778ea64b8e4861dce528f26
diff --git a/tests/sandbox/Android.mk b/tests/sandbox/Android.mk
index 4f39385..929c364 100644
--- a/tests/sandbox/Android.mk
+++ b/tests/sandbox/Android.mk
@@ -322,7 +322,8 @@
 LOCAL_MODULE_TAGS := tests
 
 LOCAL_C_INCLUDES:= \
-	$(call include-path-for, wilhelm)
+	$(call include-path-for, wilhelm) \
+	$(call include-path-for, audio-utils)
 
 LOCAL_SRC_FILES:= \
 	playbq.c
@@ -343,8 +344,7 @@
 
 LOCAL_MODULE:= slesTest_playbq
 
-# commented out because libsndfile is not yet standard
-#include $(BUILD_EXECUTABLE)
+include $(BUILD_EXECUTABLE)
 
 # monkey
 
diff --git a/tests/sandbox/playbq.c b/tests/sandbox/playbq.c
index 68e236a..e1a7639 100644
--- a/tests/sandbox/playbq.c
+++ b/tests/sandbox/playbq.c
@@ -26,7 +26,7 @@
 
 #include <SLES/OpenSLES.h>
 #ifdef ANDROID
-#include "sndfile.h"
+#include <audio_utils/sndfile.h>
 #else
 #include <sndfile.h>
 #endif
@@ -225,9 +225,6 @@
     switch (sfinfo.format & SF_FORMAT_SUBMASK) {
     case SF_FORMAT_PCM_16:
     case SF_FORMAT_PCM_U8:
-    case SF_FORMAT_ULAW:
-    case SF_FORMAT_ALAW:
-    case SF_FORMAT_IMA_ADPCM:
         break;
     default:
         fprintf(stderr, "unsupported sub-format 0x%x\n", sfinfo.format & SF_FORMAT_SUBMASK);