flat assembler
Message board for the users of flat assembler.

Index > Windows > play sound from buffer waveOut.Play.

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 1994
Roman 28 Jul 2025, 06:02
fasmw 1.73
Windows have class waveOut.
I looking fasm examples waveOut.Play

https://learn.microsoft.com/ru-ru/archive/msdn-magazine/2010/february/sound-generation-in-wpf-applications
Post 28 Jul 2025, 06:02
View user's profile Send private message Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 1994
Roman 11 Aug 2025, 10:44
I found.
PlaySound,soundbuff, 0, SND_ASYNC|SND_LOOP|SND_MEMORY

or this variant.

hResInfo = FindResource(hInst, lpName, "WAVE");
hRes = LoadResource(hInst, hResInfo);

lpRes = LockResource(hRes);
sndPlaySound(lpRes, SND_MEMORY | SND_SYNC |
SND_NODEFAULT
UnlockResource(hRes);
Post 11 Aug 2025, 10:44
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.