Mercurial > pidgin.yaz
comparison src/sound.c @ 4491:3196d9044a45
[gaim-migrate @ 4766]
aim_user is dead. long live gaim_account.
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Fri, 31 Jan 2003 13:03:47 +0000 |
parents | 801830dec409 |
children | 9df99116840a |
comparison
equal
deleted
inserted
replaced
4490:70b892694e0b | 4491:3196d9044a45 |
---|---|
135 static int can_play_audio() | 135 static int can_play_audio() |
136 { | 136 { |
137 return check_dev("/dev/audio"); | 137 return check_dev("/dev/audio"); |
138 } | 138 } |
139 | 139 |
140 #ifdef ESD_SOUND | |
141 | |
142 int esd_fd; | |
143 | |
144 static int can_play_esd() | |
145 { | |
146 esd_format_t format = ESD_BITS16 | ESD_STREAM | ESD_PLAY | ESD_MONO; | |
147 | |
148 esd_fd = esd_play_stream(format, 8012, NULL, "gaim"); | |
149 | |
150 if (esd_fd < 0) { | |
151 return 0; | |
152 } | |
153 | |
154 return 1; | |
155 } | |
156 | |
157 #endif /* ESD_SOUND */ | |
158 | |
159 #ifdef ARTSC_SOUND | 140 #ifdef ARTSC_SOUND |
160 | 141 |
161 /* | 142 /* |
162 ** This routine converts from ulaw to 16 bit linear. | 143 ** This routine converts from ulaw to 16 bit linear. |
163 ** | 144 ** |