1 |
|
/* |
2 |
|
* audio.h - Audio support |
3 |
|
* |
4 |
< |
* Basilisk II (C) 1997-2000 Christian Bauer |
4 |
> |
* Basilisk II (C) 1997-2002 Christian Bauer |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
21 |
|
#ifndef AUDIO_H |
22 |
|
#define AUDIO_H |
23 |
|
|
24 |
+ |
#include <vector> |
25 |
+ |
|
26 |
+ |
#ifndef NO_STD_NAMESPACE |
27 |
+ |
using std::vector; |
28 |
+ |
#endif |
29 |
+ |
|
30 |
|
extern int32 AudioDispatch(uint32 params, uint32 ti); |
31 |
|
|
32 |
|
extern bool AudioAvailable; // Flag: audio output available (from the software point of view) |
47 |
|
extern void audio_enter_stream(void); |
48 |
|
extern void audio_exit_stream(void); |
49 |
|
|
50 |
< |
extern void audio_set_sample_rate(int index); |
51 |
< |
extern void audio_set_sample_size(int index); |
52 |
< |
extern void audio_set_channels(int index); |
50 |
> |
extern bool audio_set_sample_rate(int index); |
51 |
> |
extern bool audio_set_sample_size(int index); |
52 |
> |
extern bool audio_set_channels(int index); |
53 |
|
|
54 |
|
extern bool audio_get_main_mute(void); |
55 |
|
extern uint32 audio_get_main_volume(void); |
74 |
|
extern int audio_frames_per_block; // Number of audio frames per block |
75 |
|
extern uint32 audio_component_flags; // Component feature flags |
76 |
|
|
77 |
< |
extern int audio_num_sample_rates; // Number of supported sample rates |
78 |
< |
extern uint32 audio_sample_rates[]; // Array of supported sample rates (16.16 fixed point) |
79 |
< |
extern int audio_num_sample_sizes; // Number of supported sample sizes |
74 |
< |
extern uint16 audio_sample_sizes[]; // Array of supported sample sizes |
75 |
< |
extern int audio_num_channel_counts; // Number of supported channel counts |
76 |
< |
extern uint16 audio_channel_counts[]; // Array of supported channels counts |
77 |
> |
extern vector<uint32> audio_sample_rates; // Vector of supported sample rates (16.16 fixed point) |
78 |
> |
extern vector<uint16> audio_sample_sizes; // Vector of supported sample sizes |
79 |
> |
extern vector<uint16> audio_channel_counts; // Array of supported channels counts |
80 |
|
|
81 |
|
// Audio component global data and 68k routines |
82 |
|
enum { |