トップ «前の日記(2006-08-03 [J]) 最新 次の日記(2006-08-11 [J])» 編集

ゆ〜ぞ〜の備忘録

コメントスパム対策のため、特定メールアドレスの入った突っ込みをお断りしています。

2005|11|12|
2006|01|02|03|04|05|06|07|08|09|10|11|12|
2007|01|02|03|04|05|06|07|08|09|10|11|12|
2008|01|02|03|04|05|06|07|08|09|10|11|12|
2009|01|03|04|05|06|07|08|09|10|11|12|
2010|01|03|
2036|01|

2006-08-08 [J] [zaurus] Bluetooth ヘッドホン周り [長年日記]

試行錯誤中

Linux で Bluetooth ヘッドフォン(A2DPプロファイル)を使う場合は Bluetooth-alsa Project の成果物を使います。
Zaurus は ALSA 非対応ですが、データの送受信に関する部分は ALSA 無しでもコンパイルできます(参考:Something Interesting Archives)。

上のサイトでは a2play と sbcenc を作成されていますが、それに加えて rcplay/sbcdec/sbcinfo/avsnd/avrecv をコンパイルしてみました。mLinkR と同等品っぽい iTech Clip r35 は MP3デコードに対応しているので(参考:Bluetooth-alsa Project)、MP3 ファイルを rcplay で送り込めば何とかなるんじゃないかと淡い期待を抱きつつ……。

sbcbin-experimental_0.2_arm.ipk
どっかに mLinkR を試せる店はありませんかのう。

作業内容

  • bluez-libs を make して /opt/QtPalmtop/ 配下にインストール
  • bluez-libs の include ディレクトリを 適当に配置
  • コードの変更
    • ./a2play.c : pthread 絡みのコードを削る
    • ./sbc/sbcenc.c :リトルエンディアンに統一する
    • ./sbc/sbc_math.h :#define USE_FIX 1 する
    • ./sbc/sbc.h:#define VERSION "0.2"
  • あとはコンパイルするのみ!
$ ln -s ../../bluez-lib-2.23/include bluetooth

$ arm-linux-gcc -O3 -Os -o a2play -I./ -lbluetooth -L/opt/QtPalmtop/lib a2play.c ./sbc/sbc.c $ arm-linux-gcc -O3 -Os -o avsnd -I./ -lbluetooth -L/opt/QtPalmtop/lib avsnd.c $ arm-linux-gcc -O3 -Os -o avrecv -I./ avrecv.c
$ cd sbc $ ln -s ../../bluez-lib-2.23/include bluetooth
$ arm-linux-gcc -O3 -Os -o rcplay -I./ -lbluetooth -L/opt/QtPalmtop/lib rcplay.c $ arm-linux-gcc -O3 -Os -o sbcinfo -I./ sbcinfo.c $ arm-linux-gcc -O3 -Os -o sbcenc -I./ sbcenc.c sbc.c $ arm-linux-gcc -O3 -Os -o sbcdec -I./ sbcdec.c sbc.c

ちなみに

8bit8KHzなら可能っぽいです。

本日のツッコミ(全15件) [ツッコミを入れる]
Tam (2007-06-16 [J] 22:02)

おぉー、素晴らしい。引越しが終わって落ち着きましたら<br>テストさせていただきます。当方 SL-C3100 + Socket CF<br>+ BT620s です。

ゆ〜ぞ〜 (2007-09-11 [J] 14:46)

おっと、人柱乙です。私もDR-BT50を買いましたので、試してみたいと思います。

Apertobre (2010-07-30 [J] 09:49)

Amazon launched two new Kindle e-readers priced at $139 and $189 late Wednesday, with the cheaper version a Wi-Fi-only e-reader and $10 less than the Wi-Fi-only Nook. <br><a href=http://www.computerworld.com/s/article/9179853/Amazon_launches_two_new_Kindles_one_with_Wi_Fi_only>ComputerWorld</a>

Avallierlajor (2010-08-02 [J] 19:55)

Amazon launched two new Kindle e-readers priced at $139 and $189 late Wednesday, with the cheaper version a Wi-Fi-only e-reader and $10 less than the Wi-Fi-only Nook. <br><a href=http://www.computerworld.com/s/article/9179853/Amazon_launches_two_new_Kindles_one_with_Wi_Fi_only>ComputerWorld</a>

Irraduals (2010-09-04 [J] 00:16)

Amazon launched two new Kindle e-readers priced at $139 and $189 late Wednesday, with the cheaper version a Wi-Fi-only e-reader and $10 less than the Wi-Fi-only Nook. <br><a href=http://www.computerworld.com/s/article/9179853/Amazon_launches_two_new_Kindles_one_with_Wi_Fi_only>ComputerWorld</a> <br> <br>http://www.computerworld.com/

Glyclosse (2010-09-06 [J] 09:35)

Amazon launched two new Kindle e-readers priced at $139 and $189 late Wednesday, with the cheaper version a Wi-Fi-only e-reader and $10 less than the Wi-Fi-only Nook. <br><a href=http://www.computerworld.com/s/article/9179853/Amazon_launches_two_new_Kindles_one_with_Wi_Fi_only>ComputerWorld</a> <br> <br>http://www.computerworld.com/ <br> <br>1

boimiamatiant (2010-09-26 [J] 11:52)

Amazon launched two new Kindle e-readers priced at $139 and $189 late Wednesday, with the cheaper version a Wi-Fi-only e-reader and $10 less than the Wi-Fi-only Nook. <br><a href=http://www.computerworld.com/s/article/9179853/Amazon_launches_two_new_Kindles_one_with_Wi_Fi_only>ComputerWorld</a> <br>http://www.computerworld.com/

HeergermTen (2010-10-17 [J] 00:43)

<a href=0></a> <br><a href=1></a> <br><a href=2></a>

arramySorskaw (2010-10-17 [J] 03:28)

<a href=0></a> <br><a href=1></a> <br><a href=2></a>

enhagogebrole (2010-12-03 [J] 00:28)

Lakers guard Kobe Bryant was named the best player in the NBA, ahead of Heat forward LeBron James, in Sporting Newsannual survey of current and former players, coaches, general managers and broadcasters. <a href=http://www.sportingnews.com/>sportingnews.com</a> <br>http://www.sportingnews.com/nba/feed/2010-12/nba-top-50-players/story/kobe-bryant-tops-lebron-james-in-sns-list-of-top-50-nba-players

dremeVemAneri (2010-12-03 [J] 01:14)

Lakers guard Kobe Bryant was named the best player in the NBA, ahead of Heat forward LeBron James, in Sporting Newsannual survey of current and former players, coaches, general managers and broadcasters. <a href=http://www.sportingnews.com/>sportingnews.com</a> <br>http://www.sportingnews.com/nba/feed/2010-12/nba-top-50-players/story/kobe-bryant-tops-lebron-james-in-sns-list-of-top-50-nba-players

JEDSDRAILLA (2010-12-14 [J] 07:50)

Lakers guard Kobe Bryant was named the best player in the NBA, ahead of Heat forward LeBron James, in Sporting Newsannual survey of current and former players, coaches, general managers and broadcasters. <a href=http://www.sportingnews.com/>sportingnews.com</a> <br>http://www.sportingnews.com/nba/feed/2010-12/nba-top-50-players/story/kobe-bryant-tops-lebron-james-in-sns-list-of-top-50-nba-players

ExtemeSpeeply (2011-01-04 [J] 11:06)

Tom Brady was up early, making his weekly appearance on WEEI with "<a href=http://www.boston.com/>SportsCenter</a>" on in the background, when Patriots highlights came on the program. His preschool-aged son Jack, who has been in the postgame locker room a couple of times this season wearing a number 12 jersey, saw the Pats, and likely his famous father, come on the screen and said excitedly, "Daddy, that's you!" <br>http://www.boston.com/

削除Ozzell Pearse (2012-07-11 [J] 17:02)

削除http://in8drugs.stevennoble.com/online-store-tadacip.html online store tadacip in Greenport NY 11944 New York (Fishers Is) http://payday.tegehel.org/a-fast-loan.html a fast loan

削除Hazel Massengale (2012-09-07 [J] 04:47)

削除http://in6drugs.wmxi.com/get-generic-clomid.html get generic clomid in Austin TX 78722 Texas (Austin) http://payday.pa-pls.org/need-money-bad.html need money bad