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)
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,
I have problem regarding how to change the quantity in the file.
I will explain you by an example.
I have one file whose name is sample. The content of file are as follows:
sample
-----------------------------------------------------------
1 334 3562 2345
5324 85657 75666 845 ... (0 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)
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)