Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we use 24bit/192? (AUD-4934) #1090

Open
vwwwvwww opened this issue Oct 9, 2023 · 3 comments
Open

Can we use 24bit/192? (AUD-4934) #1090

vwwwvwww opened this issue Oct 9, 2023 · 3 comments

Comments

@vwwwvwww
Copy link

vwwwvwww commented Oct 9, 2023

I found that the new version of ESP-ADF supports 24-bit audio

and I would like to know if it supports outputting 24-bit/192k (SDCard) audio through I2S ?
and receive & play 24-bit Bluetooth music ?

Another question is, does ESP-ADF only support predefined development boards?

If I want to use a DIY board, are there any examples available?

@github-actions github-actions bot changed the title Can we use 24bit/192? Can we use 24bit/192? (AUD-4934) Oct 9, 2023
@jason-mao
Copy link
Collaborator

Refer to https://github.com/espressif/esp-adf/tree/master/examples/get-started/play_mp3_control/components/my_board to define your board.

I think it can be work on 24bit-192kHz from sdcard. And, the A2DP can't support 24bit music, If I remember correctly.

@vwwwvwww
Copy link
Author

Could you provide a template for using a third-party decoder, similar to the template for "my_board"?

For example, how can I use the following code to decode a WAV file?

                  uint32_t recvSize = 0;
                  do
                  {
                    recvSize =  file.read((void*)buffer, 1024);
                  
                    for(uint32_t i = 0;i<recvSize/2;i++)
                    {
                      partWavData[2*i] = buffer[i];   
                      partWavData[2*i+1] = buffer[i]; 
                    }
                  
                    mi.Write((char*)partWavData, recvSize*2); //i2s_write
                  
                      // startPos += recvSize;
                      // file.seek(startPos);
                  }while(recvSize>0);
                  file.close();

@jason-mao
Copy link
Collaborator

@vwwwvwww Do you have any progress to share?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants