16 bit SBC encoder write failed #736
                  
                    
                      aqildad-create
                    
                  
                
                  started this conversation in
                General
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
16 bit pcm write successful while 16 bit SBC encoder write failed
For sbc encoder i follow below example to write to SBCencoder ,
https://github.com/pschatzmann/arduino-audio-tools/blob/b85adbfe209680028ee6962725a1bb3bf0bf48e8/sandbox/wav_encode/wav_encode.ino
I write to pcm fle and encoderfle at same loop .( PCM write success WHILE sbc Not )
Pseudo code
SBCEncoder encoder(EncodedDataFile);
encoder.begin();
.
loop>> this is loop ..
.dataFile.write( (uint8_t *)samples , bytes_wrte ) ;// 16 bt pcm record/write successful
encoder.write(samples, bytes_wrte); // 16 bit encoder write not successful
.
.
.
.
below are logs of SBC AND MY CONCERNS
[E] CodecSBC.h : 330 - Invalid sample_rate: 0 -- DO WE NEED TO Define SEPERATE SAMPLNG RATE FOR SBC if yes were to define ???
[E] CodecSBC.h : 273 - inactive ---------------------------why this inactive ? what this means and how to correct ??
I] I2SConfig.h : 106 - rx/tx mode: RX_MODE
[I] I2SConfig.h : 107 - port_no: 0
[I] I2SConfig.h : 108 - is_master: Master
[I] I2SConfig.h : 109 - sample rate: 44100
[I] I2SConfig.h : 110 - bits per sample: 32 ------ this is 2s 32 bit but later in code converted to 16 bit ..conversion is success
[I] I2SConfig.h : 111 - number of channels: 1
[I] I2SConfig.h : 112 - i2s_format: I2S_STD_FORMAT
[I] I2SConfig.h : 114 - auto_clear: false
[I] I2SConfig.h : 121 - buffer_count:6
[I] I2SConfig.h : 122 - buffer_size:512
[I] I2SConfig.h : 126 - pin_bck: 14
[I] I2SConfig.h : 128 - pin_ws: 15
[I] I2SConfig.h : 130 - pin_data: 32
[I] CodecSBC.h : 247 - virtual void audio_tools::SBCEncoder::begin()
[E] CodecSBC.h : 330 - Invalid sample_rate: 0
[E] CodecSBC.h : 273 - inactive
[E] CodecSBC.h : 273 - inactive
[E] CodecSBC.h : 273 - inactive
[E] CodecSBC.h : 273 - inactive
[E] CodecSBC.h : 273 - inactive
[E] CodecSBC.h : 273 - inactive
[E] CodecSBC.h : 273 - inactive
Beta Was this translation helpful? Give feedback.
All reactions