ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/include/audio.h
(Generate patch)

Comparing BasiliskII/src/include/audio.h (file contents):
Revision 1.6 by cebix, 2001-02-02T20:52:59Z vs.
Revision 1.7 by cebix, 2001-07-05T20:30:54Z

# Line 21 | Line 21
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)
# Line 41 | Line 47 | extern void AudioInterrupt(void);
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);
# Line 68 | Line 74 | extern bool audio_open;                                        // Flag: aud
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 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines