1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/audio/maplay/files/patch-ac
Steve Price 20fe79de4b * Fixed patches not to change one file twice
* Rearrenged build target

PR:		15378
Submitted by:	KATO Tsuguru <tkato@prontomail.ne.jp>
1999-12-23 18:44:10 +00:00

84 lines
1.9 KiB
Plaintext

*** obuffer.cc.orig Thu Jun 23 21:14:36 1994
--- obuffer.cc Thu Dec 9 05:10:51 1999
***************
*** 217,226 ****
int SparcObuffer::audio_fd = -1;
#ifdef ULAW
! SparcObuffer::SparcObuffer (Header *header, bool use_speaker, bool use_headphone, bool use_line_out)
#else
SparcObuffer::SparcObuffer (uint32 number_of_channels, Header *header,
! bool use_speaker, bool use_headphone, bool use_line_out)
#endif
{
#ifndef ULAW
--- 217,226 ----
int SparcObuffer::audio_fd = -1;
#ifdef ULAW
! SparcObuffer::SparcObuffer (Header *header, boolean use_speaker, boolean use_headphone, boolean use_line_out)
#else
SparcObuffer::SparcObuffer (uint32 number_of_channels, Header *header,
! boolean use_speaker, boolean use_headphone, boolean use_line_out)
#endif
{
#ifndef ULAW
***************
*** 406,414 ****
#ifdef ULAW
! bool SparcObuffer::class_suitable (uint32 number_of_channels, bool force_amd)
#else
! bool SparcObuffer::class_suitable (void)
#endif
{
#ifdef ULAW
--- 406,414 ----
#ifdef ULAW
! boolean SparcObuffer::class_suitable (uint32 number_of_channels, boolean force_amd)
#else
! boolean SparcObuffer::class_suitable (void)
#endif
{
#ifdef ULAW
***************
*** 537,542 ****
--- 537,543 ----
}
// turn NDELAY mode off:
+ #ifndef __FreeBSD__ /* Our /dev/audio doesn't like non-blocking I/O */
int flags;
if ((flags = fcntl (fd, F_GETFL, 0)) < 0)
{
***************
*** 549,554 ****
--- 550,556 ----
perror ("fcntl F_SETFL on /dev/audio failed");
exit (1);
}
+ #endif
return fd;
}
***************
*** 629,635 ****
}
! bool LinuxObuffer::class_suitable (uint32 number_of_channels)
{
// open the dsp audio device:
audio_fd = open_audio_device ();
--- 631,637 ----
}
! boolean LinuxObuffer::class_suitable (uint32 number_of_channels)
{
// open the dsp audio device:
audio_fd = open_audio_device ();