Picon
Favicon

Audio Loop

How do command an SGI Onyx2 to continuously play an audio loop?  I see how
you read and write marker and loop data to and from an audio file (aiff-c
files) through the "af" library calls. What I don't understand is how to
actually play a loop with the "al" library calls.

Tom Mander | 14 Aug 19:41

Re: Audio Loop

Robert,

Not really relevant to this group, but anyway...

I assuming that the sound you have is a loopable sound - i.e. there are
no discontinuities between the end of the file and the start if looped.
Test this using "soundeditor" - it has a loop function.

If the file is short, you could just read the whole lot into a buffer.
Alternatively just continuously reread the file (just seeking back to the
start from the end) and loop until interrupted. For a large file, you could 
even "adaptively cache" the samples into a memory mapped region with calls to
madvise to encourage reclamation as needed (this last one is a slightly
over the top, and most likely overengineering).

The al calls don't care about file boundaries at all.

Tom

"Blickensdorf,
 Robert D" wrote:
> How do command an SGI Onyx2 to continuously play an audio loop?  I see how
> you read and write marker and loop data to and from an audio file (aiff-c
> files) through the "af" library calls. What I don't understand is how to
> actually play a loop with the "al" library calls.

Ketan Mehta | 21 Aug 12:54

Availability of audiofile lib on WinXP

Dear Sir,

We are porting the application from IRIX SGI to WinXP, hence we need to
support the AIFF file recording and editing on WinXP. 

My query is :   Is it possible to use the audiofile and port them on
windows
		and use the ported lib on WinXP in proprietary software ?

Our requirement : To support the AIFF format recording/editing on WinXP.

I will be highly thankful if you can suggest the proper approach.

Thanks in advance

Thanks & Regards
Ketan Mehta

Ralf Baechle | 24 Aug 01:44
Picon
Favicon

ADMIN: New mailing list software on oss


After a long time we're finally retiring Majordomo as mailing list manager
for oss.sgi.com and have replaced it with Ecartis.  From a user perspective
Ecartis is similar to Majordomo, that is subscribing and unsubscribing do
work the same way.  In addition we now offer new features such as a digest
mode.  For more information send an email containing the word "help" to
Ecartis <at> oss.sgi.com.  For a while we'll still have it available under the
old majordomo <at> oss.sgi.com address as well.

  Ralf

sun zongjun | 26 Aug 05:07
Picon

Another program stop working


Hi:
     I am a newbie to audio play .Now  I write one file to play some 
wave files with libaudio .
First I open the wave file using afOpenFile and get some parameters from 
the wave files.
and construct a socket on local computer with  esd_play_stream function. 
The last thing
I want to do is to read frames from the wave files and write them to 
 audio device (
in my computer is /dev/dsp) by system call "write(esd,buf,frame_length)"
    Oh. It seems working fine. But when I run another program, f.e . 
mpg123 , to listen
some music, then run my own program after write the frame into the dsp 
device.  The
mpg123 stop producing any sound. Only run my own program again, mpg123 
can produce
sound too. What happend to my program.
    (Note. I modified the original the  esd_play_file  function. After I 
open socket,  I don't close it immediately ,on the contrary keep it 
open. untill I force it close. )

    Thank you for your help and great work.

    Sun Zongun

sun zongjun | 27 Aug 07:31
Picon

can't connect to esd


Hi;

   I use the libesd to play wav file, but when I connect to esd by
calling esd_play_stream.  I can't get the proper socket ID. What
is the cause of th question ??
   Thank you for help

 Sun Zongjun

Davy Durham | 27 Aug 07:59

Re: can't connect to esd


Sorry.. this is not the correct mailing list to post this question.. and 
I would answer it for you if I could, but I'm unfamiliar with the libesd 
API.  

isn't esound a gnome entity?  You might check gnome's homepage for a 
mailing list about libesd

sun zongjun wrote:

>Hi;
>
>   I use the libesd to play wav file, but when I connect to esd by
>calling esd_play_stream.  I can't get the proper socket ID. What
>is the cause of th question ??
>   Thank you for help
>
> Sun Zongjun
>
>
>
>  
>


Gmane