Recent posts

#41
Hello, you are welcome.

In this case unfortunately no specific event is available but you may obtain the total duration by applying a couple of arithmetic operations:

- in "Insert" mode you can simply add the duration of the previous session, which can be obtained through the RecordedSound.GetDuration method, to the duration of the current session as reported by the RecordingDuration event

- in "overwrite" mode is a bit more tricky because you need to keep count of the overwrite position and add to this position the duration of the current session as reported by the RecordingDuration event:

   a) if the result of this sum is smaller than the duration of the previous session, which can be obtained through the RecordedSound.GetDuration method, then the total duration is still represented by the value returned by the previous call to the RecordedSound.GetDuration method

   b) if the result of this sum is higher, then the new total duration will be the sum between the overwrite position and the duration of the current session as reported by the RecordingDuration event.

In both cases, please, keep count that the RecordedSound.GetDuration method needs to be invoked before starting the recording session or it will return the error ERR_RECORDER_BUSY (-64).

Hope this helps.

Kind regards

Severino Delaurenti
MultiMedia Soft
#42
Audio recording components / Re: Obtaining total record tim...
Last post by mjividen - May 07, 2024, 03:39:19 PM
Thanks for the answer.  My problem is not APPEND but is displaying the total recording length in INSERT and OVERWRITE modes.  (I'm writing code in VB on Visual Studio).
#43
Audio recording components / Re: Obtaining total record tim...
Last post by Administrator - March 14, 2024, 04:28:49 PM
Hello,

if you look into the RecordedSoundEditor VB6 sample project, you will see how the duration of a recording session is currently managed into the LabelTotalDuration label: it's important to note that, after a recording session is "stopped" instead of "paused", you will have to restart it using the SetRecordingMode method with the REC_MODE_APPEND option.

You will also notice that, when a new recording session is started in append mode, the RecordingDuration event will return the duration of the current session only; if you should need to know the total sum of the durations of previous appended sessions as well, you would have to catch the RecordingPosition event instead of the RecordingDuration event.

Hope this helps

Kind Regards

Severino Delaurenti
MultiMedia Soft
#44
Audio recording components / Obtaining total record time
Last post by mjividen - March 12, 2024, 03:25:41 PM
Hello, Severino,

I've written an audio recording application for recording magazines and books that would later be listened to by persons who are blind.  The recordings are typically a half-hour to an hour long.  I've included a total time display but I haven't successfully made it work.  I've attempted to use the record position and record duration numbers but I when the I pause or stop and restart the recording, I'm not coming up with the total length of the recording in minutes and seconds.  Can you suggest a way to do this.  I'm most comfortable in visual basic. 

#45
Audio playback and audio management components / Re: Mic to icecast
Last post by Administrator - February 26, 2024, 02:40:08 PM
Hello,

please, take a look into the WasapiMixAndClone VB6 sample project which allows to attach an input device to a specific player and to send the output of the WASAPI stream mixer to a ShoutCast/IceCast server.

Hope this helps to achieve your goals.

Kind regards

Severino Delaurenti
MultiMedia Soft
#46
Audio playback and audio management components / Mic to icecast
Last post by grupo.virtual - February 26, 2024, 12:54:12 PM
Could you advice with a vb6 sample of the activex dj studio to know how to cast to icecast from a capture device (mic on my case, but I suppose applies exactly the same for line in).

I think the way is using wasapi, but I can't find how exactly


Cheers from Mazatlan, Mexico
#47
Hello,
unfortunately we don't have Delphi developers so we don't have a porting to this language available for the mentioned samples.

Kind regards

Severino Delaurenti
MultiMedia Soft
#48
Audio playback and audio management components / sample about in delphi
Last post by billychou - December 24, 2023, 11:51:23 AM
CastMixedStreams

TestEqualizer

Thanks.
#49
Hello,

1. Unfortunately the K-Lite pack is still needed also if not showing the video stream

2. Please, take a look into the VideoWaveform sample project that makes use of the VideoPlayer.AudioTrackExtract method in order to extract a video file into a memory buffer (or into a temporary file by just changing the bStoreInMemory parameter from TRUE to FALSE). Once you have the memory buffer (or the temporary file) you may load it through the LoadSoundFromMemory method (or LoadSound for a temporary file).
Please, note that you don't need to extract the audio track in order to change pitch and tempo: this can be applied to the video player directly as seen inside the VideoPlayerSimple sample project.

Hope this helps

Kind regards

Severino Delaurenti
MultiMedia Soft
#50
Hello Severino,

Thanks for Solution. I have some questions.

1. If I do not load video window it works, and play only Audio. Does that eliminates the need of K-lite codec
   pack ?

2. I tried with VideoPlayer.AudioTrackExtract method but not able to use it. I need the snippet of code how to extract please. Let me know can I get a wave file (.wav..) after extracting the audio and can I change pitch and tempo of this file ?
Does Extract method takes longer time ?

Thanks and Regards

Ravindra.