Closed s1tnk closed 7 months ago
Sorry, I forgot to inform you about the environment, I am trying with Core2 and PlatformIO is configured as follows.
[env:m5stack-core2]
platform = espressif32
board = m5stack-core2
framework = arduino
lib_deps =
m5stack/M5Unified
https://github.com/pschatzmann/ESP32-A2DP
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
Hello, @s1tnk
…すみません、日本の方だと思いますので、日本語で回答させて頂きます。 (英文の読書きにすごく労力がかかるので…)
M5Unifiedはスピーカーの制御にI2Sを使用していますが、 A2DPSinkのI2S設定を使う場合、I2Sの制御権はA2DPSinkが握っていますから、 M5.Speaker側でのI2Sの操作は出来なくなる、とお考えてください。
M5.Speakerの音量設定は、M5.Speakerが波形を生成する際にのみ効果があります。 つまりM5.Speakerと無関係なライブラリによって鳴っている音には一切効果がありません。
M5.SpeakerとA2DPを併用したい場合は、 examples/Bluetooth_with_ESP32A2DP を参考にしてみてください。
多分そうだろうと思っていたのですが、何か見落としているのではないかと思って質問させて頂いた次第です。 おかげでスッキリしました!!ありがとうございます。
Thank you for your great software.
I am trying a minimalist configuration using M5Unified and BluetoothA2DPSink. I can play audio with the following code, but the volume control via M5.Speaker does not work (also, tone() does not sound).
I understand that Bluetooth_with_ESP32A2DP overrides several methods of BluetoothA2DPSink and uses its own tri-buffer to handle the data, but I am curious what the minimal code would do.
If possible, could you give me some pointers?
Thanks.