Change your program to the following:
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <linux/soundcard.h>
int main()
{
int speed, ret;
int audiodev;
audiodev= open("/dev/dsp", O_RDWR);
speed = 11500;
ret = ioctl( audiodev, SNDCTL_DSP_SPEED, &speed);
printf("Audio Playback speed set to %d\n", speed);
return 0;
}
The 3rd parameter of the ioctl call in inout so it has to be a pointer.
Gertjan
--Gertjan van Wingerde home address: Student Computer Science Vrije Universiteit J.H. Dunantstraat 44 Amsterdam 1561 BD Krommenie The Netherlands
e-mail: gertjan@cs.vu.nl URL: http://www.cs.vu.nl/~gertjan/