ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/BeOS/audio_beos.cpp
(Generate patch)

Comparing BasiliskII/src/BeOS/audio_beos.cpp (file contents):
Revision 1.5 by cebix, 2001-02-02T20:52:57Z vs.
Revision 1.6 by cebix, 2001-07-05T20:30:51Z

# Line 35 | Line 35
35   #include "debug.h"
36  
37  
38 // Supported sample rates, sizes and channels
39 int audio_num_sample_rates = 1;
40 uint32 audio_sample_rates[] = {44100 << 16};
41 int audio_num_sample_sizes = 1;
42 uint16 audio_sample_sizes[] = {16};
43 int audio_num_channel_counts = 1;
44 uint16 audio_channel_counts[] = {2};
45
38   // Global variables
39   static int audio_irq_done_sem = -1;     // Signal from interrupt to streaming thread: data block read
40   static BSoundPlayer *the_player;
# Line 107 | Line 99 | static status_t audio_manager(void *arg)
99   *  Initialization
100   */
101  
102 < void AudioInit(void)
102 > // Set AudioStatus to reflect current audio stream format
103 > static void set_audio_status_format(void)
104   {
112        // Init audio status and feature flags
105          AudioStatus.sample_rate = audio_sample_rates[0];
106          AudioStatus.sample_size = audio_sample_sizes[0];
107          AudioStatus.channels = audio_channel_counts[0];
108 + }
109 +
110 + void AudioInit(void)
111 + {
112 +        // Init audio status and feature flags
113 +        audio_sample_rates.push_back(44100 << 16);
114 +        audio_sample_sizes.push_back(16);
115 +        audio_channel_counts.push_back(2);
116 +        set_audio_status_format();
117          AudioStatus.mixer = 0;
118          AudioStatus.num_sources = 0;
119          audio_component_flags = cmpWantsRegisterMessage | kStereoOut | k16BitOut;
# Line 274 | Line 275 | void AudioInterrupt(void)
275   *  It is guaranteed that AudioStatus.num_sources == 0
276   */
277  
278 < void audio_set_sample_rate(int index)
278 > bool audio_set_sample_rate(int index)
279   {
280 +        return true;
281   }
282  
283 < void audio_set_sample_size(int index)
283 > bool audio_set_sample_size(int index)
284   {
285 +        return true;
286   }
287  
288 < void audio_set_channels(int index)
288 > bool audio_set_channels(int index)
289   {
290 +        return true;
291   }
292  
293  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines