Hi,
I have an expression using grep and nawk that captures the ID number of a given Unix process. It gets printed to screen but I don't know how to declare a variable to this returned value!
For example,
ps -ef|grep $project | grep -v grep | nawk '{print $2}'
This returns my number. How... (2 Replies)
... and there was absolutely nothing installed except fedora and ssh. I used yum to install vsftp and httpd, both start and ps shows they're running, and yet I can't connect with either of them. Where on earth or in redhat do I begin looking to unravel this one? I've overseen a server before but... (3 Replies)
Hi All,
I have written the below to add the numbers in a column. Postive numbers are unsigned and negative numbers are signed in the file. After the below cmd I am getting -0.00 , instead of 0.00. Can someone guide me on what I am missing in the cmd.
grep '^L' $FileName| awk -F"|" ' {... (7 Replies)
Hey folks,
not sure whether this or the security board is the right forum. If I failed, please move :)
So here's the problem:
I need to build a Linux environment in which only "signed" processes are allowed to run. When I say signed I don't mean a VeriSign signature like you know it from... (5 Replies)
Hi guys, I want to add a list of SIGNED numbers... but I don't know how to tell the computer to ADD THEM as signed, let me explain further:
when adding 200 + (-100) , it becomes 100, but in asm the computer always add them as unsigned, so I always get the 300. Do I have to add them in a... (4 Replies)
Why is my Live user signed into tty1 - 6?
A few details explaining the only changes I've made:
I downloaded Linux Mint 12. Burned, booted, and installed to hard drive. Performed updates. Downloaded Remastersys from repos. Remastered with updates (so I don't have to download them any... (3 Replies)
when a date type is considered signed and unsigned is that simple referring to - for signed and positive numbers for unsigned? Further if that is the case would mutiplying and dividing ect where 2 signed numbers, like (-2)*(-2) = 4 result in a unsigned. (3 Replies)
Hi guys...
Macbook Pro, 13", circa August 2012, OSX 10.7.5, default bash terminal.
I require the capability to convert +32767 to -32768 into signed hex words...
The example piece code below works perfectly except...
#/bin/bash
# sign.sh
# Unsign to sign...
while true
do
# I have used... (2 Replies)
Hi,
I have an issue with openssl. Basically I have a ca certificate which has expired and I have regenerated a new ca.cert from the ca.key file and I have concatenated the output of the new ca.crt file and ca-bundle.crt to a new ca-bundle.crt.
Have restarted apache, however I still get the... (1 Reply)
Discussion started by: maverick_here
1 Replies
LEARN ABOUT DEBIAN
sdl::audiospec
pods::SDL::AudioSpec(3pm) User Contributed Perl Documentation pods::SDL::AudioSpec(3pm)NAME
SDL::AudioSpec -- SDL Bindings for structure SDL::AudioSpec
CATEGORY
Core, Audio, Structure
SYNOPSIS
use SDL;
use SDL::AudioSpec;
SDL::init(SDL_INIT_AUDIO);
my $audio_spec = SDL::AudioSpec->new();
$audio_spec->freq(22050); # 22050Hz - FM Radio quality
$audio_spec->format(AUDIO_S16SYS); # 16-bit signed audio
$audio_spec->samples(8192); # Large audio buffer reduces risk of dropouts but increases response time
$audio_spec->channels(1); # Mono
$audio_spec->callback('main::callback');
sub callback
{
# do something here
}
DESCRIPTION
The "SDL::AudioSpec" structure is used to describe the format of some audio data. This structure is used by "SDL::Audio::open_audio" and
"SDL::Audio::load_wav". While all fields are used by "SDL::Audio::open_audio", only "freq", "format", "samples" and "channels" are used by
"SDL::Audio::load_wav". We will detail these common members here.
METHODS
freq
The number of samples sent to the sound device every second. Common values are 11025, 22050 and 44100. The higher the better.
format
Specifies the size and type of each sample element. Values it can take are:
AUDIO_U8
Unsigned 8-bit samples.
AUDIO_S8
Signed 8-bit samples.
AUDIO_U16 or AUDIO_U16LSB
not supported by all hardware (unsigned 16-bit little-endian)
AUDIO_S16 or AUDIO_S16LSB
not supported by all hardware (signed 16-bit little-endian)
AUDIO_U16MSB
not supported by all hardware (unsigned 16-bit big-endian)
AUDIO_S16MSB
not supported by all hardware (signed 16-bit big-endian)
AUDIO_U16SYS
Either AUDIO_U16LSB or AUDIO_U16MSB depending on hardware CPU endianness
AUDIO_S16SYS
Either AUDIO_S16LSB or AUDIO_S16MSB depending on hardware CPU endianness
channels
The number of separate sound channels. 1 is mono (single channel), 2 is stereo (dual channel).
samples
When used with "SDL::Audio::open_audio" this refers to the size of the audio buffer in samples. A sample is a chunk of audio data of the
size specified in format multiplied by the number of channels. When the "SDL::AudioSpec" is used with "SDL::Audio::load_wav" samples is set
to 4096.
callback
To be documented.
AUTHORS
See "AUTHORS" in SDL.
perl v5.14.2 2012-05-28 pods::SDL::AudioSpec(3pm)