40 |
|
#include "debug.h" |
41 |
|
|
42 |
|
|
43 |
– |
// Supported sample rates, sizes and channels (defaults) |
44 |
– |
int audio_num_sample_rates = 1; |
45 |
– |
uint32 audio_sample_rates[] = {44100 << 16}; |
46 |
– |
int audio_num_sample_sizes = 1; |
47 |
– |
uint16 audio_sample_sizes[] = {16}; |
48 |
– |
int audio_num_channel_counts = 1; |
49 |
– |
uint16 audio_channel_counts[] = {2}; |
50 |
– |
|
43 |
|
// Global variables |
44 |
|
static int audio_fd = -1; // fd from audio library |
45 |
|
static sem_t audio_irq_done_sem; // Signal from interrupt to streaming thread: data block read |
160 |
|
void AudioInit(void) |
161 |
|
{ |
162 |
|
// Init audio status (defaults) and feature flags |
163 |
+ |
audio_sample_rates.push_back(44100 << 16); |
164 |
+ |
audio_sample_sizes.push_back(16); |
165 |
+ |
audio_channel_counts.push_back(2); |
166 |
|
set_audio_status_format(); |
167 |
|
AudioStatus.mixer = 0; |
168 |
|
AudioStatus.num_sources = 0; |