PDA

View Full Version : AudioCapture Library


sside
03-05-2007, 02:22 PM
AudioCapture library (AudioCapture.dll v.1.0.0.0).

Actions:
AudioCapture.GetQuality
AudioCapture.GetSettings
AudioCapture.GetPosition
AudioCapture.GetLength
AudioCapture.GetSize
AudioCapture.GetStatus
AudioCapture.SetQuality
AudioCapture.SetSettings
AudioCapture.SetPosition
AudioCapture.CaptureStart
AudioCapture.CaptureStop
AudioCapture.PlayStart
AudioCapture.PlayStop
AudioCapture.Save
AudioCapture.Clear
AudioCapture.GetError


Download:
AudioCapture.v.1.0.0.0 (http://ams5.ssideproject.com/downloads/AudioCapture.v.1.0.0.0.rar)

Contents:
AudioCapture.xml //Actions. Drop this to: C:\Program Files\AutoPlay Media Studio 5.0 Professional\Data\Actions
AudioCapture.Blank.Project.apt //Template. Drop this to: C:\Program Files\AutoPlay Media Studio 5.0 Professional\Templates
AudioCapture.Demo.Project.apz // A very simple project to show the AudioCapture.dll usage.


.Net 2.0 required

With Kind Regards
sside

Dez
03-08-2007, 10:03 AM
sside,
This is a pretty cool project! Thankx much for posting this.

Dez

Tek
03-08-2007, 03:54 PM
Yep really cool. Great stuff.

Is there a way of querying the input devices for audio levels in order to create meters? Also, how does it work for multiple input devices? Is there a way to select them? There is a DLL floating around the forums here that can query the WDM devices in Windows.

sside
03-08-2007, 06:18 PM
sside,
This is a pretty cool project! Thankx much for posting this.

Dez


Dez, you're welcome.

With Kind Regards
sside

sside
03-08-2007, 06:19 PM
Is there a way of querying the input devices for audio levels in order to create meters?


No. Right now there is no way to do that. May be in some future versions.


Also, how does it work for multiple input devices? Is there a way to select them?


No. As i was writting this dll i thought about that but then i had to hold the project longer. So i decided to release a "basic version" and at some future version to add also that.
Right now if you want to select an input device you have to go at Control Panel->Sounds And Audio Devices->Audio and select your input device at Sound recording.


There is a DLL floating around the forums here that can query the WDM devices in Windows.


I have written few stuff that query the system for input devices. But for selecting them not. If there is something to programatically select the audio input device then by all means use it.

With Kind Regards
sside

sside
03-09-2007, 09:07 PM
Added:
AudioCapture.GetInputDevices
AudioCapture.GetDefaultInputDevice
AudioCapture.SetDefaultInputDevice
AudioCapture.SoundsAndAudioDevicesDialog

Download:
AudioCapture.v.1.0.0.1 (http://ams5.ssideproject.com/downloads/AudioCapture.v.1.0.0.1.rar)

Contents:
AudioCapture.xml //Actions. Drop this to: C:\Program Files\AutoPlay Media Studio 5.0 Professional\Data\Actions
AudioCapture.Blank.Project.apt //Template. Drop this to: C:\Program Files\AutoPlay Media Studio 5.0 Professional\Templates
AudioCapture.Demo.Project.apz // A very simple project to show the AudioCapture.dll usage.


.Net 2.0 required

With Kind Regards
sside

Dez
03-10-2007, 11:11 AM
Great addition...Thankx again.

Dez

SiNisTer
05-30-2007, 10:30 AM
Hey sside, I think the download links for the file are dead, so could you or anyone else you has the file mind reuploading the AudioCapture Library file again please? Id really appreciate it....

Thank You

sside
05-31-2007, 04:09 PM
AudioCapture library (v.1.0.0.0).

With Kind Regards
sside

SiNisTer
06-01-2007, 03:56 AM
Sweeeet:D! Thanks a mega ton for reuploading it man! Really appreciate it!

Ok then, Im off to start playing with it right away!

sside
06-01-2007, 10:54 AM
AudioCapture library (v.1.0.0.1).

With Kind Regards
sside

Fashion
12-15-2007, 10:12 PM
I'm interested to capture audio from line input card in real time mode
and at the same time trig this sound to any output like plugin. A kind of tempo light device.

Is it possible with this capture feature ?

Thanks,

JDog37
12-31-2008, 02:55 PM
I love this .apz, great job. I can't believe I didn't find it earlier!

One Q: How can I set the bits from 8 to 16, and the 1 channel to a stereo channel if wanted? You know better quality..

Thank you so much for this apz it made the end of my year VERY happy!!!! ;)

sside
12-31-2008, 03:25 PM
How can I set the bits from 8 to 16, and the 1 channel to a stereo channel if wanted? You know better quality..


Take a look at SetQuality and SetSettings. Use one or the other. They override each other settings.

For example:


--channels=2, samplesPerSec=44100, bitsPerSample=16;
AudioCapture.SetQuality(AudioCaptureQuality.High)


or


--channels = 1 (mono), 2 (stereo); samplesPerSec = 8000 (hz), 11025 (hz), 22050 (hz), 44100 (hz); bitsPerSample = 8, 16;
AudioCapture.SetSettings(channels, samplesPerSec, bitsPerSample)


After capture you can see the settings are applied by checking the audio file properties.

Happy New Year to all forum members.

:)

With Kind Regards
sside

JDog37
12-31-2008, 03:53 PM
I see where the settings are in global BUT how do I set it on the player? It is like default 8.. Or am I misunderstanding how to change it? I want to be able to go best quality stereo/and mono.

--Audio capture quality settings.
AudioCaptureQuality = {};
--channels=1, samplesPerSec=11025, bitsPerSample=8);
AudioCaptureQuality.Low = 0;
--channels=2, samplesPerSec=22050, bitsPerSample=16);
AudioCaptureQuality.Medium = 1;
--channels=2, samplesPerSec=44100, bitsPerSample=16);
AudioCaptureQuality.High = 2;

AudioCapture = {};
--Gets audio capture quality.
function AudioCapture.GetQuality()
return DLL.CallFunction("AutoPlay\\Docs\\AudioCapture.dll", "GetQuality", "", DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL);
end
--Gets audio capture settings. [channels = 1 (mono), 2 (stereo); samplesPerSec = 8000 (hz), 11025 (hz), 22050 (hz), 44100 (hz); bitsPerSample = 8, 16;]
function AudioCapture.GetSettings()
settings = DLL.CallFunction("AutoPlay\\Docs\\AudioCapture.dll", "GetSettings", "", DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL);
return StringToTable(settings);

Where do I set it?? channels=2, samplesPerSec=44100, bitsPerSample=16);
AudioCaptureQuality.High = 2;
Gets audio capture settings. [channels = 1 (mono), 2 (stereo); samplesPerSec = 8000 (hz), 11025 (hz), 22050 (hz), 44100 (hz); bitsPerSample = 8, 16;]

Sorry for all the questions on New Years eve... :rolleyes

Much appreciated,
Joe

Hapy New Years to you 2!

sside
12-31-2008, 04:10 PM
One option:


AudioCapture.SetQuality(AudioCaptureQuality.High);
AudioCapture.CaptureStart();


Another one:


AudioCapture.SetSettings(2, 44100, 16);
AudioCapture.CaptureStart();


Happy New Year.

:)

With Kind Regards
sside

JDog37
01-01-2009, 11:20 AM
Ok this is what I did:

I added 2 more buttons to the project. 1 for high and one for mid quality. So now I have 3 including your low quality..

High Q
Mid Q
Low Q

I got the high, and low to work great!!! Thanks to your reply, but the mid q is going to low quality. here is the code I used for the mid:

AudioCaptureQuality.Medium = 1;
AudioCapture.CaptureStart();

What am i doing wrong????

Dermot
01-01-2009, 11:27 AM
If you read his example, you will see you have to write it like this.
AudioCapture.SetQuality(AudioCaptureQuality.Medium )

JDog37
01-01-2009, 11:40 AM
My fault, i must have just misunderstood. I copyed the code from global and it worked for the high Q. So I just thought when I copied the mid Q it should have worked.

Thank you much for the help.. :yes It works fine. I will post it when the graphics are done!!

Happy new year,
Joe

jaydee67
02-15-2009, 06:25 AM
nice app but can you make it with mp3 (lame) recording?

Danial
06-29-2009, 08:25 AM
Hi every body. i cant download AudioCapture.dll and i cant find it any where !
I need it. :rolleyes
Please help me.
Thanks

Danial
06-29-2009, 09:05 AM
Download link is safe and i downloaded it :D

JDog37
10-28-2009, 02:29 PM
Is there a way to store all the recordings within the program or where I choose, then if I chose to export it on my desktop??

That would be great because I always am recording little guitar riffs on the fly and I have them all over the place. It would be a nice feature 4 me.

thanks,
Joe