Mercurial > hg > xemacs-beta
comparison src/hpplay.c @ 2:ac2d302a0011 r19-15b2
Import from CVS: tag r19-15b2
author | cvs |
---|---|
date | Mon, 13 Aug 2007 08:46:35 +0200 |
parents | 376386a54a3c |
children | 0293115a14e9 |
comparison
equal
deleted
inserted
replaced
1:c0c6a60d29db | 2:ac2d302a0011 |
---|---|
104 long status; | 104 long status; |
105 char * speaker; | 105 char * speaker; |
106 | 106 |
107 playParams.priority = APriorityNormal; /* normal priority */ | 107 playParams.priority = APriorityNormal; /* normal priority */ |
108 | 108 |
109 speaker = (char *) (string_data (XSYMBOL (Vhp_play_speaker)->name)); | 109 /* |
110 * We can't signal an error, because all h*ll would break loose if | |
111 * we did. | |
112 */ | |
113 if (SYMBOLP (Vhp_play_speaker)) | |
114 { | |
115 speaker = (char *) (string_data (XSYMBOL (Vhp_play_speaker)->name)); | |
110 | 116 |
111 /* | 117 /* |
112 * setup the playback parameters | 118 * setup the playback parameters |
113 */ | 119 */ |
114 | 120 |
115 /* speaker selection */ | 121 /* speaker selection */ |
116 if ( strcmp(speaker,"external") == 0 ) { | 122 if ( strcmp(speaker,"external") == 0 ) { |
117 gainEntry.u.o.out_dst = AODTMonoJack; | 123 gainEntry.u.o.out_dst = AODTMonoJack; |
118 } else { | 124 } else { |
119 gainEntry.u.o.out_dst = AODTMonoIntSpeaker; | 125 gainEntry.u.o.out_dst = AODTMonoIntSpeaker; |
126 } | |
127 } | |
128 else | |
129 { | |
130 /* | |
131 * Quietly revert to the internal speaker | |
132 */ | |
133 gainEntry.u.o.out_dst = AODTMonoIntSpeaker; | |
120 } | 134 } |
121 | 135 |
122 gainEntry.u.o.out_ch = AOCTMono; | 136 gainEntry.u.o.out_ch = AOCTMono; |
123 gainEntry.gain = AUnityGain; | 137 gainEntry.gain = AUnityGain; |
124 playParams.gain_matrix.type = AGMTOutput; /* gain matrix */ | 138 playParams.gain_matrix.type = AGMTOutput; /* gain matrix */ |