Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Encoding & Decoding - same file at the same time (Read 2954 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Encoding & Decoding - same file at the same time

I have some technical questions, I have looked at the forums and this seems to be a great place to ask.

I have been contracted to develop an audio application that requires long duration recording - several hours at a time.  However, they want to be able to scan and listen to the recording on the fly.

My preliminary demo application was developed in Visual Basic 6. (I'm truly ashamed but the schedule is intensely short)

I have the recording component completed and decided MP3 was my best option for compression (I was also looking at OGG because of MP3 licensing issues). 

My issue arises in playing back that MP3 file as it is still being recorded - I do not need to be able to play it live, but I need to be able to seek through the file, go back and play 2 minutes of audio that was recorded 40 minutes ago. 

I have a few options, such as the Windows Media Player control - it runs like dirt on a streamed file like this.  Also the audio length stays as what it was when the file was first opened so that as it plays the progress sticks to 100% done so there is no way to scan through the file. 

Other option is the super simple MMControl, which does not even allow scan/seeking in a song – it offers play/pause and stop.

I've also tried the ActiveMovie control type library; wish would be amazingly perfect, if it could access the file.  It gives an error saying it cannot open the file because it is open by another process. While it is true, the other libraries give no errors.

I've tried using the winamp plugins and using a wrapper, but was unable to get them to function.  I doubt it would help because Winamp has the same issue with updating file length - at least play position updates, saying it's played to 00:50 when the file is only 00:03 long.

I've also tried this RSP MP3 Player OCX that is spewing out of the cracks during Google searches - my issue with that one of course is it's price - and just like the others has the same seek/scan problem.


It's such an obscure issue; I'm rather desperate for a solution - if anyone has any advice or suggestions, I would be greatly thankful.

Encoding & Decoding - same file at the same time

Reply #1
No one knows? :\

Encoding & Decoding - same file at the same time

Reply #2
Make copies before you access 'em.  Update the copy every x seconds.  Since you're only playing back at realtime, you'll never get past the end of the file anyways.  Or at least, it shouldn't be too much of an issue.  Just make sure you check, every time you seek, if you go out of bounds of the file.