@@ -22,7 +22,7 @@ class ChannelFormatConverterStreamT : public ReformatBaseStream {
22
22
23
23
bool begin (int fromChannels, int toChannels) {
24
24
LOGI (" begin %d -> %d channels" , fromChannels, toChannels);
25
- is_output_notify = false ;
25
+ // is_output_notify = false;
26
26
from_channels = fromChannels;
27
27
to_channels = toChannels;
28
28
factor = static_cast <float >(toChannels) / static_cast <float >(fromChannels);
@@ -40,7 +40,7 @@ class ChannelFormatConverterStreamT : public ReformatBaseStream {
40
40
virtual size_t write (const uint8_t *data, size_t len) override {
41
41
TRACED ();
42
42
if (p_print == nullptr ) return 0 ;
43
- addNotifyOnFirstWrite ();
43
+ // addNotifyOnFirstWrite();
44
44
if (from_channels == to_channels) {
45
45
return p_print->write (data, len);
46
46
}
@@ -169,7 +169,7 @@ class ChannelFormatConverterStream : public ReformatBaseStream {
169
169
170
170
bool begin (AudioInfo cfg, int toChannels) {
171
171
assert (toChannels != 0 );
172
- is_output_notify = false ;
172
+ // is_output_notify = false;
173
173
to_channels = toChannels;
174
174
from_channels = cfg.channels ;
175
175
bits_per_sample = cfg.bits_per_sample ;
@@ -190,7 +190,7 @@ class ChannelFormatConverterStream : public ReformatBaseStream {
190
190
virtual size_t write (const uint8_t *data, size_t len) override {
191
191
LOGD (" ChannelFormatConverterStream::write: %d" , (int )len);
192
192
if (p_print == nullptr ) return 0 ;
193
- addNotifyOnFirstWrite ();
193
+ // addNotifyOnFirstWrite();
194
194
switch (bits_per_sample) {
195
195
case 8 :
196
196
return getConverter<int8_t >()->write (data, len);
@@ -354,14 +354,14 @@ class NumberFormatConverterStreamT : public ReformatBaseStream {
354
354
355
355
bool begin () override {
356
356
LOGI (" begin %d -> %d bits" , (int )sizeof (TFrom), (int )sizeof (TTo));
357
- is_output_notify = false ;
357
+ // is_output_notify = false;
358
358
return true ;
359
359
}
360
360
361
361
virtual size_t write (const uint8_t *data, size_t len) override {
362
362
TRACED ();
363
363
if (p_print == nullptr ) return 0 ;
364
- addNotifyOnFirstWrite ();
364
+ // addNotifyOnFirstWrite();
365
365
if (sizeof (TFrom) == sizeof (TTo)) return p_print->write (data, len);
366
366
size_t samples = len / sizeof (TFrom);
367
367
size_t result_size = 0 ;
@@ -485,7 +485,7 @@ class NumberFormatConverterStream : public ReformatBaseStream {
485
485
bool begin (int from_bit_per_samples, int to_bit_per_samples,
486
486
float gain = 1.0 ) {
487
487
assert (to_bit_per_samples > 0 );
488
- is_output_notify = false ;
488
+ // is_output_notify = false;
489
489
this ->gain = gain;
490
490
LOGI (" begin %d -> %d bits" , from_bit_per_samples, to_bit_per_samples);
491
491
bool result = true ;
@@ -761,7 +761,7 @@ class FormatConverterStream : public ReformatBaseStream {
761
761
// / (Re-)Starts the processing: call setAudioInfo and setAudioInfoOut before
762
762
bool begin () override {
763
763
TRACED ();
764
- is_output_notify = false ;
764
+ // is_output_notify = false;
765
765
// build output chain
766
766
if (getStream () != nullptr ) {
767
767
sampleRateConverter.setStream (*getStream ());
@@ -797,7 +797,7 @@ class FormatConverterStream : public ReformatBaseStream {
797
797
798
798
virtual size_t write (const uint8_t *data, size_t len) override {
799
799
LOGD (" FormatConverterStream::write: %d" , (int )len);
800
- addNotifyOnFirstWrite ();
800
+ // addNotifyOnFirstWrite();
801
801
return channelFormatConverter.write (data, len);
802
802
}
803
803
0 commit comments