OSDN Git Service

Fix build
authorGlenn Kasten <gkasten@google.com>
Fri, 2 Nov 2012 18:16:13 +0000 (11:16 -0700)
committerGlenn Kasten <gkasten@google.com>
Fri, 2 Nov 2012 18:16:13 +0000 (11:16 -0700)
Change-Id: I17094052b67f2069d80ea140442e5a969bd4e96f

modules/audio_remote_submix/audio_hw.cpp

index 3756274..e9759e5 100755 (executable)
@@ -571,8 +571,7 @@ static int adev_open_output_stream(struct audio_hw_device *dev,
     // initialize pipe
     {
         ALOGV("  initializing pipe");
-        const NBAIO_Format format =
-                config->sample_rate == 48000 ? Format_SR48_C2_I16 : Format_SR44_1_C2_I16;
+        const NBAIO_Format format = Format_from_SR_C(config->sample_rate, 2);
         const NBAIO_Format offers[1] = {format};
         size_t numCounterOffers = 0;
         // creating a MonoPipe with optional blocking set to true.