Re: [pulseaudio-discuss] new module module-plugin-sink

2019-05-10 Thread Tanu Kaskinen
On Sat, 2019-05-04 at 22:41 +0200, Georg Chini wrote:
> /***
>   This file is part of PulseAudio.
> 
>   PulseAudio is free software; you can redistribute it and/or modify
>   it under the terms of the GNU Lesser General Public License as published
>   by the Free Software Foundation; either version 2.1 of the License,
>   or (at your option) any later version.
> 
>   PulseAudio is distributed in the hope that it will be useful, but
>   WITHOUT ANY WARRANTY; without even the implied warranty of
>   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
>   General Public License for more details.
> 
>   You should have received a copy of the GNU Lesser General Public License
>   along with PulseAudio; if not, see ;.
> ***/
> 
> /* Channel positions copied from pulseaudio channelmap.h */
> enum channel_position {
> CHANNEL_POSITION_INVALID = -1,
> CHANNEL_POSITION_MONO = 0,
> 
> CHANNEL_POSITION_FRONT_LEFT,   /**< Apple, Dolby call this 
> 'Left' */
> CHANNEL_POSITION_FRONT_RIGHT,  /**< Apple, Dolby call this 
> 'Right' */
> CHANNEL_POSITION_FRONT_CENTER, /**< Apple, Dolby call this 
> 'Center' */
> 
> CHANNEL_POSITION_LEFT = CHANNEL_POSITION_FRONT_LEFT,
> CHANNEL_POSITION_RIGHT = CHANNEL_POSITION_FRONT_RIGHT,
> CHANNEL_POSITION_CENTER = CHANNEL_POSITION_FRONT_CENTER,
> 
> CHANNEL_POSITION_REAR_CENTER,  /**< Microsoft calls this 
> 'Back Center', Apple calls this 'Center Surround', Dolby calls this 'Surround 
> Rear Center' */
> CHANNEL_POSITION_REAR_LEFT,/**< Microsoft calls this 
> 'Back Left', Apple calls this 'Left Surround' (!), Dolby calls this 'Surround 
> Rear Left'  */
> CHANNEL_POSITION_REAR_RIGHT,   /**< Microsoft calls this 
> 'Back Right', Apple calls this 'Right Surround' (!), Dolby calls this 
> 'Surround Rear Right'  */
> 
> CHANNEL_POSITION_LFE,  /**< Microsoft calls this 'Low 
> Frequency', Apple calls this 'LFEScreen' */
> CHANNEL_POSITION_SUBWOOFER = CHANNEL_POSITION_LFE,
> 
> CHANNEL_POSITION_FRONT_LEFT_OF_CENTER, /**< Apple, Dolby call this 
> 'Left Center' */
> CHANNEL_POSITION_FRONT_RIGHT_OF_CENTER,/**< Apple, Dolby call this 
> 'Right Center */
> 
> CHANNEL_POSITION_SIDE_LEFT,/**< Apple calls this 'Left 
> Surround Direct', Dolby calls this 'Surround Left' (!) */
> CHANNEL_POSITION_SIDE_RIGHT,   /**< Apple calls this 'Right 
> Surround Direct', Dolby calls this 'Surround Right' (!) */
> 
> CHANNEL_POSITION_AUX0,
> CHANNEL_POSITION_AUX1,
> CHANNEL_POSITION_AUX2,
> CHANNEL_POSITION_AUX3,
> CHANNEL_POSITION_AUX4,
> CHANNEL_POSITION_AUX5,
> CHANNEL_POSITION_AUX6,
> CHANNEL_POSITION_AUX7,
> CHANNEL_POSITION_AUX8,
> CHANNEL_POSITION_AUX9,
> CHANNEL_POSITION_AUX10,
> CHANNEL_POSITION_AUX11,
> CHANNEL_POSITION_AUX12,
> CHANNEL_POSITION_AUX13,
> CHANNEL_POSITION_AUX14,
> CHANNEL_POSITION_AUX15,
> CHANNEL_POSITION_AUX16,
> CHANNEL_POSITION_AUX17,
> CHANNEL_POSITION_AUX18,
> CHANNEL_POSITION_AUX19,
> CHANNEL_POSITION_AUX20,
> CHANNEL_POSITION_AUX21,
> CHANNEL_POSITION_AUX22,
> CHANNEL_POSITION_AUX23,
> CHANNEL_POSITION_AUX24,
> CHANNEL_POSITION_AUX25,
> CHANNEL_POSITION_AUX26,
> CHANNEL_POSITION_AUX27,
> CHANNEL_POSITION_AUX28,
> CHANNEL_POSITION_AUX29,
> CHANNEL_POSITION_AUX30,
> CHANNEL_POSITION_AUX31,
> 
> CHANNEL_POSITION_TOP_CENTER,   /**< Apple calls this 'Top 
> Center Surround' */
> 
> CHANNEL_POSITION_TOP_FRONT_LEFT,   /**< Apple calls this 
> 'Vertical Height Left' */
> CHANNEL_POSITION_TOP_FRONT_RIGHT,  /**< Apple calls this 
> 'Vertical Height Right' */
> CHANNEL_POSITION_TOP_FRONT_CENTER, /**< Apple calls this 
> 'Vertical Height Center' */
> 
> CHANNEL_POSITION_TOP_REAR_LEFT,/**< Microsoft and Apple call 
> this 'Top Back Left' */
> CHANNEL_POSITION_TOP_REAR_RIGHT,   /**< Microsoft and Apple call 
> this 'Top Back Right' */
> CHANNEL_POSITION_TOP_REAR_CENTER,  /**< Microsoft and Apple call 
> this 'Top Back Center' */
> 
> CHANNEL_POSITION_MAX
> };
> 
> /* Error codes copied from pulseaudio def.h */
> enum {
> OK = 0, /**< No error */
> ERR_ACCESS, /**< Access failure */
> ERR_COMMAND,/**< Unknown command */
> ERR_INVALID,/**< Invalid argument */
> ERR_EXIST,  /**< Entity exists */
> ERR_NOENTITY,   /**< No such entity */
> ERR_CONNECTIONREFUSED,  /**< Connection refused */
> ERR_PROTOCOL,   /**< Protocol error */
> ERR_TIMEOUT,/**< Timeout */
> ERR_AUTHKEY,/**< No authentication key */
> ERR_INTERNAL,   /**< Internal error */

Re: [pulseaudio-discuss] [PATCH v9 0/8] Bluetooth A2DP codecs

2019-05-10 Thread Luiz Augusto von Dentz
Hi Pali,

On Fri, May 10, 2019 at 11:21 AM Luiz Augusto von Dentz
 wrote:
>
> Hi Pali,
>
> On Wed, May 8, 2019 at 1:42 PM Pali Rohár  wrote:
> >
> > On Tuesday 30 April 2019 12:42:28 Luiz Augusto von Dentz wrote:
> > > Btw, have you tried these patches with a phone? It seems to work but
> > > we got some problems:
> > >
> > > 1. At least Android seems to prefer aptX-HD but that doesn't seems to
> > > produce any audio, in fact it crashed a few times so either have to
> > > find out why aptX-HD is not working or don't include it.
> >
> > Can you test V10 series with aptX-HD again? Now codec expects aptx-HD
> > packets to be encapsulated in RTP packets.
>
> Will try this out today.

Works great with my phone.

> > > 2. Codec switching with Android always seems to timeout.
> >
> > I tested V10 series with Android and switching between SBC and aptX is
> > working fine.
>
> Interesting, this must be something specific to my phone then :/,
> Android is so fragmented in this part with manufacturers putting their
> on extensions.
>
> --
> Luiz Augusto von Dentz



-- 
Luiz Augusto von Dentz
___
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss

Re: [pulseaudio-discuss] [PATCH v9 0/8] Bluetooth A2DP codecs

2019-05-10 Thread Luiz Augusto von Dentz
Hi Pali,

On Wed, May 8, 2019 at 1:42 PM Pali Rohár  wrote:
>
> On Tuesday 30 April 2019 12:42:28 Luiz Augusto von Dentz wrote:
> > Btw, have you tried these patches with a phone? It seems to work but
> > we got some problems:
> >
> > 1. At least Android seems to prefer aptX-HD but that doesn't seems to
> > produce any audio, in fact it crashed a few times so either have to
> > find out why aptX-HD is not working or don't include it.
>
> Can you test V10 series with aptX-HD again? Now codec expects aptx-HD
> packets to be encapsulated in RTP packets.

Will try this out today.

> > 2. Codec switching with Android always seems to timeout.
>
> I tested V10 series with Android and switching between SBC and aptX is
> working fine.

Interesting, this must be something specific to my phone then :/,
Android is so fragmented in this part with manufacturers putting their
on extensions.

-- 
Luiz Augusto von Dentz
___
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss