56 |
|
|
57 |
static int stereo; |
static int stereo; |
58 |
static int format; |
static int format; |
59 |
static int snd_rate; |
static uint32 snd_rate; |
60 |
static short samplewidth; |
static short samplewidth; |
61 |
static char *dsp_dev; |
static char *dsp_dev; |
62 |
static RD_BOOL in_esddsp; |
static RD_BOOL in_esddsp; |
293 |
snd_rate = pwfx->nSamplesPerSec; |
snd_rate = pwfx->nSamplesPerSec; |
294 |
if (ioctl(dsp_fd, SNDCTL_DSP_SPEED, &snd_rate) == -1) |
if (ioctl(dsp_fd, SNDCTL_DSP_SPEED, &snd_rate) == -1) |
295 |
{ |
{ |
296 |
int rates[] = { 44100, 48000, 0 }; |
uint32 rates[] = { 44100, 48000, 0 }; |
297 |
int *prates = rates; |
uint32 *prates = rates; |
298 |
|
|
299 |
while (*prates != 0) |
while (*prates != 0) |
300 |
{ |
{ |