How to overwrite the header part of a wave file?????

I need to overwirte the header part of a wave file. Any one has ideas or similar experiences?
basically, I want to continousely save wave data from a sound card. At the end of my program, I need to write the data size of the final wave file to the header part of the wave file.
Is there a function to replace the content of a file? Thanks

I assume that what you want to do is add documentation into the header of the wav file such as the media type, location, equipment used .....
Some one may have written some routines to do this in Labview, unfortunately all the ones I have are written in Visual Basic, quite a long time ago.
Here are some pointers in the event that no one has any Labview stuff, we could even knock a few togther, if its not been done.
The WAV file falls into a cateory of Windows files known as RIFF format files, in fact you will see this written into the file header almost at the very front.
I quote here from the Microsoft Technet Article:-
See here for a nice picture and here for full details, although for the header structure I prefer here.
"The basic building block of a RIFF file is a chunk. A chunk is
a logical unit of multimedia data, such as a single frame in a video
clip. Each chunk contains the following fields:
A four-character code specifying the chunk identifier
A doubleword value specifying the size of the data member in the chunk
A data field
Don't be put off by the fact that it often says AVI rather than WAV in the examples, the RIFF format is an extensible file format supporting lots of various media types even custom types. It's just that at the moment people are interested in Video.
There are standard fourcc codes that exist to hold various specific types of information and if one of these is not suitable you can create your own, there is (well was) even a way to regiser your own special type with Microsoft!!
There are a couple of ways of doing the job (assuming some kind sole does not donate a VI library).
1) Handle all the file i/o yourself by reading in the file and then insert the appropriate headers and rewrite the file out again.
    Involved, but cross platform.
2) Muck about with Windows 'mmio' librarys (mmioCreateChunk).
    Platform specific but possibly more reliable???
If you select option 1, then what you have to do is read in the appropriate chunk sizes(lengths) contained in the header, insert your appropriate FOURCC code, size(length) and data then adjust the affected 'chunk' size indicators to put all the various size indicators in the correct place, simple ehhh
If you select option 2, this requires linking to the appropriate DLL, it always my last resort to avoid DLL hell and portability issues.
As an example I wrote my own Turbo Pascal and later Visual Basic handlers which allowed attachment of lots of information from a form, and then created a special media format for the data to allow storing native measured data. These files are still recognised by WAV file readers today such as Media Player 10. Of course the data format is not understood because the encoding type was special, but that's the point.
One final point, there was a tool which read in a WAV file displaying all available headers, with C source (Windows 3.X) supplied in the MSDN toolkit. There are probalby other tools available by now, as a last resort If you decide to have a go I can send you my VB alpha version which reads all standard headers, it might write out a few as well (it was a very long time ago).
Good  luck.
Message Edité par Conseils le 12-10-2005 04:09 PM

Similar Messages

  • Show Subreport Name in the header part of the main Report subreport wise

    Hi,
    I want to create a Report which contains a collection of Subreport.
    In header part of the main report I have one expression which shows specific text for specific subreport.
    In Detail
    I have three subreport named as
    Sureport1
    Subreport2
    Subreport3
    I have given page name for all the three subreport as subreport name.
    Now I create one Main report. Where I drag one table and delete the group.
    I created three rows in this tablix.
    And in each textbox I have inserted one rectangle.
    and place all the three subreport.
    and here my expression is mentioned below.
    =IIf(Globals!PageName Like "Subreport1","Subreport1",
    IIf(Globals!PageName Like "Subreport2","Subreport2",
    IIf(Globals!PageName Like "Subreport3","Subreport3","")))
    This expression is working when I am placing all the subreports inside separate rectangle but not working when I am placing all three subreports in one tablix.
    For both case it is showing in report designer window but in second case it is not showing in the pdf.
    Thanks,
    Aswini Rout

    Hi,
    As the description, I understand that you want to display the subreports’ name on the page header of the main report. When the page display a subreport, display the corresponding subreport name in the header part of the main report.
    Base on my understanding, you should have page break on each subreport(suppose you add the subreports without Rectangle) since there is no group in the main report and there should not be a page break in the main report. If I have misunderstood, please correct
    me.
    I was not able to reproduce the issue currently. How did you define the page name of your main report. If it is possible, please upload your rdl file to your OneDrive and share the link here. You can also capture the screenshot so that I can understand the
    problem in more details.
    Thanks.
    Tracy Cai
    TechNet Community Support

  • How to supress the header if there is no detail record in the report

    Hi,
    I am trying to create a report using the TEXT_IO utility in oracle forms. The header part is created in one program unit and detail part is created in another program unit. How can I supress the header if there is no detail part? I came to know that I can use HOST command . How can I use this? Can any one help me in resolving this?
    My report should apppear in the format specified below.
    case number : 1
    Name Address1 Address2 State ZIp
    XXXXX XXXXXXX XXXXXXXx XXXXX XXXxx
    case number: 2
    Name Address1 Address2 State Zip
    YYYYY YYYYYY YYYYYYY YYYYY YYYY
    Edited by: 837462 on Feb 16, 2011 6:12 PM

    Hi
    i think it's a better idea to paste ur code here...
    but logically... i supposed u have 2 function header_function & detail_function e.g. both functions returns either 1 or 0 if there is data then it returns and the contrary if returns 0
    In the calling these functions i e.g. WHEN-BUTTON-PRESSED u need to validate as follow
    DECLARE
    v_header_output  varchar(2);
    v_detail_output  varchar(2);
    BEGIN
    v_header_output :=  header_function ( PARAMETERS ... , ,);
    v_detail_output :=  header_function ( PARAMETERS ... , ,);
    IF  v_detail_output = 0 THEN
    v_header_output := 0;   -- or u can do some works that change the return of the   header_function  to null or 0
    END IF;
    END;Hope it works...
    Regards,
    Abdetu...

  • How to display the header data on different position in alv report

    hi all,
    how to display the header data on different position in alv report.
    for example ,
    customer                                                   name
      xxxx                                                         xxxx
                     vendor        name     street 
                      xxxx         xxxx      xxxxx
    pls   help me .

    hi
    as per my understanding you need to trnasfer header internal table data  to pdf..
    please check the following links for internal table to pdf..
    Convertion of Internal table data to PDF
    This link is related to ur issue
    Re: how to insert the calling of the FM: OTF to PDF
    Thanks

  • How to modify the coding part of KE30 reports ?

    How to modify the coding part of KE30 reports ,
    so that I can be able to restrict report output based on sales office.
    I am unable to find out the program name also.
    Regards
    Anubhav

    >
    Venkat Reddy wrote:
    > Hi,
    >
    > If u want to know the program running for KE30 just go to SE93 and give KE30
    > and click on display you can see the program running for KE30 will be SAPMKCEE.
    > I think this is much simpler :-).
    >
    > Rather than change the standard report try to prepared your own that will be more
    > comfortable since it will be complex task to achieve editing the standard program.
    > Good Luck
    >
    > Regards
    > VEnk@
    >
    > Edited by: Venkat Reddy on Dec 11, 2009 4:52 PM
    Venkat,your answer is much simpler If the OP knows there is a tcode Se93, what if he/she does not know it?? 
    P.S: Just a thought.
    Regards.
    Vishwa.

  • How to set the header variables in weblogic

    Hi,
    We have a following set up in our environment.
    We have weblogic and on the top of it we have apex listener deployed which redirects Oracle Apex.
    My Issue:
    How can we set up the header variables in weblogic once the user is authenticated against weblogic server.
    We are struck here, not knowing how to set the header variables in weblogic server. Its fairly straight forward for Oracle Access Manager or others..
    Thanks
    Ramesh P.

    maybe you are looking for the routing options
    http://docs.oracle.com/cd/E13159_01/osb/docs10gr3/userguide/modelingmessageflow.html#wp1125348

  • Hi gurus  in BDC how to print the header on the top of the data

    hi gurus  in BDC how to print the header on the top of the data

    hi,
    while downloading the file using gui_download function module
    in that function module in  TABLES  filednames parameter is used to get headings
    example:
    CALL FUNCTION 'GUI_DOWNLOAD'
         EXPORTING
      BIN_FILESIZE                    =
           FILENAME                        = FILENAME1
          FILETYPE                        = 'ASC'
          WRITE_FIELD_SEPARATOR            = 'X'
         TABLES
           DATA_TAB                        =   T_ZETBR
          FIELDNAMES                       = IT_HEADER
    reward if useful,
    thanks and regards

  • How to wrap the heading text in alv.

    HI all,
          I need help, how to wrap the heading text in alv.
    can any help ... plz..
    Advanced Thanks
    Regards
    GUhapriyan

    Hello GuhaPriyan,
    I assume that you're referring to the ALV Grid's title. The maximum length for this title is 70 characters and this would generally fit in the one line.
    Are you intending to wrap it because you purposefully want the text to come in two lines? In that case, I'm not sure that it's possible.
    But otherwise, there's an option in the Layout called SMALLTITLE. You can set this attribute so that the title would be displayed in a amaller font and hopefully, all of your text shows up on the screen.
    Regards,
    Anand Mandalika.

  • How to start the IR part in XI

    Hi All,
    How to Start the Design part in XI while Converting the PDF file into Text file using Module Processor?
    Pls let me know.......
    Regards,
    Govindu.

    Govind,
    If you want some changes to be done to the file like mapping etc then you need to have the IR setting done too.
    But if you are going to use XI as an FTP service you need no configuration on the IR except creating the Datatype , message type and message Interfaces .
    Take a look at this blog,
    <a href="/people/shabarish.vijayakumar/blog/2006/04/03/xi-in-the-role-of-a-ftp">XI in the role of FTP</a>
    Regards,
    Bhavesh

  • How to find the header and item level status of a CRM contract ?

    Hi,
    Few questions
    A. How to find the header and item level status of a CRM contract ? My req is to select all the contract line items which are in CLOSED status.
    B. How to get the BPs associated with a contract ?
    Anyone have the list of CRM tables and the relation amongst them. Please mail me in [email protected]

    CRMD_ORDERADM_H     Contains the Header Information for a Business Transaction.
    Note:
    1.     It doesn’t store the Business Partner
           responsible for the transaction. To 
           get the Partner No, link it with
           CRM_ORDER_INDEX.
    2.     This table can be used for search
           based on the Object Id(Business
           Transaction No). 
    CRMD_CUSTOMER_H     Additional Site Details at the Header Level of a Business Transaction
    CRMD_LINK     Transaction GUID set for all the Business Transactions
    CRMD_ORDER_INDEX     Contains Header as well as Item details for a Business Transaction.
    Note:
    1.     It doesn’t store the Business 
          Transaction No (Object ID).
          To get the Business Transaction No  
          link the table with
          CRMD_ORDERADM_H
    2.   This table can be used for search
          based on the Partner No
    CRMD_ORDERADM_I     Stores the Item information for a Business Transaction. The scenarios where we have a Contract Header and within contract we have Line Items for the contract, this table can be useful.
    E.g. Service Contracts
    CRMD_CUSTOMER_I     Additional Site Details at the Item Level of a Service Contract
    Pl.reward points.......

  • How to skip the header rows of the file using UTL_FILE?

    Hi,
    I created a procedure to read the file from shared location using UTl_FILE package. But, I stucked why because I don't know how to skip the header rows as those rows are headings for one of the report.Since, please help me.
    Regards,
    Vissu.....

    vissu wrote:
    Hi,
    I created a procedure to read the file from shared location using UTl_FILE package. But, I stucked why because I don't know how to skip the header rows as those rows are headings for one of the report.Since, please help me.
    Regards,
    Vissu.....UTL_FILE just reads data from the file. It has no concept of what could be a "header" or "body" or "records" or "footer" or any other data based concept. If you want to skip lines of a file, you will just need to read them using UTL_FILE and ignore them.

  • How to boldface the header for ONE column

    hi,
    I want to know how to boldface the header for ONE column. The following will boldface the header for all the columns in the table
    table.getTableHeader().setFont(new java.awt.Font("Dialog", 1, 12));
    Thanks.
    Jrabi

    jtable.getColumnModel().getColumn( indexOfBoldColumn ).setHeaderRenderer( TableCellRenderer aRenderer )

  • How to get the header to downloading fine

    Hi,
    i am downloading xl file for which i need to get the header.i doesnt no the fieldnames.how to get the header for entire file.

    Hi,
    For this please create an internal table for field names and pass it to FM' WS_DOWNLOAD'.
    Sample code:
    * internal table for headers
    DATA : BEGIN OF it_fieldnames OCCURS 0,
           name(100),
           END OF it_fieldnames.
    g_fname = 'C:\Documents and Settings\kut3kor\Desktop\kar4.xls'.
    *populate the internal table
    it_fieldnames-name = 'Material Number'.
    APPEND it_fieldnames.
    it_fieldnames-name = 'Material type'.
    APPEND it_fieldnames.
    it_fieldnames-name = 'Material group'.
    APPEND it_fieldnames.
    CALL FUNCTION 'WS_DOWNLOAD'
    EXPORTING
    *   BIN_FILESIZE                  = ' '
    *   CODEPAGE                      = ' '
       FILENAME                      = g_fname
       FILETYPE                      = 'DAT'
    *   MODE                          = ' '
    *   WK1_N_FORMAT                  = ' '
    *   WK1_N_SIZE                    = ' '
    *   WK1_T_FORMAT                  = ' '
    *   WK1_T_SIZE                    = ' '
    *   COL_SELECT                    = ' '
    *   COL_SELECTMASK                = ' '
    *   NO_AUTH_CHECK                 = ' '
    * IMPORTING
    *   FILELENGTH                    =
      TABLES
        data_tab                      = gt_mara[]
       FIELDNAMES                    = it_fieldnames[]
    * EXCEPTIONS
    *   FILE_OPEN_ERROR               = 1
    *   FILE_WRITE_ERROR              = 2
    *   INVALID_FILESIZE              = 3
    *   INVALID_TYPE                  = 4
    *   NO_BATCH                      = 5
    *   UNKNOWN_ERROR                 = 6
    *   INVALID_TABLE_WIDTH           = 7
    *   GUI_REFUSE_FILETRANSFER       = 8
    *   CUSTOMER_ERROR                = 9
    *   OTHERS                        = 10
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Regards,
    Karuna.

  • The Header in my home page is truncated. My home page Header is cut off. The header appears in Internet Explorer, but not in Mozilla Firefox 3.6.13. How to make the header display in Firefox?

    The Header in my home page is truncated. My home page Header is cut off. The header appears in Internet Explorer, but not in Mozilla Firefox 3.6.13. How do make the header display?

    (Images or animations do not show) worked well.

  • How to reconstruct the missing parts list (co24)

    Dear All
    How to reconstruct the missing parts list (co24).by using report PPCOXPR1.?
    Rgds
    Pankaj Agarwal

    Hi Pankaj,
    You need to run the program "PPCOXPR1" using SE38. This program will create missing part index in RESB table.
    Hope this helps you, Reward your points.
    Regards,
    Prasobh

Maybe you are looking for

  • Character / Input corruption after session lock

    One of our larger customers has the following setup: Windows 2008 R2 Active Directory with 2x DC at a datacentre and 1x DC in their head office, 3x RDS servers in a DNS RR terminal server farm and a DC acting as a gateway server.  The end user access

  • Memory leak analysis

    I've been writing a multi-threaded, non-blocking I/O game server and I'm kinda taking a break from hammering out code at the moment to analyze how efficient the server is. With 100-300 clients each transmitting data and receiving a proper response on

  • Oracle 9.0.1 error on RH 133 9.01. Please help

    I am new to Linux please help me. This message occur while i run runInstaller. Xlib: connection to ":0.0" refused by server Xlib: No protocol specified java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPL

  • Dynamic columns according to values in the database

    Hi, Im having a view which has some fice columns in it. The view is to show the sales details of differeent stores. Im having one column called store name which has list of stores. Now i want to show the details of each store in a separate column in

  • Bit.ly URLs won't show up as links when exported to PDF.

    I'm trying to link some bit.ly links in my document and whenever I export to a PDF, they turn to text or they're clickable but go to an invalid page. I've created hyperlinks for them again and again, but now they're mostly just turning to text instea