goodwin / ALCPlugFix

26 stars 45 forks source link

如果设置NSString? #2

Open sandyplus opened 7 years ago

sandyplus commented 7 years ago

goodwin您好。 我想用您的ALCPlugFix,但是不知道要如何正确的设置才能正确切换二合一耳机的mic? 希望能得到您的帮助!

PS: 我的节点信息如下: Mic at Int Node 0x12 内置mic Speaker at Int Node 0x14 内置扬声器 Mic at Ext Right Node 0x19 外置mic HP Out at Ext Right Node 0x21 耳机扬声器

在不插入耳机的情况下,用widget_dump得到的信息如下: Pin Widget Control nid = 0x02 --> result 0x00000000 nid = 0x03 --> result 0x00000000 nid = 0x04 --> result 0x00000000 nid = 0x05 --> result 0x00000000 nid = 0x06 --> result 0x00000000 nid = 0x07 --> result 0x00000000 nid = 0x08 --> result 0x00000000 nid = 0x09 --> result 0x00000000 nid = 0x0a --> result 0x00000000 nid = 0x0b --> result 0x00000000 nid = 0x0c --> result 0x00000000 nid = 0x0d --> result 0x00000000 nid = 0x0e --> result 0x00000000 nid = 0x0f --> result 0x00000000 nid = 0x10 --> result 0x00000000 nid = 0x11 --> result 0x00000000 nid = 0x12 --> result 0x00000020 nid = 0x13 --> result 0x00000000 nid = 0x14 --> result 0x00000040 nid = 0x15 --> result 0x00000000 nid = 0x16 --> result 0x00000000 nid = 0x17 --> result 0x00000000 nid = 0x18 --> result 0x00000000 nid = 0x19 --> result 0x00000002 nid = 0x1a --> result 0x00000000 nid = 0x1b --> result 0x00000000 nid = 0x1c --> result 0x00000000 nid = 0x1d --> result 0x00000020 nid = 0x1e --> result 0x00000000 nid = 0x1f --> result 0x00000000 nid = 0x20 --> result 0x00000000 nid = 0x21 --> result 0x00000000 nid = 0x22 --> result 0x00000000 nid = 0x23 --> result 0x00000000 nid = 0x24 --> result 0x00000000

ghost commented 7 years ago

question : why you need this ?

sandyplus commented 7 years ago

Because I want to use my headphone mic. I am confused about the nodeID, would mind give me some clues/suggestions?