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

Comparing BasiliskII/src/include/audio_defs.h (file contents):
Revision 1.2 by cebix, 1999-10-20T15:14:00Z vs.
Revision 1.4 by cebix, 2000-07-22T16:07:22Z

# Line 1 | Line 1
1   /*
2   *  audio_defs.h - Definitions for MacOS audio components
3   *
4 < *  Basilisk II (C) 1997-1999 Christian Bauer
4 > *  Basilisk II (C) 1997-2000 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
# Line 21 | Line 21
21   #ifndef AUDIO_DEFS_H
22   #define AUDIO_DEFS_H
23  
24 + #include "macos_util.h"
25 +
26 +
27   // Error codes
28   enum {
29          badComponentSelector = (int32)0x80008002,
# Line 59 | Line 62 | enum {
62   };
63  
64   // Sound information selectors
65 < enum {
66 <        siNumberChannels                        = 'chan',               // current number of channels
67 <        siChannelAvailable                      = 'chav',               // number of channels available
68 <        siSampleRate                            = 'srat',               // current sample rate
69 <        siSampleRateAvailable           = 'srav',               // sample rates available
70 <        siSampleSize                            = 'ssiz',               // current sample size
71 <        siSampleSizeAvailable           = 'ssav',               // sample sizes available
72 <        siHardwareMute                          = 'hmut',               // mute state of all hardware
73 <        siHardwareVolume                        = 'hvol',               // volume level of all hardware
74 <        siHardwareVolumeSteps           = 'hstp',               // number of volume steps for hardware
75 <        siHardwareBusy                          = 'hwbs',               // sound hardware is in use
76 <        siHeadphoneMute                         = 'pmut',               // mute state of headphone
77 <        siHeadphoneVolume                       = 'pvol',               // volume level of headphone
78 <        siHeadphoneVolumeSteps          = 'hdst',               // number of volume steps for headphone
79 <        siSpeakerMute                           = 'smut',               // mute state of all built-in speakers
77 <        siSpeakerVolume                         = 'svol'                // volume level of built-in speaker
78 < };
65 > const uint32 siNumberChannels           = FOURCC('c','h','a','n');      // current number of channels
66 > const uint32 siChannelAvailable         = FOURCC('c','h','a','v');      // number of channels available
67 > const uint32 siSampleRate                       = FOURCC('s','r','a','t');      // current sample rate
68 > const uint32 siSampleRateAvailable      = FOURCC('s','r','a','v');      // sample rates available
69 > const uint32 siSampleSize                       = FOURCC('s','s','i','z');      // current sample size
70 > const uint32 siSampleSizeAvailable      = FOURCC('s','s','a','v');      // sample sizes available
71 > const uint32 siHardwareMute                     = FOURCC('h','m','u','t');      // mute state of all hardware
72 > const uint32 siHardwareVolume           = FOURCC('h','v','o','l');      // volume level of all hardware
73 > const uint32 siHardwareVolumeSteps      = FOURCC('h','s','t','p');      // number of volume steps for hardware
74 > const uint32 siHardwareBusy                     = FOURCC('h','w','b','s');      // sound hardware is in use
75 > const uint32 siHeadphoneMute            = FOURCC('p','m','u','t');      // mute state of headphone
76 > const uint32 siHeadphoneVolume          = FOURCC('p','v','o','l');      // volume level of headphone
77 > const uint32 siHeadphoneVolumeSteps     = FOURCC('h','d','s','t');      // number of volume steps for headphone
78 > const uint32 siSpeakerMute                      = FOURCC('s','m','u','t');      // mute state of all built-in speakers
79 > const uint32 siSpeakerVolume            = FOURCC('s','v','o','l');      // volume level of built-in speaker
80  
81   enum {  // ComponentResource struct
82          componentType = 0,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines