2004-07-19 19:25:07 +00:00
|
|
|
/*
|
|
|
|
* audio_sdl.cpp - Audio support, SDL implementation
|
|
|
|
*
|
2008-01-01 09:40:36 +00:00
|
|
|
* Basilisk II (C) 1997-2008 Christian Bauer
|
2004-07-19 19:25:07 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "sysdeps.h"
|
|
|
|
#include "cpu_emulation.h"
|
|
|
|
#include "main.h"
|
|
|
|
#include "prefs.h"
|
|
|
|
#include "user_strings.h"
|
|
|
|
#include "audio.h"
|
|
|
|
#include "audio_defs.h"
|
|
|
|
|
|
|
|
#include <SDL_mutex.h>
|
|
|
|
#include <SDL_audio.h>
|
2017-09-08 23:43:01 +00:00
|
|
|
#include <SDL_version.h>
|
2021-02-06 04:06:13 +00:00
|
|
|
#include <SDL_timer.h>
|
2004-07-19 19:25:07 +00:00
|
|
|
|
2023-09-13 11:45:03 +00:00
|
|
|
#if !SDL_VERSION_ATLEAST(3, 0, 0)
|
|
|
|
|
2004-07-19 19:25:07 +00:00
|
|
|
#define DEBUG 0
|
|
|
|
#include "debug.h"
|
|
|
|
|
2010-10-06 00:30:23 +00:00
|
|
|
#if defined(BINCUE)
|
2020-07-06 04:54:53 +00:00
|
|
|
#include "bincue.h"
|
2010-10-06 00:30:23 +00:00
|
|
|
#endif
|
|
|
|
|
2004-07-19 19:25:07 +00:00
|
|
|
|
2015-12-28 03:42:37 +00:00
|
|
|
#define MAC_MAX_VOLUME 0x0100
|
|
|
|
|
2004-07-19 19:25:07 +00:00
|
|
|
// The currently selected audio parameters (indices in audio_sample_rates[] etc. vectors)
|
|
|
|
static int audio_sample_rate_index = 0;
|
|
|
|
static int audio_sample_size_index = 0;
|
|
|
|
static int audio_channel_count_index = 0;
|
|
|
|
|
|
|
|
// Global variables
|
|
|
|
static SDL_sem *audio_irq_done_sem = NULL; // Signal from interrupt to streaming thread: data block read
|
|
|
|
static uint8 silence_byte; // Byte value to use to fill sound buffers with silence
|
2015-12-28 03:13:00 +00:00
|
|
|
static uint8 *audio_mix_buf = NULL;
|
2022-12-12 09:17:01 +00:00
|
|
|
static int main_volume = MAC_MAX_VOLUME;
|
|
|
|
static int speaker_volume = MAC_MAX_VOLUME;
|
|
|
|
static bool main_mute = false;
|
|
|
|
static bool speaker_mute = false;
|
2004-07-19 19:25:07 +00:00
|
|
|
|
|
|
|
// Prototypes
|
|
|
|
static void stream_func(void *arg, uint8 *stream, int stream_len);
|
2022-12-12 09:17:01 +00:00
|
|
|
static int get_audio_volume();
|
2004-07-19 19:25:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Initialization
|
|
|
|
*/
|
|
|
|
|
|
|
|
// Set AudioStatus to reflect current audio stream format
|
|
|
|
static void set_audio_status_format(void)
|
|
|
|
{
|
|
|
|
AudioStatus.sample_rate = audio_sample_rates[audio_sample_rate_index];
|
|
|
|
AudioStatus.sample_size = audio_sample_sizes[audio_sample_size_index];
|
|
|
|
AudioStatus.channels = audio_channel_counts[audio_channel_count_index];
|
|
|
|
}
|
|
|
|
|
|
|
|
// Init SDL audio system
|
|
|
|
static bool open_sdl_audio(void)
|
|
|
|
{
|
|
|
|
// SDL supports a variety of twisted little audio formats, all different
|
|
|
|
if (audio_sample_sizes.empty()) {
|
|
|
|
audio_sample_rates.push_back(11025 << 16);
|
|
|
|
audio_sample_rates.push_back(22050 << 16);
|
|
|
|
audio_sample_rates.push_back(44100 << 16);
|
|
|
|
audio_sample_sizes.push_back(8);
|
|
|
|
audio_sample_sizes.push_back(16);
|
|
|
|
audio_channel_counts.push_back(1);
|
|
|
|
audio_channel_counts.push_back(2);
|
|
|
|
|
|
|
|
// Default to highest supported values
|
|
|
|
audio_sample_rate_index = audio_sample_rates.size() - 1;
|
|
|
|
audio_sample_size_index = audio_sample_sizes.size() - 1;
|
|
|
|
audio_channel_count_index = audio_channel_counts.size() - 1;
|
|
|
|
}
|
|
|
|
|
2017-09-04 16:13:50 +00:00
|
|
|
SDL_AudioSpec audio_spec;
|
2017-09-08 23:43:01 +00:00
|
|
|
memset(&audio_spec, 0, sizeof(audio_spec));
|
2017-09-04 16:13:50 +00:00
|
|
|
audio_spec.freq = audio_sample_rates[audio_sample_rate_index] >> 16;
|
|
|
|
audio_spec.format = (audio_sample_sizes[audio_sample_size_index] == 8) ? AUDIO_U8 : AUDIO_S16MSB;
|
|
|
|
audio_spec.channels = audio_channel_counts[audio_channel_count_index];
|
2021-03-17 02:42:37 +00:00
|
|
|
audio_spec.samples = 4096 >> PrefsFindInt32("sound_buffer");
|
2017-09-04 16:13:50 +00:00
|
|
|
audio_spec.callback = stream_func;
|
|
|
|
audio_spec.userdata = NULL;
|
2004-07-19 19:25:07 +00:00
|
|
|
|
|
|
|
// Open the audio device, forcing the desired format
|
2017-09-04 16:13:50 +00:00
|
|
|
if (SDL_OpenAudio(&audio_spec, NULL) < 0) {
|
2004-07-19 19:25:07 +00:00
|
|
|
fprintf(stderr, "WARNING: Cannot open audio: %s\n", SDL_GetError());
|
|
|
|
return false;
|
|
|
|
}
|
2017-09-04 16:13:50 +00:00
|
|
|
|
2017-09-08 23:43:01 +00:00
|
|
|
#if SDL_VERSION_ATLEAST(2,0,0)
|
2017-09-04 16:13:50 +00:00
|
|
|
// HACK: workaround a bug in SDL pre-2.0.6 (reported via https://bugzilla.libsdl.org/show_bug.cgi?id=3710 )
|
|
|
|
// whereby SDL does not update audio_spec.size
|
|
|
|
if (audio_spec.size == 0) {
|
|
|
|
audio_spec.size = (SDL_AUDIO_BITSIZE(audio_spec.format) / 8) * audio_spec.channels * audio_spec.samples;
|
|
|
|
}
|
2017-09-08 23:43:01 +00:00
|
|
|
#endif
|
2004-07-19 19:25:07 +00:00
|
|
|
|
2010-10-06 00:30:23 +00:00
|
|
|
#if defined(BINCUE)
|
2017-09-04 16:13:50 +00:00
|
|
|
OpenAudio_bincue(audio_spec.freq, audio_spec.format, audio_spec.channels,
|
2022-12-12 09:17:01 +00:00
|
|
|
audio_spec.silence, get_audio_volume());
|
2010-10-06 00:30:23 +00:00
|
|
|
#endif
|
|
|
|
|
2017-09-08 23:43:01 +00:00
|
|
|
#if SDL_VERSION_ATLEAST(2,0,0)
|
use SDL 2.0.5+, rather than SDL 1.x
This change may end up being a bit slower on some systems, as the SDL backend will now render its content to two, new, SDL_Surfaces: one of which is in the guest OS' resolution, the other of which is application defined.
SDL2's SDL_Render API is used, which exposes some rudimentary elements of GPU + texture-based programming. Basilisk II now maintains a single 'SDL_Texture' object, which is an SDL representation of a GPU texture. The 'outer' surface will be used to update this texture, as requests to redraw are made.
TODO: look into removing the 'outer' SDL surface, and see if we can just copy the 'inner' surface to the SDL_Texture.
TODO: the entire SDL_Texture is updated, any time a request is made to draw. Look into minimizing this a bit.
2017-07-23 00:29:30 +00:00
|
|
|
const char * driver_name = SDL_GetCurrentAudioDriver();
|
2017-09-08 23:43:01 +00:00
|
|
|
#else
|
|
|
|
char driver_name[32];
|
|
|
|
SDL_AudioDriverName(driver_name, sizeof(driver_name) - 1);
|
|
|
|
#endif
|
use SDL 2.0.5+, rather than SDL 1.x
This change may end up being a bit slower on some systems, as the SDL backend will now render its content to two, new, SDL_Surfaces: one of which is in the guest OS' resolution, the other of which is application defined.
SDL2's SDL_Render API is used, which exposes some rudimentary elements of GPU + texture-based programming. Basilisk II now maintains a single 'SDL_Texture' object, which is an SDL representation of a GPU texture. The 'outer' surface will be used to update this texture, as requests to redraw are made.
TODO: look into removing the 'outer' SDL surface, and see if we can just copy the 'inner' surface to the SDL_Texture.
TODO: the entire SDL_Texture is updated, any time a request is made to draw. Look into minimizing this a bit.
2017-07-23 00:29:30 +00:00
|
|
|
printf("Using SDL/%s audio output\n", driver_name ? driver_name : "");
|
2017-09-04 16:13:50 +00:00
|
|
|
silence_byte = audio_spec.silence;
|
|
|
|
SDL_PauseAudio(0);
|
2004-07-19 19:25:07 +00:00
|
|
|
|
|
|
|
// Sound buffer size = 4096 frames
|
2017-09-04 16:13:50 +00:00
|
|
|
audio_frames_per_block = audio_spec.samples;
|
|
|
|
audio_mix_buf = (uint8*)malloc(audio_spec.size);
|
2004-07-19 19:25:07 +00:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
static bool open_audio(void)
|
|
|
|
{
|
|
|
|
// Try to open SDL audio
|
|
|
|
if (!open_sdl_audio()) {
|
|
|
|
WarningAlert(GetString(STR_NO_AUDIO_WARN));
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Device opened, set AudioStatus
|
|
|
|
set_audio_status_format();
|
|
|
|
|
|
|
|
// Everything went fine
|
|
|
|
audio_open = true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
void AudioInit(void)
|
|
|
|
{
|
|
|
|
// Init audio status and feature flags
|
|
|
|
AudioStatus.sample_rate = 44100 << 16;
|
|
|
|
AudioStatus.sample_size = 16;
|
|
|
|
AudioStatus.channels = 2;
|
|
|
|
AudioStatus.mixer = 0;
|
|
|
|
AudioStatus.num_sources = 0;
|
|
|
|
audio_component_flags = cmpWantsRegisterMessage | kStereoOut | k16BitOut;
|
|
|
|
|
|
|
|
// Sound disabled in prefs? Then do nothing
|
|
|
|
if (PrefsFindBool("nosound"))
|
|
|
|
return;
|
|
|
|
|
|
|
|
// Init semaphore
|
|
|
|
audio_irq_done_sem = SDL_CreateSemaphore(0);
|
|
|
|
|
|
|
|
// Open and initialize audio device
|
|
|
|
open_audio();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Deinitialization
|
|
|
|
*/
|
|
|
|
|
|
|
|
static void close_audio(void)
|
|
|
|
{
|
|
|
|
// Close audio device
|
2017-09-04 16:13:50 +00:00
|
|
|
SDL_CloseAudio();
|
2015-12-28 03:13:00 +00:00
|
|
|
free(audio_mix_buf);
|
2015-12-28 03:39:23 +00:00
|
|
|
audio_mix_buf = NULL;
|
2004-07-19 19:25:07 +00:00
|
|
|
audio_open = false;
|
|
|
|
}
|
|
|
|
|
|
|
|
void AudioExit(void)
|
|
|
|
{
|
|
|
|
// Close audio device
|
|
|
|
close_audio();
|
|
|
|
|
|
|
|
// Delete semaphore
|
|
|
|
if (audio_irq_done_sem)
|
|
|
|
SDL_DestroySemaphore(audio_irq_done_sem);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* First source added, start audio stream
|
|
|
|
*/
|
|
|
|
|
|
|
|
void audio_enter_stream()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Last source removed, stop audio stream
|
|
|
|
*/
|
|
|
|
|
|
|
|
void audio_exit_stream()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Streaming function
|
|
|
|
*/
|
|
|
|
|
|
|
|
static void stream_func(void *arg, uint8 *stream, int stream_len)
|
|
|
|
{
|
|
|
|
if (AudioStatus.num_sources) {
|
|
|
|
// Trigger audio interrupt to get new buffer
|
|
|
|
D(bug("stream: triggering irq\n"));
|
|
|
|
SetInterruptFlag(INTFLAG_AUDIO);
|
|
|
|
TriggerInterrupt();
|
|
|
|
D(bug("stream: waiting for ack\n"));
|
|
|
|
SDL_SemWait(audio_irq_done_sem);
|
|
|
|
D(bug("stream: ack received\n"));
|
|
|
|
|
|
|
|
// Get size of audio data
|
|
|
|
uint32 apple_stream_info = ReadMacInt32(audio_data + adatStreamInfo);
|
2022-12-12 09:17:01 +00:00
|
|
|
if (apple_stream_info && !main_mute && !speaker_mute) {
|
2004-07-19 19:25:07 +00:00
|
|
|
int work_size = ReadMacInt32(apple_stream_info + scd_sampleCount) * (AudioStatus.sample_size >> 3) * AudioStatus.channels;
|
|
|
|
D(bug("stream: work_size %d\n", work_size));
|
|
|
|
if (work_size > stream_len)
|
|
|
|
work_size = stream_len;
|
|
|
|
if (work_size == 0)
|
|
|
|
goto silence;
|
|
|
|
|
|
|
|
// Send data to audio device
|
2015-12-28 03:13:00 +00:00
|
|
|
Mac2Host_memcpy(audio_mix_buf, ReadMacInt32(apple_stream_info + scd_buffer), work_size);
|
|
|
|
memset((uint8 *)stream, silence_byte, stream_len);
|
2022-12-12 09:17:01 +00:00
|
|
|
SDL_MixAudio(stream, audio_mix_buf, work_size, get_audio_volume());
|
2015-12-28 03:13:00 +00:00
|
|
|
|
2004-07-19 19:25:07 +00:00
|
|
|
D(bug("stream: data written\n"));
|
2015-12-28 03:13:00 +00:00
|
|
|
|
2004-07-19 19:25:07 +00:00
|
|
|
} else
|
|
|
|
goto silence;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
// Audio not active, play silence
|
2020-07-10 22:02:04 +00:00
|
|
|
silence: memset(stream, silence_byte, stream_len);
|
2004-07-19 19:25:07 +00:00
|
|
|
}
|
2020-07-10 22:02:04 +00:00
|
|
|
|
2010-10-06 00:30:23 +00:00
|
|
|
#if defined(BINCUE)
|
2022-12-12 09:17:01 +00:00
|
|
|
MixAudio_bincue(stream, stream_len, get_audio_volume());
|
2010-10-06 00:30:23 +00:00
|
|
|
#endif
|
2020-07-10 22:02:04 +00:00
|
|
|
|
2004-07-19 19:25:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* MacOS audio interrupt, read next data block
|
|
|
|
*/
|
|
|
|
|
|
|
|
void AudioInterrupt(void)
|
|
|
|
{
|
|
|
|
D(bug("AudioInterrupt\n"));
|
|
|
|
|
|
|
|
// Get data from apple mixer
|
|
|
|
if (AudioStatus.mixer) {
|
|
|
|
M68kRegisters r;
|
|
|
|
r.a[0] = audio_data + adatStreamInfo;
|
|
|
|
r.a[1] = AudioStatus.mixer;
|
|
|
|
Execute68k(audio_data + adatGetSourceData, &r);
|
|
|
|
D(bug(" GetSourceData() returns %08lx\n", r.d[0]));
|
|
|
|
} else
|
|
|
|
WriteMacInt32(audio_data + adatStreamInfo, 0);
|
|
|
|
|
|
|
|
// Signal stream function
|
|
|
|
SDL_SemPost(audio_irq_done_sem);
|
|
|
|
D(bug("AudioInterrupt done\n"));
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Set sampling parameters
|
|
|
|
* "index" is an index into the audio_sample_rates[] etc. vectors
|
|
|
|
* It is guaranteed that AudioStatus.num_sources == 0
|
|
|
|
*/
|
|
|
|
|
|
|
|
bool audio_set_sample_rate(int index)
|
|
|
|
{
|
|
|
|
close_audio();
|
|
|
|
audio_sample_rate_index = index;
|
|
|
|
return open_audio();
|
|
|
|
}
|
|
|
|
|
|
|
|
bool audio_set_sample_size(int index)
|
|
|
|
{
|
|
|
|
close_audio();
|
|
|
|
audio_sample_size_index = index;
|
|
|
|
return open_audio();
|
|
|
|
}
|
|
|
|
|
|
|
|
bool audio_set_channels(int index)
|
|
|
|
{
|
|
|
|
close_audio();
|
|
|
|
audio_channel_count_index = index;
|
|
|
|
return open_audio();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Get/set volume controls (volume values received/returned have the left channel
|
|
|
|
* volume in the upper 16 bits and the right channel volume in the lower 16 bits;
|
|
|
|
* both volumes are 8.8 fixed point values with 0x0100 meaning "maximum volume"))
|
|
|
|
*/
|
|
|
|
|
|
|
|
bool audio_get_main_mute(void)
|
|
|
|
{
|
2022-12-12 09:17:01 +00:00
|
|
|
return main_mute;
|
2004-07-19 19:25:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
uint32 audio_get_main_volume(void)
|
|
|
|
{
|
2022-12-12 09:17:01 +00:00
|
|
|
uint32 chan = main_volume;
|
2015-12-28 03:13:00 +00:00
|
|
|
return (chan << 16) + chan;
|
2004-07-19 19:25:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool audio_get_speaker_mute(void)
|
|
|
|
{
|
2022-12-12 09:17:01 +00:00
|
|
|
return speaker_mute;
|
2004-07-19 19:25:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
uint32 audio_get_speaker_volume(void)
|
|
|
|
{
|
2022-12-12 09:17:01 +00:00
|
|
|
uint32 chan = speaker_volume;
|
|
|
|
return (chan << 16) + chan;
|
2004-07-19 19:25:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void audio_set_main_mute(bool mute)
|
|
|
|
{
|
2022-12-12 09:17:01 +00:00
|
|
|
main_mute = mute;
|
2004-07-19 19:25:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void audio_set_main_volume(uint32 vol)
|
|
|
|
{
|
2015-12-28 03:13:00 +00:00
|
|
|
// We only have one-channel volume right now.
|
2022-12-12 09:17:01 +00:00
|
|
|
main_volume = ((vol >> 16) + (vol & 0xffff)) / 2;
|
|
|
|
if (main_volume > MAC_MAX_VOLUME)
|
|
|
|
main_volume = MAC_MAX_VOLUME;
|
2004-07-19 19:25:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void audio_set_speaker_mute(bool mute)
|
|
|
|
{
|
2022-12-12 09:17:01 +00:00
|
|
|
speaker_mute = mute;
|
2004-07-19 19:25:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void audio_set_speaker_volume(uint32 vol)
|
|
|
|
{
|
2022-12-12 09:17:01 +00:00
|
|
|
// We only have one-channel volume right now.
|
|
|
|
speaker_volume = ((vol >> 16) + (vol & 0xffff)) / 2;
|
|
|
|
if (speaker_volume > MAC_MAX_VOLUME)
|
|
|
|
speaker_volume = MAC_MAX_VOLUME;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int get_audio_volume() {
|
|
|
|
return main_volume * speaker_volume * SDL_MIX_MAXVOLUME / (MAC_MAX_VOLUME * MAC_MAX_VOLUME);
|
2004-07-19 19:25:07 +00:00
|
|
|
}
|
2021-02-06 04:06:13 +00:00
|
|
|
|
2022-09-03 13:31:30 +00:00
|
|
|
#if SDL_VERSION_ATLEAST(2,0,0)
|
2022-09-06 22:23:33 +00:00
|
|
|
static int play_startup(void *arg) {
|
2021-02-06 04:06:13 +00:00
|
|
|
SDL_AudioSpec wav_spec;
|
|
|
|
Uint8 *wav_buffer;
|
|
|
|
Uint32 wav_length;
|
|
|
|
if (SDL_LoadWAV("startup.wav", &wav_spec, &wav_buffer, &wav_length)) {
|
2021-05-16 05:46:58 +00:00
|
|
|
SDL_AudioSpec obtained;
|
|
|
|
SDL_AudioDeviceID deviceId = SDL_OpenAudioDevice(NULL, 0, &wav_spec, &obtained, 0);
|
2021-02-06 04:06:13 +00:00
|
|
|
if (deviceId) {
|
|
|
|
SDL_QueueAudio(deviceId, wav_buffer, wav_length);
|
|
|
|
SDL_PauseAudioDevice(deviceId, 0);
|
|
|
|
while (SDL_GetQueuedAudioSize(deviceId)) SDL_Delay(10);
|
|
|
|
SDL_Delay(500);
|
|
|
|
SDL_CloseAudioDevice(deviceId);
|
|
|
|
}
|
|
|
|
else printf("play_startup: Audio driver failed to initialize\n");
|
|
|
|
SDL_FreeWAV(wav_buffer);
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
2022-06-04 07:32:57 +00:00
|
|
|
|
|
|
|
void PlayStartupSound() {
|
|
|
|
SDL_CreateThread(play_startup, "", NULL);
|
|
|
|
}
|
2022-09-06 23:03:14 +00:00
|
|
|
#else
|
|
|
|
void PlayStartupSound() {
|
|
|
|
// Not implemented
|
|
|
|
}
|
|
|
|
#endif
|
2023-09-13 11:45:03 +00:00
|
|
|
#endif // SDL_VERSION_ATLEAST
|
|
|
|
|