how can i play .raw audio file in c or c++ program


plz can any one guide me to play an raw audio file using c or c++ programs .and raw file should be played with some sampling frequency(8000).

Comments

  • : plz can any one guide me to play an raw audio file using c or c++ programs .and raw file should be played with some sampling frequency(8000).
    :
    What platform? If Windows or Linux, you can find examples of implementations of these things in the AMaMP source tree...

    http://cvs.sourceforge.net/viewcvs.py/amamp/core/

    Check amamp_io_win32wave.c for Win32 and amamp_io_devdsp.c for Linux. You basically need to read the data and write it to the appropriate place using APIs/system calls, so a lot of what is in these files you can ignore (e.g. sample rate conversion code).

    Hope this helps,

    Jonathan

    ###
    for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
    (tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
    /(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion