MultiMedia Soft forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

SMF - Just Installed!

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - thsorensen

Pages: [1]
1
Hi.

I have a novation Launch control XL, and I'm wondering if it's possible to change the button colors from the audioDjStudio component?
I can't find anything in the documentation that tells me how to do this.

Anyone have a tip?

--
Thomas

2
I'm trying to record two sessions from an internet stream.

I'm able to start recording to both files, but when I'm stopping recording#1, the other recording is stopping as well.


I start the stream with btnLoad.
Then clicking btnRestart1, followed by btnRestart2.
This will start recording to c:\data\zz.mp3 and c:\data\zz2.mp3.

After a couple of seconds, I press btnRestart1 again, this causes the studioSoundRecorder2 to ALSO stop recording.

Maybe this is clearer with this code:

Code: [Select]

    Dim smc1 As Short = 0
    Dim smc2 As Short = 0

  Private Sub btnLoad_Click(sender As Object, e As EventArgs) Handles btnLoad.Click
            audioDjStudio1.InitSoundSystem(1, 0, 0, 0, 0, -1)

            audioDjStudio1.LoadInternetStream(0, "URL")

            smc1 = audioDjStudio1.StreamMixerCreate(0, 48000, 2) 'always get 3000 here
            audioDjStudio1.StreamMixerPlayerAdd(smc1, 0)

            ' smc2 = audioDjStudio1.StreamMixerCreate(0, 48000, 2) 'always get 3001 here, but do not get any sound from this ID.
            ' audioDjStudio1.StreamMixerPlayerAdd(smc2, 0)

            audioSoundRecorder1.EncodeFormatForRecording = AudioSoundRecorder.enumEncodingFormats.ENCODING_FORMAT_MP3
            audioSoundRecorder1.EncodeMp3Mode = enumMp3EncodeModes.MP3_ENCODE_CBR
            audioSoundRecorder1.EncodeMp3CBR = 48000

            audioSoundRecorder2.EncodeFormatForRecording = AudioSoundRecorder.enumEncodingFormats.ENCODING_FORMAT_MP3
            audioSoundRecorder2.EncodeMp3Mode = enumMp3EncodeModes.MP3_ENCODE_CBR
            audioSoundRecorder2.EncodeMp3CBR = 48000
        End Sub

        Private Sub btnRestart1_Click(sender As Object, e As EventArgs) Handles btnRestart1.Click
            audioSoundRecorder1.Stop()
            audioSoundRecorder1.StartFromDjStudioMixer(smc1, "c:\data\zz.mp3")
        End Sub

        Private Sub btnRestart2_Click(sender As Object, e As EventArgs) Handles btnRestart2.Click
            audioSoundRecorder2.Stop()
            audioSoundRecorder2.StartFromDjStudioMixer(smc1, "c:\data\zz2.mp3") 'tried using smc2 here, but I'm not getting any sound.
        End Sub

Anyone have a clue what might be wrong?


---
Thomas

3
Audio recording components / Getting ERR_ENCODER_NOT_AVAILABLE
« on: December 05, 2018, 03:21:13 PM »
Hi.
I'm trying to capture some sound using WSAPI and MP3 as format.

However, when I'm testing the compiled program on a remote computer I get an error ERR_ENCODER_NOT_AVAILABLE when I'm trying to record.
On my development machine everything works fine.


Anyone have a clue what might be the problem?

This is the encoder format:

AudioSoundRecorder.EncodeFormats.ForRecording = enumEncodingFormats.ENCODING_FORMAT_MP3
AudioSoundRecorder.EncodeFormats.MP3.EncodeMode = enumMp3EncodeModes.MP3_ENCODE_PRESETS
AudioSoundRecorder.EncodeFormats.MP3.Preset = enumMp3EncodePresets.MP3_PRESET_EXTREME
AudioSoundRecorder.EncodeFormats.MP3.ABR = 128000
AudioSoundRecorder.EncodeFormats.ResampleMode = enumResampleModes.RESAMPLE_MODE_CUSTOM_FORMAT
AudioSoundRecorder.EncodeFormats.ResampleCustomFrequency = 44100
AudioSoundRecorder.EncodeFormats.ResampleCustomChannels = 2


--Thomas

Pages: [1]