-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create platform implementations for linux and esp32s3. Get linux audio working using pulseaudio. Linux is only working with 48000/2 at this time.
- Loading branch information
Showing
10 changed files
with
322 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#pragma once | ||
|
||
#include "peer_connection.h" | ||
|
||
void oai_send_audio(PeerConnection *peer_connection); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#ifndef _PLATFORM_H_ | ||
#define _PLATFORM_H_ | ||
|
||
#include <stdlib.h> | ||
|
||
#include "peer_connection.h" | ||
|
||
void oai_platform_init(void); | ||
void oai_platform_restart(void); | ||
void oai_platform_init_audio_capture(void); | ||
void oai_platform_audio_write(char *output_buffer, size_t output_buffer_size, | ||
size_t *bytes_written); | ||
void oai_platform_audio_read(char *input_buffer, size_t input_buffer_size, | ||
size_t *bytes_read); | ||
void oai_platform_send_audio_task(PeerConnection *peer_connection); | ||
|
||
#endif |
Oops, something went wrong.