flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
vid 23 Apr 2007, 08:14
see "INCLUDE/COM32" in FASM directory
|
|||
![]() |
|
farrier 24 Apr 2007, 09:15
ManOfSteel,
Attached is a RadASM project using DirectSound to record from an iMic USB sound card, write to a .wav file, and then play back the recorded sound from the DirectSound buffer. It just records 8 seconds, but should show you how things work. It uses an include file from a package madmatt provided, link is inlcuded. Thanks madmatt!!! If I get time, I plan to modify the program to record continuously and then as the sound is recorded, convert to mp3 using LAME. hth, farrier
_________________ Some Assembly Required It's a good day to code! U.S.Constitution; Bill of Rights; Amendment 1: ... the right of the people peaceably to assemble, ... The code is dark, and full of errors! |
|||||||||||
![]() |
|
ManOfSteel 26 Apr 2007, 09:51
vid,
thanks, I didn't even know such thing existed in FASM. I guess I'll have to re-read the manual. farrier, thanks for sharing. I'll check it out as soon as I can. Why did you say it was for recording from a "iMic USB sound card"? Does it work for other cards? |
|||
![]() |
|
farrier 26 Apr 2007, 16:56
ManOfSteel,
The code I included let me choose the iMic as the Capture device on my notebook system, which has no Line-In. Otherwise, the default sound card is used. If you use my code "as-is", it should use your default device. Also, change the size of the capture buffer size as follows: Code: mov [dscbd.dwBufferBytes], 1764000 ;= WaveEx.nAvgBytesPerSec * 10 I found an occasional problem trying to record 8 "sleep" seconds of data in an 8 second buffer. Sometimes, it "slept" to long, and recorded too much. hth, farrier _________________ Some Assembly Required It's a good day to code! U.S.Constitution; Bill of Rights; Amendment 1: ... the right of the people peaceably to assemble, ... The code is dark, and full of errors! |
|||
![]() |
|
ManOfSteel 27 Apr 2007, 07:54
Hello,
and thanks again. Could you upload the DirectX include files that are needed for audio processing (those you have in "\Program Files\fasm\include\directx\")? I can't find them anywhere. Do they also contain the interfaces identifiers (or whatever they are called?) |
|||
![]() |
|
farrier 27 Apr 2007, 13:48
ManOfSteel,
The link to madmatt's DirectX includes is in this source code, on the same lines where the .inc file is "included" farrier _________________ Some Assembly Required It's a good day to code! U.S.Constitution; Bill of Rights; Amendment 1: ... the right of the people peaceably to assemble, ... The code is dark, and full of errors! |
|||
![]() |
|
ManOfSteel 28 Apr 2007, 07:40
oops, sorry, there are so many tabs before the link that it was off-screen and I missed it.
![]() |
|||
![]() |
|
farrier 28 Apr 2007, 08:03
Here is part 2 of my project:
This one again records 8 seconds of sound using DirectSound, then writes that data to a .wav file, then converts the raw data into an MP3 file using LAME. I used the lame_enc.dll file obtained from: http://rarewares.org/mp3.html Main LAME site: www.mp3dev.org Seems to work pretty well. After I play with the quality settings, I plan to do continuous recording with DirectSound, and then continuous recording and streaming conversion to MP3 Fun so far! farrier
_________________ Some Assembly Required It's a good day to code! U.S.Constitution; Bill of Rights; Amendment 1: ... the right of the people peaceably to assemble, ... The code is dark, and full of errors! |
|||||||||||
![]() |
|
ManOfSteel 29 Apr 2007, 05:37
Very nice. Keep up with the good work!
|
|||
![]() |
|
farrier 09 May 2007, 01:11
Here is the next version, will record continuously to a wav file from a default--or in my case an external USB sound card--until a user set--in .inc file--number of milliseconds expires. Next step, acquire PCM data and immediately convert this stream to an mp3 file, bypassing .wav file entirely.
farrier
_________________ Some Assembly Required It's a good day to code! U.S.Constitution; Bill of Rights; Amendment 1: ... the right of the people peaceably to assemble, ... The code is dark, and full of errors! |
|||||||||||
![]() |
|
ManOfSteel 13 May 2007, 17:32
It's getting very good. Thanks for sharing. If it was just a little more user friendly (record/play control buttons and the like) you would be competing with some commercial recording utilities.
And by the way, I like the icon! |
|||
![]() |
|
dead_body 13 May 2007, 20:54
hm... "enum" - is macro?
"ENUM DSFX_I3DL2_MATERIAL_PRESET_SINGLEWINDOW,\ ..." in dsound.inc where I can find enum macro? |
|||
![]() |
|
farrier 14 May 2007, 16:59
dead_body,
Look here: http://board.flatassembler.net/topic.php?t=4729 Also: http://com.it-berater.org/COM/com_development/DirectX/directx_constants.htm shows the actual values. hth, farrier _________________ Some Assembly Required It's a good day to code! U.S.Constitution; Bill of Rights; Amendment 1: ... the right of the people peaceably to assemble, ... The code is dark, and full of errors! |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.