LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to obtaining mp3 header

I can't look at your VI (only 7.0 here, you can backsave using File>>Save with Option>>Save for previous), but like Gerd said, you will most likely have to convert the ASCII stream into an array of bits. This was demonstrated in the VI I attached.

To search the array you can try using a for loop to go over every element (using auto-indexing) and start\reset a counter based on the T\F values, or you can use Search 1D array and increment the start index each time (you will have to search alternately for T and F and substract where you are now from where you found the next T\F to see if you have 11 bits) or find some other way (there are probably more efficient ones).

Here's a quick modification along those lines. It doesn't handle all cases (for example, what happens if it doesn't find T or F at all), but it show you the general direction. Also, remember what Gerd said about the size. You can use the read VI to only read a certain number of bytes from the file.

___________________
Try to take over the world!
0 Kudos
Message 11 of 14
(942 Views)
Thanks guys!
0 Kudos
Message 12 of 14
(932 Views)
If you come up with some working code, why not post it here?
Someone else might be needing it in the future...

___________________
Try to take over the world!
0 Kudos
Message 13 of 14
(928 Views)

I am very interested if you have any working code on getting the mp3 header.

B.R.

Marcus

______________________________________________

Marcus Törndahl (System Architect)
0 Kudos
Message 14 of 14
(878 Views)