roar_vs_volume_get(3) RoarAudio Programmer's Manual roar_vs_volume_get(3)NAME
roar_vs_volume_get, roar_vs_volume_mono, roar_vs_volume_stereo - Get or set volume for audio stream
SYNOPSIS
#include <roaraudio.h>
int roar_vs_volume_get (roar_vs_t * vss, float * l, float * r, int * error);
int roar_vs_volume_mono (roar_vs_t * vss, float c, int * error);
int roar_vs_volume_stereo (roar_vs_t * vss, float l, float r, int * error);
DESCRIPTION
Those functions are used to get or set volume for the given stream.
roar_vs_volume_get() gets the volume for the given stream in stereo form as a left and a right component (L/R). If you need the mono volume
just devide the sum of both by two. See examples below.
roar_vs_volume_mono() sets the mono volume for the stream. Balance information is not kept.
roar_vs_volume_stereo() sets the stereo volume for the stream as left and rigth component (L/R).
PARAMETERS
vss The VS object for wich volume is get or set.
l, r, c
The volume for left, right or center (mono) channel. Value is a float in range zero to one. Zero means this channel is fully muted.
One means the channel is passed without altering the amplitude.
Small numerical errors are detected and corrected. Bigger errors will result in a out of range error.
Note that to mute the stream you MUST NOT use volume setting but roar_vs_mute(3).
error This is a pointer to a integer used to store the error value in case of error. This can be NULL if not used but it is very recom-
mended to use this error value to report good error messages to the user.
RETURN VALUE
On success these calls return 0. On error, -1 is returned.
EXAMPLES
Getting mono volume:
float l, r, c;
int err;
if ( roar_vs_volume_get(vss, &l, &r, &err) == -1 ) {
/* handle error */
}
c = (l + r)/2.;
SEE ALSO roarvs(7), libroar(7), RoarAudio(7).
RoarAudio May 2011 roar_vs_volume_get(3)
Hello,
I have a question.
In the HMC if you have VIO server and LPARS already configured, the system planning tool will generate the report for you simply by clicking Create a New System --> Select the Managed Server and it will do it.
1)
- How could I do the same if I don't have the... (1 Reply)
Is there a way to have the VIO name displayed as the command prompt on a VIO server when you switch to the oem_set_env user? We have several VIO servers on several frames and want to be sure we are entering/changing info on the correct VIO. (4 Replies)
Hello,
Can someone point to me document or the method to make failover for VIO Servers ?
I have one VIO_Server1 which has 4 AIX LPARS
- From the VIO_SERVER1 I have assigned virtual SCSI DISK to the four LPARS
- For Ethernet I have used LHEA
So, if my VIO Server1 crashes all the LPARS... (17 Replies)
I hope there is someone out there that understands VIO settings on a JS23.
The problem I have is the VIO server already exists but I need to increase the number of VSCSI adapters (VHOST).
If this was a normal LAPR on a p series using an HMC I would simply create a virtual SCSI adapter and... (3 Replies)
Hello guys
I have been trying to restore a VIO server from NIM using the nim_resource.tar file created from the same VIO lpar. The restoration goes fine and after 99% I get the following error
0516-304 putlvodm: Unable to find device id 000b5f62263b70a50000000000000000 in the Device... (1 Reply)
Hi Guys,
I'm working on building a new 595 machine.. I'm try to achieve high availability for the VIO clients using 2 VIO servers, The ethernet part is satisfied using SEA failover, Now how do I achieve redundancy for the disks, its the servers internal disk attached to the scsi cards...
... (2 Replies)
trying to put VIO server software into this p520, firmware upgraded to the latest and greatest..SF240_415_318 , I think
a few questions, on this practice AIX machine on AIX 7.1
VIO can only be installed if ASMI or HMC is running ???
if so, perhaps ASMI is much simpler, since I will need to... (2 Replies)
Hello AIX GURU's
Can anybody tell me the steps to crate shared VG (enhanced concurent) for my Lpars from VIO server?
my questions are:
1.
Should I crate Enhanced Concurent VG in VIO and map it using virtual Scsi to Lpar?
or
2. Can I just create virtual SCSI in VIO and map to Lpar and... (1 Reply)
Hi Team,
Please help me to resolve the below backup (backupios) issue on my VIO.
My VIO is a SAN booted from EMC and powerpath has been installed on this.
We already run pprootdev fix and linked the /dev/ipldevice to rootvg hdisk.
... (2 Replies)