06-29-2009
Be also aware that the so called viral GPL license Linux drivers use forbids you to redistribute any Solaris porting work you do .
If a BSD drivers exists, there are no legal issues porting it.
9 More Discussions You Might Find Interesting
1. Programming
I have ported a c program to solaris.
When I run , it gives me segmentation fault error at line :-
memcpy ((char *)a_string ,(char *)0, MAX_READ ) ;
originally this was in reliant unix as :-
memcpy ( a_string , 0 , MAX_READ ) ;
Can somebody help me about this ? (1 Reply)
Discussion started by: suds19
1 Replies
2. UNIX for Dummies Questions & Answers
Hi all,
i wanted to port some HP-UX code to linux. can anybody point to some documents or resources that would help me in doing the porting..
thanks in advance
Arun Prakash (0 Replies)
Discussion started by: arunprakash
0 Replies
3. Programming
Hi i have a C program that i need to port from solaris to BSD
The flags i pass on CC in solaris are -lsocket -lnsl
I use sockets and threads anyone know flags for BSD (1 Reply)
Discussion started by: yngwie
1 Replies
4. Linux
helo,
i m porting HP-UX socket application to Linux SSL-socket application.
I have use htonl() in HP-UX.
so when i use it in Linux, data transf is not done and application become soem time crashed.
now when i remove htonl() in linux, then i got data but it will not proper order or some data may... (1 Reply)
Discussion started by: amitpansuria
1 Replies
5. UNIX for Advanced & Expert Users
Hi guys!
I'm a regular joe, so this thread might be in the wrong section and if I appear dumb it mostly because I am..and have lack of knowledge about the unix world. :)
Please move the tread if needed.
To the problem.
We are allot of people in the OSx86 community that need a linux driver... (0 Replies)
Discussion started by: Blackshore
0 Replies
6. Filesystems, Disks and Memory
Hi,
I was trying to port efs_mount(OSE system call) to a LInux.The efs_mount function is used to mount a volume on the indicated device dev.Upon successful completion of this OSE sytem call a volume manager (VM) will be available through which files on this volume are accessed. The Syntax for... (4 Replies)
Discussion started by: roshantraj30
4 Replies
7. Shell Programming and Scripting
Can any one please help the use of "cu command in Solaris" and as well as in Linux :confused: (1 Reply)
Discussion started by: sabee.prakash
1 Replies
8. Solaris
I don't expect any quick answers, but if people have links to resources I can investigate I'd be extremely appreciative. Here is what we have today:
The "application" is a multi-process train control system that uses the Unix desktop, currently CDE, several motif-based applications and sound,... (8 Replies)
Discussion started by: paz9
8 Replies
9. Shell Programming and Scripting
I have a script which has commands that are located in different paths on my Linux o/s than on Solaris. For example, to make uname work, I need to do it this way in Solaris:
my $host= `/usr/bin/uname -n` But in Linux it is:
my $host = `/bin/uname -n`I have this issue with at least 5... (8 Replies)
Discussion started by: newbie2010
8 Replies
LEARN ABOUT MOJAVE
reserve_voices
reserve_voices(3alleg4) Allegro manual reserve_voices(3alleg4)
NAME
reserve_voices - Reserve a number of voices for the digital and MIDI drivers. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
void reserve_voices(int digi_voices, int midi_voices);
DESCRIPTION
Call this function to specify the number of voices that are to be used by the digital and MIDI sound drivers respectively. This must be
done _before_ calling install_sound(). If you reserve too many voices, subsequent calls to install_sound() will fail. How many voices are
available depends on the driver, and in some cases you will actually get more than you reserve (eg. the FM synth drivers will always pro-
vide 9 voices on an OPL2 and 18 on an OPL3, and the SB digital driver will round the number of voices up to the nearest power of two). Pass
negative values to restore the default settings. You should be aware that the sound quality is usually inversely related to how many voices
you use, so don't reserve any more than you really need.
SEE ALSO
set_volume_per_voice(3alleg4), install_sound(3alleg4), detect_digi_driver(3alleg4), detect_midi_driver(3alleg4), get_mixer_voices(3alleg4)
Allegro version 4.4.2 reserve_voices(3alleg4)