tom13 Posted June 8, 2008 Share Posted June 8, 2008 Hi there,In my previous thread I got figured out how to trim a recorded sound file.Now, here's my next challenge: Playing an audio "buffer" while writing new audio data to this buffer every few seconds.Here's the situation:PC A records long.wavPC A splits long.wav into part1.wav and part2.wavPC A uploads part1.wavPC B downloads part1.wav and plays itPC B starts downloading part2.wav while part1.wav is playingPC B writes the sound data to part1.wav, so it will keep on playingAny idea on how to do this? Maybe there's some kind of commandline tool that could help? Maybe using DLLCalls with DirectSound? Any ideas?Note that I already tried playing part2.wav instantly after part1.wav to get the same result, but this does not work because there is a small sound disruption for a few milliseconds if you try to do this (also discussed that in my previous thread: http://www.autoitscript.com/forum/index.php?showtopic=73068). Thanks for all the help you can give. - Tom Link to comment Share on other sites More sharing options...
tom13 Posted June 8, 2008 Author Share Posted June 8, 2008 Maybe someone knows a good forum where I could ask for ideas or tools? Couldn't fine one myself that's related to my problem. Link to comment Share on other sites More sharing options...
nobbe Posted June 9, 2008 Share Posted June 9, 2008 try http://www.un4seen.com/ Link to comment Share on other sites More sharing options...
tom13 Posted June 9, 2008 Author Share Posted June 9, 2008 try http://www.un4seen.com/thanks for the reply but where did you see that it has such a buffer feature?I can't figure it out Link to comment Share on other sites More sharing options...
tom13 Posted June 11, 2008 Author Share Posted June 11, 2008 guess such tool does not exist then? Link to comment Share on other sites More sharing options...
Distrophy Posted June 11, 2008 Share Posted June 11, 2008 It seems like you wouldnt be able to write to a .wav file that is already open since it would throw some kind of file access error. Have you looked at just streaming the audio or having computer B access the file on computer A through the network (instead of loading it locally)? Link to comment Share on other sites More sharing options...
tom13 Posted June 11, 2008 Author Share Posted June 11, 2008 It seems like you wouldnt be able to write to a .wav file that is already open since it would throw some kind of file access error.Have you looked at just streaming the audio or having computer B access the file on computer A through the network (instead of loading it locally)?Hi Distrophy, Sure I could stream using a TCP connection but that is not really what I want for special reasons.You can not write to a .wav file that is already being opened yeah, but I believe that is what a memory buffer does. It's not really a .wav file but a buffer containing data that can be written to.However, if that doesn't work: my problem can probably also be solved with a commandline tool that can play sound files with gapless transition (from songA to songB) in which you can add new songs to the playlist or repeat the playlist. Without an interface is a must though.Hopefully anyone is aware of such a tool or maybe still the original idea regarding DLLcalls or something. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted June 11, 2008 Moderators Share Posted June 11, 2008 Hi Distrophy, Sure I could stream using a TCP connection but that is not really what I want for special reasons.You can not write to a .wav file that is already being opened yeah, but I believe that is what a memory buffer does. It's not really a .wav file but a buffer containing data that can be written to.However, if that doesn't work: my problem can probably also be solved with a commandline tool that can play sound files with gapless transition (from songA to songB) in which you can add new songs to the playlist or repeat the playlist. Without an interface is a must though.Hopefully anyone is aware of such a tool or maybe still the original idea regarding DLLcalls or something.After asking your legality question, I doubt those that do know are going to readily volunteer the answers anyway. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
tom13 Posted June 11, 2008 Author Share Posted June 11, 2008 After asking your legality question, I doubt those that do know are going to readily volunteer the answers anyway.Oh the moderator is acting very helpfull again.NOT!Also, this has nothing to do with that particular subject. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted June 11, 2008 Moderators Share Posted June 11, 2008 Oh the moderator is acting very helpfull again.NOT!Also, this has nothing to do with that particular subject.Don't be a moron. I was telling you why you may not be getting the answers you are wanting. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. 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