RaccoonCity Posted June 2, 2015 Share Posted June 2, 2015 I'm trying to modify a wav file in 010 hex Editor. all I want is remove this 'fact' chunk:66 61 63 74 04 00 00 00 48 1A 00 00and add this string to the end:73 6D 70 6C 3C 00 00 00 00 00 00 00 00 00 00 00 2C 51 00 00 3C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 74 49 4D 45 08 00 00 00 DE 07 09 18 17 0F 27 00 76 65 72 2E 04 00 00 00 01 00 00 00When I export it and put it in a Riff editor, this warning message pops up:"There's extra junk at the end of the file."As an amateur, my best guess is it has something to do with the length of the modified strings. If it's so then the question is, how may I calculate the right length and remove extra junks ?Here's is the Source Wavehere's the Modified Wave Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 2, 2015 Moderators Share Posted June 2, 2015 RaccoonCity,Welcome to the AutoIt forums.Is there actually an AutoIt question in there or are you just making a general query about WAV files? If the former, please explain exactly what problem you are having with AutoIt - if the latter I suggest searching t'interWeb for information about the RIFF header, which holds the overall size of the WAV file and needs to be changed when you subtract add bytes to it.M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
RaccoonCity Posted June 3, 2015 Author Share Posted June 3, 2015 Oops! Apologies!My question is kind of related to hex editors and I'm not sure if it has anything to do with autoit.. I just searched for my problem and this forum was on top. I thought it was a regular forum where I can ask my question. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 3, 2015 Moderators Share Posted June 3, 2015 RaccoonCity,This is a forum dedicated to helping people write scripts in the AutoIt language, not a place for general programming questions. But my advice still stands - go and look at the RIFF header format as you will need to adjust the size parameter if you want to change the size of the WAV file.But take a look around before you go - we would be happy to see you back if you decided AutoIt was something you wanted to use in future.M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now