mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-22 00:38:06 +08:00
* fhandler_dsp.cc (fhandler_dev_dsp::ioctl): Return 0 for success.
This commit is contained in:
parent
2b6b730c98
commit
2113bf6c1a
@ -1,3 +1,7 @@
|
|||||||
|
Thu Jun 28 22:19:08 2001 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
|
* fhandler_dsp.cc (fhandler_dev_dsp::ioctl): Return 0 for success.
|
||||||
|
|
||||||
Wed Jun 27 22:19:07 2001 Christopher Faylor <cgf@cygnus.com>
|
Wed Jun 27 22:19:07 2001 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
* path.cc (path_conv::check): Add signal protection here since
|
* path.cc (path_conv::check): Add signal protection here since
|
||||||
|
@ -524,7 +524,7 @@ fhandler_dev_dsp::ioctl (unsigned int cmd, void *ptr)
|
|||||||
audiofreq_ = 8000;
|
audiofreq_ = 8000;
|
||||||
audiobits_ = 8;
|
audiobits_ = 8;
|
||||||
audiochannels_ = 1;
|
audiochannels_ = 1;
|
||||||
return 1;
|
return 0;
|
||||||
|
|
||||||
CASE (SNDCTL_DSP_GETBLKSIZE)
|
CASE (SNDCTL_DSP_GETBLKSIZE)
|
||||||
*intptr = Audio::BLOCK_SIZE;
|
*intptr = Audio::BLOCK_SIZE;
|
||||||
@ -546,7 +546,7 @@ fhandler_dev_dsp::ioctl (unsigned int cmd, void *ptr)
|
|||||||
if (s_audio->open (audiofreq_, nBits, audiochannels_) == true)
|
if (s_audio->open (audiofreq_, nBits, audiochannels_) == true)
|
||||||
{
|
{
|
||||||
audiobits_ = nBits;
|
audiobits_ = nBits;
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -562,7 +562,7 @@ fhandler_dev_dsp::ioctl (unsigned int cmd, void *ptr)
|
|||||||
if (s_audio->open (*intptr, audiobits_, audiochannels_) == true)
|
if (s_audio->open (*intptr, audiobits_, audiochannels_) == true)
|
||||||
{
|
{
|
||||||
audiofreq_ = *intptr;
|
audiofreq_ = *intptr;
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -579,7 +579,7 @@ fhandler_dev_dsp::ioctl (unsigned int cmd, void *ptr)
|
|||||||
if (s_audio->open (audiofreq_, audiobits_, nChannels) == true)
|
if (s_audio->open (audiofreq_, audiobits_, nChannels) == true)
|
||||||
{
|
{
|
||||||
audiochannels_ = nChannels;
|
audiochannels_ = nChannels;
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -609,7 +609,7 @@ fhandler_dev_dsp::ioctl (unsigned int cmd, void *ptr)
|
|||||||
debug_printf ("ptr %p nblocks %d leftblocks %d left bytes %d ",
|
debug_printf ("ptr %p nblocks %d leftblocks %d left bytes %d ",
|
||||||
ptr, nBlocks, leftblocks, left);
|
ptr, nBlocks, leftblocks, left);
|
||||||
|
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -617,7 +617,7 @@ fhandler_dev_dsp::ioctl (unsigned int cmd, void *ptr)
|
|||||||
{
|
{
|
||||||
// Fake!! esound & mikmod require this on non PowerPC platforms.
|
// Fake!! esound & mikmod require this on non PowerPC platforms.
|
||||||
//
|
//
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user