Skip to content

Commit

Permalink
Define FRAME_SIZE for opus (#1569)
Browse files Browse the repository at this point in the history
Building with opus would result in
```
error: 'FRAME_SIZE' was not declared in this scope
 static size_t recording_buffer_size = FRAME_SIZE * 2;
 ```
  • Loading branch information
beastoin authored Dec 31, 2024
2 parents 79b2bff + 2d3bd42 commit c28a3db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions OpenGlass/firmware/firmware.ino
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ OpusEncoder *opus_encoder = nullptr;
#define CHANNELS 1
#define MAX_PACKET_SIZE 1000

#define FRAME_SIZE 160
#define SAMPLE_RATE 16000
#define SAMPLE_BITS 16

Expand Down

0 comments on commit c28a3db

Please sign in to comment.