load_sample(3alleg4) Allegro manual load_sample(3alleg4)NAME
load_sample - Loads a sample from a file. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
SAMPLE *load_sample(const char *filename);
DESCRIPTION
Loads a sample from a file, supporting both mono and stereo WAV and mono VOC files, in 8 or 16-bit formats, as well as formats handled by
functions registered using register_sample_file_type(). Example:
SAMPLE *sample = load_sample(user_input);
if (!sample)
abort_on_error("Couldn't load sample!");
RETURN VALUE
Returns a pointer to the SAMPLE or NULL on error. Remember to free this sample later to avoid memory leaks.
SEE ALSO destroy_sample(3alleg4), load_voc(3alleg4), load_wav(3alleg4), play_sample(3alleg4), save_sample(3alleg4), register_sam-
ple_file_type(3alleg4), exsample(3alleg4)Allegro version 4.4.2 load_sample(3alleg4)
Check Out this Related Man Page
load_sample(3alleg4) Allegro manual load_sample(3alleg4)NAME
load_sample - Loads a sample from a file. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
SAMPLE *load_sample(const char *filename);
DESCRIPTION
Loads a sample from a file, supporting both mono and stereo WAV and mono VOC files, in 8 or 16-bit formats, as well as formats handled by
functions registered using register_sample_file_type(). Example:
SAMPLE *sample = load_sample(user_input);
if (!sample)
abort_on_error("Couldn't load sample!");
RETURN VALUE
Returns a pointer to the SAMPLE or NULL on error. Remember to free this sample later to avoid memory leaks.
SEE ALSO destroy_sample(3alleg4), load_voc(3alleg4), load_wav(3alleg4), play_sample(3alleg4), save_sample(3alleg4), register_sam-
ple_file_type(3alleg4), exsample(3alleg4)Allegro version 4.4.2 load_sample(3alleg4)
HI all,
Any one have the sample C code which uses the Sharedmemory concept
in HPUX, AS400, OS390 .please send the links.
Thanks in Advance
Chinna (0 Replies)
I am new UNIX user. I am using HPUX.
Here is a sample file I am working with.
01-253850,170464,84,59555
01-325100,169793,81,95734
01-325470,120737,81,28893
01-358250,169995,81,51698
Is there any way for me to pull out each section individually and copy it to a new file. I want to separate... (2 Replies)
Hi there,
Am very very interested in system level programming in C????
Please give me a good site or a sample program to start with..
will be of a great help to me..
Thanks,
Nisha (7 Replies)
i have a file -- temp1.txt
/x/c/gh/jk/bean.jsp
/x/c/class.class
now i want to write a script where i need to get the data as
bean.jsp
class.class
can some one help.... (14 Replies)
Hi All ,
Want to know the "sum" of all the digits in below file called "/sample" .Could some one please let me know the script either command .
cat /sample
12
34
23
23
Best Regards,
Chinni . (5 Replies)
Hi! I have to make a script for the uni, it has to trow those things:
Quantity of executed process
Total size of system memory
Used memory percent (sample: used 30%, free 70%)
CPU used (sample: 2.0%)
User using the most memory quantity
User with the most executed process quantity
these... (1 Reply)
Hi Guys,
I'm really new to Unix and Linux and other scripting languages but recently I hv been really enthusiatic about learning more to help out on my work.
So I have a file with 3 columns. A sample of it looks like looks like this :
K2_537841 AAATCAGCCGCAACATTTGC ... (7 Replies)
Hello everyone,
I'm new in Unix, I would like to ask about on how to make this thing
for example;
I have a filename save_sample.txt
this save_sample.txt has a content like this;
USER | DESCRIPTION | DEFAULT FOLDER |
Me | I am only the authorized here | \home\me |
You | Your just a... (5 Replies)
Hi all I am using following code and input to duplicate entries till next row but out is cutting some words in this sample can anybody check on his system is there any error?
awk ' { if($2 !~ /^ *$/) { a=substr($0,length($1)+1,index($0,$NF)-length($NF)); b=$NF; } print $1, a, b } ' file... (1 Reply)
Hi All,
I had a query related to sql select replace command.
i have a table named clusters and it looks like this
Code:
name characteristics
sample 1.1 parent
sample 1.2 ... (2 Replies)
hi,
i have 2 question.
1)In the following code snippet
Cmd> sh sample.sh
##sample.sh
##--------------------
#!bin/sh
echo $0
What will $0 return?
A) 0
B) 1
C) sample.sh
D) sample
E) All of the above
2)In the following code snippet (1 Reply)
Hi,
I am running a script sample.sh in bash environment .In the script i am using sed and awk commands which when executed individually from terminal they are getting executed normally but when i give these sed and awk commands in the script it is giving the below errors :-
./sample.sh: line... (12 Replies)
THIS IS A SAMPLE PRACTICAL EXAM QUESTION, COMPLETE FILE HAS BEEN ATTACHED AS WELL.
Hi All,
I'm a bit confused about assigning IP address from IP Ranges.
I am using this scenario below to understand.
Scenario
Adatum.com an international IT solutions company, is launching 12 new branches in a... (10 Replies)