09-01-2009
Can u put some sample data ....
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I need to know how to record the hostname, date/time and all of the process and send it all to one file. I know that the commands I need are hostname, date and ps but I don't know how to do them all and send them all to the same file. Please help! (1 Reply)
Discussion started by: precious51980
1 Replies
2. Shell Programming and Scripting
Hi,
Am trying to write a shell script which will append a header and a footer to an existing file. Header will contain details like the current date while the footer will contain the no: of records listed in the file.
I know we can use the CAT command, but i have no clue abt the syntax to... (4 Replies)
Discussion started by: brainstormer
4 Replies
3. Programming
Hi ...
I am having a string in the buffer .. It is binary data it may contain space . When i try to append a space in using strcpy it is taking the inbetween \n as the end and appending space ..
How to append space in the binary data in C ?? please let me know
Thanks in advance,
Arun. (2 Replies)
Discussion started by: arunkumar_mca
2 Replies
4. Shell Programming and Scripting
Hi.
I wrote a very simple script and it doesn't work :(
It is supposed to go to a certain directory, execute some command and append the output to the file "expo.dat"
what it does is that it writes to the file only one entery. I dont know if Im using the write synthax for "append". Here is... (3 Replies)
Discussion started by: Enigma08
3 Replies
5. Shell Programming and Scripting
Hi,
I would like to know if it's possible to append data into a variable, rather than into a file. Although I can write information into a temporary file in /tmp, I'd rather if possible write into a variable, as I don't like the idea that should my script fail, I'll be polluting the server with... (5 Replies)
Discussion started by: michaeltravisuk
5 Replies
6. Shell Programming and Scripting
Hi all,
I have to append every alternate line after its previous line. For example if my file has following contents
line 1: unix is an OS
line 2: it is open source
line 3: it supports shell programming
line 4: we can write shell scripts
Required output should be
line1: unix is an OS it is... (4 Replies)
Discussion started by: rish_max
4 Replies
7. Shell Programming and Scripting
I know this has been asked before but I just can't parse the syntax as explained. I have a set of files that has user information spread out over two lines that I wish to merge into one:
User1NameLast User1NameFirst User1Address
E-Mail:User1email
User2NameLast User2NameFirst User2Address... (11 Replies)
Discussion started by: walkerwheeler
11 Replies
8. Shell Programming and Scripting
I have searched the forms and I can not find info on appending each line of one file to the same line of another file. I know that I can cat one file to another or append the 2nd file to the end of the 1st but not quite sure how to append one line of data to another. For example
File 1 has ... (2 Replies)
Discussion started by: scw132
2 Replies
9. Shell Programming and Scripting
A friend contacted me recently with an interesting question. We got something worked out, but I'm curious what answers you all can come up with.
Given a shell script (in bash) that processes a bunch of data and appends it to a file, how would you append the date, time, and a filename to the... (6 Replies)
Discussion started by: malcolmpdx
6 Replies
10. Shell Programming and Scripting
Hi
I have a file called text.txt contains
x
y
z
when i run a command i will get output like below
x 20
z 30
i want to insert x, z value in text.txt file and should be like this
x 20
y 0
z 30
can anyone help me please? (1 Reply)
Discussion started by: siva kumar
1 Replies
LEARN ABOUT DEBIAN
sample
SAMPLE(3alleg4) Allegro manual SAMPLE(3alleg4)
NAME
SAMPLE - Stores sound data. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
typedef struct SAMPLE
DESCRIPTION
int bits; - 8 or 16
int stereo; - sample type flag
int freq; - sample frequency
int priority; - 0-255
unsigned long len; - length (in samples)
unsigned long loop_start; - loop start position
unsigned long loop_end; - loop finish position
void *data; - raw sample data
A sample structure, which holds sound data, used by the digital sample routines. You can consider all of these fields as read only except
priority, loop_start and loop_end, which you can change them for example after loading a sample from disk.
The priority is a value from 0 to 255 (by default set to 128) and controls how hardware voices on the sound card are allocated if you
attempt to play more than the driver can handle. This may be used to ensure that the less important sounds are cut off while the important
ones are preserved.
The variables loop_start and loop_end specify the loop position in sample units, and are set by default to the start and end of the sample.
If you are creating your own samples on the fly, you might also want to modify the raw data of the sample pointed by the data field. The
sample data are always in unsigned format. This means that if you are loading a PCM encoded sound file with signed 16-bit samples, you
would have to XOR every two bytes (i.e. every sample value) with 0x8000 to change the signedness.
SEE ALSO
load_sample(3alleg4), exsample(3alleg4)
Allegro version 4.4.2 SAMPLE(3alleg4)