]> code.delx.au - pulseaudio/commitdiff
bluetooth: print SBC encoder implementation info
authorMarc-André Lureau <marc-andre.lureau@nokia.com>
Fri, 13 Feb 2009 13:09:16 +0000 (15:09 +0200)
committerMarc-André Lureau <marc-andre.lureau@nokia.com>
Wed, 18 Feb 2009 13:20:48 +0000 (15:20 +0200)
The encoder initialization is done lazily, so we can only get the
information once encoding start. This is abit annoying..

src/modules/bluetooth/module-bluetooth-device.c

index 748a2d4d52851912d40e07876e3d83f5b979c1fb..b8f67299faa6e1bb4da07d7d34ef9047aba9223a 100644 (file)
@@ -904,6 +904,11 @@ static int a2dp_process_render(struct userdata *u) {
                              (void*) p, u->write_memchunk.length,
                              d, left,
                              &written);
+
+        PA_ONCE_BEGIN {
+            pa_log_debug("Using SBC encoder implementation: %s", pa_strnull(sbc_get_implementation_info(&a2dp->sbc)));
+        } PA_ONCE_END;
+
         pa_memblock_release(u->write_memchunk.memblock);
 
         if (encoded <= 0) {