Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Multimedia > Audio

    LibSound77 40

    Download button

    Downloads: 333  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    T. Boudet | More programs
    Freely Distributable / FREE
    July 17th, 2007, 16:35 GMT
    ROOT / Multimedia / Audio

     Read user reviews (0)  Refer to a friend  Subscribe

    LibSound77 description

    LibSound77 is a library for producing sound data in FORTRAN77 programs compiled with g77.

    LibSound77 is a library for producing sound data in FORTRAN77 programs compiled with g77.

    It provides a small and dirty, but usable, interface for outputting sound to speakers or .wav files. It has only been tested on computers of the i386 architecture.

    Playing sound:

    Stereo output are currently not supported, but work on it is in progress... See the file beep77.f for example code.
    call ao77ini()
    Initialise library, must be called before ploping.
    call ao77set(samplerate, nbrchannels)
    set up parameters: samplerate is an integer like 44100, nbrchannels is an integer and must be 1.
    call ao77out(sample)
    Put a sound sample, who is an integer*2, on the way to the speakers. Do it as quickly as possible...
    call ao77end()
    Stop the sound-system, release ressources. Must be called after use

    Writing and reading .WAV

    Stereophonics files are now supported, still experimental. See the file sinus.f for writing example code. See the file play77.f for reading example code.
    fn = sndfopen('plop.wav', MODE, rate, channels)
    Open a file for reading, if mode is 'I' or writing if mode is 'O'. You can have up to 42 files simultaneously open. When you are a writer, you must set channels to 1 or 2.
    call sndfput(fn, sample)
    Add a sample to the file. Samples are integer*2 values.
    call sndfput2(fn, left, right)
    Add two samples to the stereo file. Samples are integer*2 values.
    err = sndfget(fn, sample)
    Get a sample from a file opened for read. When success, return value is 1, when at end of file, return value is 0. Negatives are errors.
    call sndfclose(fn)
    Flush all datas and close the file.

    What's New in This Release:

    Stereo input/output functions were added.



    Product's homepage

      


    TAGS:

    producing sound | sound library | FORTRAN77 library | LibSound77 | producing | sound



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM