flat assembler
Message board for the users of flat assembler.

Index > Windows > mciSendString

Author
Thread Post new topic Reply to topic
Overflowz



Joined: 03 Sep 2010
Posts: 1046
Overflowz 15 Oct 2011, 13:47
hello everyone, I'm trying to record output from speakers via mciSendString but it fails. I can record easy from mic but not from speakers. Does anybody know how to do that ? Thanks.
Code:
        invoke mciSendString,<"open new Type waveaudio Alias recsound">,0,0,0
        invoke mciSendString,<"record recsound">,0,0,0
        invoke Sleep,3000
        invoke mciSendString,<"save recsound C:\record.mp3">,0,0,0    
Post 15 Oct 2011, 13:47
View user's profile Send private message Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2909
Location: 0x77760000
typedef 16 Oct 2011, 02:03
Speakers use different a socket and so do microphones. However some headphones can also record sounds. Check if you speakers can do that, or Open Sound control panel and change from Desktop Speakers to headphones.

Your snippet gave me an idea. Why not make a UDP chat program ? That'd be cool don;t you think


Last edited by typedef on 23 Jan 2012, 13:08; edited 1 time in total
Post 16 Oct 2011, 02:03
View user's profile Send private message Reply with quote
Overflowz



Joined: 03 Sep 2010
Posts: 1046
Overflowz 16 Oct 2011, 08:12
I have already written UDP chat program Razz I'm trying just to record from speakers, that's all.
Post 16 Oct 2011, 08:12
View user's profile Send private message Reply with quote
Ajn



Joined: 23 Jan 2012
Posts: 2
Location: Africa
Ajn 23 Jan 2012, 08:41
Hi Overflowz, Are you able to record voice audio line out buffer (speakers)
If yes, can you please share the code.

best Regards,,
Ajn

_________________
ajn
Post 23 Jan 2012, 08:41
View user's profile Send private message Reply with quote
Overflowz



Joined: 03 Sep 2010
Posts: 1046
Overflowz 23 Jan 2012, 09:41
No, I'm not.. I tried so many things but the only way to do it is to filter it via drivers and save to file..
Post 23 Jan 2012, 09:41
View user's profile Send private message Reply with quote
Ajn



Joined: 23 Jan 2012
Posts: 2
Location: Africa
Ajn 23 Jan 2012, 10:15
Any Idea how to filter via drivers, before I digg into google.

Regards,
Ajn

_________________
ajn
Post 23 Jan 2012, 10:15
View user's profile Send private message Reply with quote
Overflowz



Joined: 03 Sep 2010
Posts: 1046
Overflowz 23 Jan 2012, 13:18
Ajn
Quote:
No, I'm not..
Post 23 Jan 2012, 13:18
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.