Audio mix soft for Solaris

Audio mix soft for Solaris

Post by Driz » Fri, 31 Dec 1999 04:00:00



Is there some text tool to control de audio volumen in a Ultra - 1 :?

Well, under X I can used audiotool, but I have remove de OW enviroment...

Saludos
Drizzt
--
____________________________________________________________________________
Drizzt Do'Urden                Three rings for the Elves Kings under the Sky  

http://www.arrakis.es/~terron  hall of stone
FIDO 2:345/506.440             Nine for the Mortal Men doomed to die

 
 
 

Audio mix soft for Solaris

Post by Thomas Tornblo » Sun, 02 Jan 2000 04:00:00



> Is there some text tool to control de audio volumen in a Ultra - 1 :?

> Well, under X I can used audiotool, but I have remove de OW enviroment...

> Saludos
> Drizzt
> --
> ____________________________________________________________________________
> Drizzt Do'Urden                Three rings for the Elves Kings under the Sky  

> http://www.arrakis.es/~terron  hall of stone
> FIDO 2:345/506.440             Nine for the Mortal Men doomed to die

Try this:

---
/*
 * Simple app intended to be used from /usr/openwin/lib/speckeysd.map
 *
 * It allows the audio volume to be controlled via a type 5 or 6 keyboard
 *
 * Add the following lines to /usr/openwin/lib/speckeysd.map:
 * SunAudioMute                    -       /usr/local/bin/auctl -m
 * SunAudioLowerVolume             r       /usr/local/bin/auctl -d 8 -k
 * SunAudioRaiseVolume             r       /usr/local/bin/auctl -u 8 -k
 * adjust the path to the binary.
 */

#include <stdio.h>
#include <stdlib.h>
#include <sys/audioio.h>

char audevbuf[100];

void
setau(int aufd, int muteflg, int incdec)
{
    audio_info_t auinfo;

    if (ioctl(aufd, AUDIO_GETINFO, &auinfo) < 0) {
        perror("getinfo");
        exit(1);
    }

#if 0
    printf("mute %d, gain %d\n",
           auinfo.output_muted,
           auinfo.play.gain);
#endif

    auinfo.output_muted ^= muteflg;

    /*
     * auinfo.play.gain is unsigned, which makes the following if()
     * catch both over and underflow
     */

    if (incdec + auinfo.play.gain > 255)
        auinfo.play.gain = incdec < 0 ? 0 : 255;
    else
        auinfo.play.gain += incdec;

    if (ioctl(aufd, AUDIO_SETINFO, &auinfo) < 0) {
        perror("setinfo");
        exit(1);
    }

Quote:}

int
main(int argc, char *argv[])
{
    int aufd;
    char *audev;

    int muteflg = 0;
    int kflag = 0;
    int incdec= 0;
    int c, errflg = 0;
    extern char *optarg;

    while ((c = getopt(argc, argv, "u:d:mk")) != EOF)
        switch (c) {
        case 'u':
            incdec = atoi(optarg);
            break;
        case 'd':
            incdec = -atoi(optarg);
            break;
        case 'm':
            muteflg = 1;
            break;
        case 'k':
            kflag = 1;
            break;
        case '?':
            errflg = 1;
            break;
        }

    if (errflg) {
        fprintf(stderr, "Usage: %s [-u <n>] [-d <n>] [-m] [-k]\n", argv[0]);
        exit(1);
    }

    if ((audev = getenv("AUDIODEV")) == 0)
        audev = "/dev/audio";

    snprintf(audevbuf, sizeof(audevbuf), "%sctl", audev);

    if ((aufd = open(audevbuf, 0)) < 0) {
        perror("open");
        exit(1);
    }

    if (kflag) {
        while (getchar() == 'k')
            setau(aufd, muteflg, incdec);
    } else {
        setau(aufd, muteflg, incdec);
    }

    exit(0);

Quote:}

--


Sun Microsystems AB      Fax: +46 8 623 9102

 
 
 

Audio mix soft for Solaris

Post by Dennis Clark » Sun, 02 Jan 2000 04:00:00


Well .. firstly, the sound support in Solaris is completely lacking.  So long as your happy with
fairly simple sound then you can use audioplay to play a u-law encoded file, or better yet, get Sun
ShowMeTV for mpeg files and video.  Don't attempt to use it for anything relatively complex as it
will simply crash and core dump.  Do not attempt MOV files for Apple QuickTime as they are not
supported regardless of what the documentation says.  See
http://www.interlog.com/~dclarke/showmetv/SUNWsmtv.html for an example of what I mean.

or

as per the man page for audioplay ...

audioplay(1)              User Commands              audioplay(1)

NAME
     audioplay - play audio files

SYNOPSIS
     audioplay [ -iV ] [ -v vol ] [ -b bal ]
          [ -p speaker | headphone | line ] [ -d dev ] [ file...]

AVAILABILITY
     SUNWaudio

     -v vol     Volume:  The output volume is set to  the  speci-
               fied  value before playing begins, and is reset to
               its previous level when audioplay exits.  The  vol
               argument  is  an  integer value between 0 and 100,
               inclusive.  If this argument is not specified, the
               output  volume  remains at the level most recently
               set by any process.

     -b bal     Balance:  The output balance is set to the speci-
               fied  value before playing begins, and is reset to
               its previous level when audioplay exits.  The  bal
               argument is an integer value between -100 and 100,
               inclusive.  A value of -100  indicates  left  bal-
               ance, 0 middle, and 100 right. If this argument is
               not specified, the output balance remains  at  the
               level most recently set by any process.

     -p speaker | headphone | line
               Output Port:  Select the  built-in  speaker,  (the
               default),  headphone jack, or line out as the des-
               tination of the  audio  output  signal.   If  this
               argument  is  not  specified, the output port will
               remain unchanged.  Not all audio adapters  support
               all  of  the output ports.  If the named port does
               not exist, an appropriate substitute will be used.

 
 
 

Audio mix soft for Solaris

Post by Philip Bro » Sun, 02 Jan 2000 04:00:00


Note: there is a standard for USENET posts, and it is 80 chars or less
per line. Please stick to it.


>Well .. firstly, the sound support in Solaris is completely lacking.  So long as your happy with
>fairly simple sound then you can use audioplay to play a u-law encoded file, or better yet, get Sun
>ShowMeTV for mpeg files and video.  Don't attempt to use it for anything relatively complex as it
>will simply crash and core dump.  Do not attempt MOV files for Apple QuickTime as they are not
>supported regardless of what the documentation says.

but you can download third-party suport for that sort of thing. There is
a plugin for sparc, finally (but no x86!) and you can also look up and get
xanim, which will play many audiovideo clips.

Plus, in solaris 7, I believe they finally updated the cd tools, so that
sdtaudio (or something like that) will play both .au, and .wav files.

--
[Trim the no-bots from my address to reply to me by email!]
[ Do NOT email-CC me on posts. Pick one or the other.]

The word of the day is mispergitude

 
 
 

Audio mix soft for Solaris

Post by Steve Bellen » Mon, 03 Jan 2000 04:00:00





>> Note: there is a standard for USENET posts, and it is 80 chars or less
>> per line. Please stick to it.

>OH PeeeLeez !  Its just a bit early in the MILLENNIUM to get sanctimonious!
>Been posting here for years and no one else *ed.  Must be your hang-over.

Let me be the second to *, I always read news in a 80 column window.
--
http://www.veryComputer.com/~bellenot
bellenot <At/> math.fsu.edu
+1.850.644.7189 (4053fax)
 
 
 

Audio mix soft for Solaris

Post by Dennis Clark » Mon, 03 Jan 2000 04:00:00


Quote:

> Let me be the second to *, I always read news in a 80 column window.

I've gotten enough traffic about the * tone of my post that I most
certainly stand corrected.  And humbly too, I'll admit.  

Day 2 of the new "de-facto" millennium ( let it slide Greg :) ) and I've been
sufficiently flamed into submission.

A great start.

Dennis  :|

ps : But I got some really great hardware for Christmas!  Great horse-power!

 
 
 

Audio mix soft for Solaris

Post by Rich Tee » Tue, 04 Jan 2000 04:00:00



> I've gotten enough traffic about the * tone of my post that I most
> certainly stand corrected.  And humbly too, I'll admit.  

At least you don't post in HTML; that's what really pisses me off!

Quote:> A great start.

I'd say the rambling story you posted the other night makes up for it;
quite an interesteing read...

Quote:> ps : But I got some really great hardware for Christmas!  Great horse-power!

Toys, toys, toys!  What'd ya get: a 440MHz upgrade for your Ultra 10?!  :-)

--
Rich Teer (who reads in 132 columns, but tries to post in <= 80)

NT tries to do almost everything UNIX does, but fails - miserably.

The use of Windoze cripples the mind; its use should, therefore, be
regarded as a criminal offence.  (With apologies to Edsger W. Dijkstra)

If it ain't analogue, it ain't music.

Voice: +1 (250) 763-6205
WWW: www.rite-group.com

 
 
 

Audio mix soft for Solaris

Post by Rich Tee » Tue, 04 Jan 2000 04:00:00



> Nope.  Different kind of hardware.  I picked up a Year 2000 GMC Seirra 4x4
> with leather interior. Loaded.  Very cool.

Ahh, I should've guessed, having read your web page.  Hopefully from a different
dealer than the one in your amusing story!

Quote:> I did not know that I could upgrade my Ultra10 to 440MHz?  This is one of the
> first series and is a 300MHz Ultra IIi ( I think ) and may or may not accept
> the upgrade.  What's the price tag on that item?

Dunno for sure on both counts - you may have to upgrade the motherboard.
There might be some pricing info at www.sun.com/sparc.

Quote:> What's your opinion on the Sun PCI card that runs WinDoze?

I've not used it myself - I avoid all things to do with Windoze if at all
possible.  But, if you need to run Windoze apps, I guess it would be more
convinient than buying another whole machine, with it's attendant monitor
and keyboard.

Quote:> For a giggle .. here is an actual mug-shot picture of Bill Gates when he was
> arrested in New Mexico ..

Yes!!  Death to Bill!!

--
Rich Teer

NT tries to do almost everything UNIX does, but fails - miserably.

The use of Windoze cripples the mind; its use should, therefore, be
regarded as a criminal offence.  (With apologies to Edsger W. Dijkstra)

If it ain't analogue, it ain't music.

Voice: +1 (250) 763-6205
WWW: www.rite-group.com

 
 
 

Audio mix soft for Solaris

Post by Anthony Mandi » Wed, 05 Jan 2000 04:00:00




> > At least you don't post in HTML; that's what really pisses me off!

> Ha ha .. yeah I've turned that switch off long ago.  Got flamed pretty heavy
> for that once upon a time ...

        And while we're at it can you please stop changing the subject line
        on your followups. Its a bit disconcerting in threads (but nowhere
        near as bad as posting HTML and lines > 80 chars!).

Quote:> What's your opinion on the Sun PCI card that runs WinDoze?

        Might as well ask what my opinion of Windblows is.

Quote:> For a giggle .. here is an actual mug-shot picture of Bill Gates when he was
> arrested in New Mexico ..

> http://www.interlog.com/~dclarke/busted.html

        Would you buy software from this criminal?

-am

 
 
 

Audio mix soft for Solaris

Post by Dennis Clark » Wed, 05 Jan 2000 04:00:00


Quote:

>         And while we're at it can you please stop changing the subject line
>         on your followups. Its a bit disconcerting in threads (but nowhere
>         near as bad as posting HTML and lines > 80 chars!).

Why not use a decent news reader .. like NetScape.  NetScape handles the
threads based on the message id number, not the subject line.
 
 
 

Audio mix soft for Solaris

Post by Anthony Mandi » Thu, 06 Jan 2000 04:00:00



> >         And while we're at it can you please stop changing the subject line
> >         on your followups.

> Why not use a decent news reader .. like NetScape.  NetScape handles the
> threads based on the message id number, not the subject line.

        If you look very, very closely and examine the header of my posts
        you will no doubt discover that I do use Netscape. Changing the
        subject without noting the former subject is still disconcerting
        ... until I notice who the poster is ("Its that damn Dennis Clarke
        changing the subject again!").

-am

 
 
 

Audio mix soft for Solaris

Post by Dennis Clark » Thu, 06 Jan 2000 04:00:00




> > >         And while we're at it can you please stop changing the subject line
> > >         on your followups.

> > Why not use a decent news reader .. like NetScape.  NetScape handles the
> > threads based on the message id number, not the subject line.

>         If you look very, very closely and examine the header of my posts
>         you will no doubt discover that I do use Netscape. Changing the
>         subject without noting the former subject is still disconcerting
>         ... until I notice who the poster is ("Its that damn Dennis Clarke
>         changing the subject again!").

> -am

Uh huh ... X-Mailer: Mozilla 4.06 [en] (X11; I; SunOS 5.5.1 sun4m)

Well, I thought it was an Australian problem of some sort.  The letters of the
messages would arrive in the same orientation that they left because the
packets are maintained in perfect sync during their movement down to the
bottom of the planet.  There would be some jitter over the ATM lines because
the header information gets modified while in transit but the packet
assemblers replace that data on the receiving end.  That would have all of the
message arriving with the letters in a northern hemisphere orientation and
thus would have to be flipped.  I thought that was the problem, but, maybe I'm
wrong.

That was pretty good huh?  I really have to tell a user something like that
someday.

You will note that I did not change the subject line at all.

That's it though.  I'm not making any more changes.  None of these things were
in my new years resolutions and if I have to get one more criticism from
someone on how to operate a new reader then I'm gonna completely snap and
start posting graphically, in HTML, 132 characters wide and with a VeriSign
digital signature just to top it off.  That would be the social equivalent of
sitting in a five star restaurant and celebrating a fine meal by gargling the
wine and producing the maximum gastronomic noises possible.  The Blues
Brothers come to mind.

Dennis

ps: Yes its that damn Dennis Clarke again but I fail to see where I've been an
annoyance over the past three years ....

 
 
 

Audio mix soft for Solaris

Post by Matt Atterbur » Sun, 09 Jan 2000 04:00:00


Just ignore him Dennis, he's just another whinging Aussie (check my
location before you flame :-). _I_ like your posts :-)

PS. Would all Yanks (:-) _please_ learn that Aussie is pronounced with
    a *voiced* `s' not a sibilant 's' (so, it's "ozzy", *not* "ossy").
    Just by-the-by :-)

m.




> > > >         And while we're at it can you please stop changing the subject line
> > > >         on your followups.

> > > Why not use a decent news reader .. like NetScape.  NetScape handles the
> > > threads based on the message id number, not the subject line.

> >         If you look very, very closely and examine the header of my posts
> >         you will no doubt discover that I do use Netscape. Changing the
> >         subject without noting the former subject is still disconcerting
> >         ... until I notice who the poster is ("Its that damn Dennis Clarke
> >         changing the subject again!").

> > -am

> Uh huh ... X-Mailer: Mozilla 4.06 [en] (X11; I; SunOS 5.5.1 sun4m)

> Well, I thought it was an Australian problem of some sort.  The letters of the
> messages would arrive in the same orientation that they left because the
> packets are maintained in perfect sync during their movement down to the
> bottom of the planet.  There would be some jitter over the ATM lines because
> the header information gets modified while in transit but the packet
> assemblers replace that data on the receiving end.  That would have all of the
> message arriving with the letters in a northern hemisphere orientation and
> thus would have to be flipped.  I thought that was the problem, but, maybe I'm
> wrong.

> That was pretty good huh?  I really have to tell a user something like that
> someday.

> You will note that I did not change the subject line at all.

> That's it though.  I'm not making any more changes.  None of these things were
> in my new years resolutions and if I have to get one more criticism from
> someone on how to operate a new reader then I'm gonna completely snap and
> start posting graphically, in HTML, 132 characters wide and with a VeriSign
> digital signature just to top it off.  That would be the social equivalent of
> sitting in a five star restaurant and celebrating a fine meal by gargling the
> wine and producing the maximum gastronomic noises possible.  The Blues
> Brothers come to mind.

> Dennis

> ps: Yes its that damn Dennis Clarke again but I fail to see where I've been an
> annoyance over the past three years ....

--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

 
 
 

1. mixed mode audio/data

I have more coasters than I can shake a stick at.

I am trying to use burncd to burn a cd with a small *.iso file and a
number of audio tracks. (but I want no gaps between the audio tracks.)

The standard:

 burncd -f /dev/acd0c data file1 audio file2 file3 fixate

works (as far as I can tell, but I didn't label this stack of coasters)
but since the audio tracks are a lecture, I prefer to not have gaps
between the audio tracks. I can't get the command line right. The
resulting cd can't be mounted or played.

Here are some of my attempts:

$ burncd -f /dev/acd0c -s 4 -d -n audio *.raw data data.iso fixate
but the cd cannot be mounted.

$ burncd -f /dev/acd0c -s 8 -d -p data data.iso audio *.raw fixate
Can't be played or mounted.

$ burncd -f /dev/acd0c -s 8 -d data data.iso audio *.raw fixate
won't mount or play

Thanks.

2. staroffice install woes

3. How to Audio Mixing ??

4. OS2.1 Boot Manager or Lilo?

5. Audio Mixing Question:

6. Problems with laptop, Xircom Realport Cardbus Ethernetcard 10/100 and Mandrake 8.0

7. audio soft

8. sis 6326 works correctly !!!

9. AIX audio mixing problems

10. Font problems mixing Solaris 1 and Solaris 2

11. Real Audio 3.0/Solaris - "Can't open audio device"

12. Audio mixer for /dev/audio or USB audio?