Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

load_sample(3alleg4) [netbsd 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)

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)
Man Page

15 More Discussions You Might Find Interesting

1. HP-UX

Shared memory in HPUX

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)
Discussion started by: chinns_m
0 Replies

2. UNIX for Dummies Questions & Answers

Working with a file

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)
Discussion started by: nickg
2 Replies

3. Programming

System programming in C

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)
Discussion started by: Nisha
7 Replies

4. UNIX for Advanced & Expert Users

how to find?

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)
Discussion started by: gkrishnag
14 Replies

5. Shell Programming and Scripting

Addition of all the numbers in a single file

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)
Discussion started by: chinni-script
5 Replies

6. Programming

Help need a sample program

Hi all, Can some one provide me a sample program which measures the performance (both latency and throughput) of TCP and UDP protocol (2 Replies)
Discussion started by: magnetpest2k7
2 Replies

7. Shell Programming and Scripting

script without awk

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)
Discussion started by: hoakin
1 Replies

8. UNIX for Dummies Questions & Answers

Manipulating files

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)
Discussion started by: pawannoel
7 Replies

9. UNIX for Dummies Questions & Answers

Need Help about text files

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)
Discussion started by: Be_Learned
5 Replies

10. Shell Programming and Scripting

Programm not working on all sample

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)
Discussion started by: Priyanka Chopra
1 Replies

11. Programming

Sql select replace

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)
Discussion started by: siya@
2 Replies

12. Shell Programming and Scripting

Help me

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)
Discussion started by: swastik
1 Replies

13. Shell Programming and Scripting

sed and awk giving error ./sample.sh: line 13: sed: command not found

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)
Discussion started by: satishmallidi
12 Replies

14. Shell Programming and Scripting

Include strings between a pattern

Hi, I have two files: File1: sample statements1 <UID = " " PWD = " "> sample statements2 File2: UID ="admin" PWD ="password" (6 Replies)
Discussion started by: manid
6 Replies

15. Homework & Coursework Questions

IP Range Assigning

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)
Discussion started by: TryllZ
10 Replies