3 |
|
* |
4 |
|
* Adapted from Frodo's Solaris sound routines by Marc Chabanas |
5 |
|
* |
6 |
< |
* Basilisk II (C) 1997-2001 Christian Bauer |
6 |
> |
* Basilisk II (C) 1997-2005 Christian Bauer |
7 |
|
* |
8 |
|
* This program is free software; you can redistribute it and/or modify |
9 |
|
* it under the terms of the GNU General Public License as published by |
115 |
|
sound_buffer_size = (AudioStatus.sample_size>>3) * AudioStatus.channels * audio_frames_per_block; |
116 |
|
|
117 |
|
// Start audio thread |
118 |
< |
pthread_attr_init(&stream_thread_attr); |
119 |
< |
#if defined(_POSIX_THREAD_PRIORITY_SCHEDULING) |
120 |
< |
pthread_attr_setinheritsched(&stream_thread_attr, PTHREAD_EXPLICIT_SCHED); |
121 |
< |
pthread_attr_setschedpolicy(&stream_thread_attr, SCHED_FIFO); |
122 |
< |
struct sched_param fifo_param; |
123 |
< |
fifo_param.sched_priority = (sched_get_priority_min(SCHED_FIFO) + sched_get_priority_max(SCHED_FIFO)) / 2; |
124 |
< |
pthread_attr_setschedparam(&stream_thread_attr, &fifo_param); |
125 |
< |
#endif |
118 |
> |
Set_pthread_attr(&stream_thread_attr, 0); |
119 |
|
stream_thread_active = (pthread_create(&stream_thread, &stream_thread_attr, stream_func, NULL) == 0); |
120 |
|
|
121 |
|
// Everything OK |
261 |
|
* It is guaranteed that AudioStatus.num_sources == 0 |
262 |
|
*/ |
263 |
|
|
264 |
< |
void audio_set_sample_rate(int index) |
264 |
> |
bool audio_set_sample_rate(int index) |
265 |
|
{ |
266 |
+ |
return true; |
267 |
|
} |
268 |
|
|
269 |
< |
void audio_set_sample_size(int index) |
269 |
> |
bool audio_set_sample_size(int index) |
270 |
|
{ |
271 |
+ |
return true; |
272 |
|
} |
273 |
|
|
274 |
< |
void audio_set_channels(int index) |
274 |
> |
bool audio_set_channels(int index) |
275 |
|
{ |
276 |
+ |
return true; |
277 |
|
} |
278 |
|
|
279 |
|
|