File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -133,8 +133,9 @@ class A2DPStream : public AudioStream {
133
133
}
134
134
135
135
// / Opens the processing
136
- void begin (A2DPConfig cfg){
136
+ bool begin (A2DPConfig cfg){
137
137
this ->config = cfg;
138
+ bool result = false ;
138
139
LOGI (" Connecting to %s" ,cfg.name );
139
140
if (a2dp_buffer==nullptr ){
140
141
a2dp_buffer = new RingBuffer<uint8_t >(cfg.bufferSize );
@@ -159,6 +160,7 @@ class A2DPStream : public AudioStream {
159
160
LOGI (" a2dp_source is connected..." );
160
161
notifyBaseInfo (44100 );
161
162
// is_a2dp_active = true;
163
+ result = true ;
162
164
break ;
163
165
164
166
case RX_MODE:
@@ -176,8 +178,11 @@ class A2DPStream : public AudioStream {
176
178
}
177
179
LOGI (" a2dp_sink is connected..." );
178
180
is_a2dp_active = true ;
181
+ result = true ;
179
182
break ;
180
- }
183
+ }
184
+
185
+ return result;
181
186
}
182
187
183
188
// / checks if we are connected
You can’t perform that action at this time.
0 commit comments