Skip to content

Commit

Permalink
Audio samplerates can get past a short capacity, 48kHz tested to be w…
Browse files Browse the repository at this point in the history
…orking on i6c
  • Loading branch information
wberube committed Jun 25, 2024
1 parent 33f4553 commit a02cc9c
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/app_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ enum ConfigError parse_app_config(void) {

parse_bool(&ini, "audio", "enable", &app_config.audio_enable);
if (app_config.audio_enable) {
parse_int(&ini, "audio", "srate", 8000, 48000,
parse_int(&ini, "audio", "srate", 8000, 96000,
&app_config.audio_srate);
if (err != CONFIG_OK)
goto RET_ERR;
Expand Down
2 changes: 1 addition & 1 deletion src/hal/hisi/v3_hal.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ void v3_audio_deinit(void)
v3_aud.fnDisableDevice(_v3_aud_dev);
}

int v3_audio_init(short samplerate)
int v3_audio_init(int samplerate)
{
int ret;

Expand Down
2 changes: 1 addition & 1 deletion src/hal/hisi/v3_hal.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ void v3_hal_deinit(void);
int v3_hal_init(void);

void v3_audio_deinit(void);
int v3_audio_init(short samplerate);
int v3_audio_init(int samplerate);
void *v3_audio_thread(void);

int v3_channel_bind(char index);
Expand Down
2 changes: 1 addition & 1 deletion src/hal/hisi/v4_hal.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ void v4_audio_deinit(void)
v4_aud.fnDisableDevice(_v4_aud_dev);
}

int v4_audio_init(short samplerate)
int v4_audio_init(int samplerate)
{
int ret;

Expand Down
2 changes: 1 addition & 1 deletion src/hal/hisi/v4_hal.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ int v4_hal_init(void);
void *v4_audio_thread(void);

void v4_audio_deinit(void);
int v4_audio_init(short samplerate);
int v4_audio_init(int samplerate);

int v4_channel_bind(char index);
int v4_channel_create(char index, char mirror, char flip, char framerate);
Expand Down
2 changes: 1 addition & 1 deletion src/hal/inge/t31_hal.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void t31_audio_deinit(void)
t31_aud.fnDisableDevice(_t31_aud_dev);
}

int t31_audio_init(short samplerate)
int t31_audio_init(int samplerate)
{
int ret;

Expand Down
2 changes: 1 addition & 1 deletion src/hal/inge/t31_hal.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ void t31_hal_deinit(void);
int t31_hal_init(void);

void t31_audio_deinit(void);
int t31_audio_init(short samplerate);
int t31_audio_init(int samplerate);

int t31_channel_bind(char index);
int t31_channel_create(char index, short width, short height, char framerate);
Expand Down
2 changes: 1 addition & 1 deletion src/hal/star/i6_hal.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ void i6_audio_deinit(void)
i6_aud.fnDisableDevice(_i6_aud_dev);
}

int i6_audio_init(short samplerate)
int i6_audio_init(int samplerate)
{
int ret;

Expand Down
2 changes: 1 addition & 1 deletion src/hal/star/i6_hal.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ int i6_hal_init(void);
void *i6_audio_thread(void);

void i6_audio_deinit(void);
int i6_audio_init(short samplerate);
int i6_audio_init(int samplerate);

int i6_channel_bind(char index, char framerate);
int i6_channel_create(char index, short width, short height, char mirror, char flip, char jpeg);
Expand Down
2 changes: 1 addition & 1 deletion src/hal/star/i6c_hal.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ void i6c_audio_deinit(void)
i6c_aud.fnDisableDevice(_i6c_aud_dev);
}

int i6c_audio_init(short samplerate)
int i6c_audio_init(int samplerate)
{
int ret;

Expand Down
2 changes: 1 addition & 1 deletion src/hal/star/i6c_hal.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ void i6c_hal_deinit(void);
int i6c_hal_init(void);

void i6c_audio_deinit(void);
int i6c_audio_init(short samplerate);
int i6c_audio_init(int samplerate);
void *i6c_audio_thread(void);

int i6c_channel_bind(char index, char framerate);
Expand Down
2 changes: 1 addition & 1 deletion src/hal/star/i6f_hal.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ void i6f_audio_deinit(void)
}


int i6f_audio_init(short samplerate)
int i6f_audio_init(int samplerate)
{
int ret;

Expand Down
2 changes: 1 addition & 1 deletion src/hal/star/i6f_hal.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ void i6f_hal_deinit(void);
int i6f_hal_init(void);

void i6f_audio_deinit(void);
int i6f_audio_init(short samplerate);
int i6f_audio_init(int samplerate);
void *i6f_audio_thread(void);

int i6f_channel_bind(char index, char framerate);
Expand Down

0 comments on commit a02cc9c

Please sign in to comment.