Trying to get sound running without of framework help
Trying to get sound running without of framework help
How would you get this code running for sound outside of framework, i tried something and it kinda works but the sound is real bad quality, i think its because (I put play() in while ) it processes to slow but in framework its in wWinMain and i got real lost there... Pleas some help or advice some link or something on how i can make it sound smooth ... I'm trying to understand APIs better . And Chill you helped me a lot in learning to program thank a lot I LOVE YOU...
Re: Trying to get sound running without of framework help
Need to see your full code before we can even begin to guide you bro.
Chili
Re: Trying to get sound running without of framework help
Ah nice, repo. I will take a look at this in a bit bro. Might take me a day or two, but I will see what's going wrong and hopefully give you some pointers. If somebody else wants to jump in and give advice that's cool too.
Chili
Re: Trying to get sound running without of framework help
Thanks man, take your time, any tip helps
-
- Posts: 4373
- Joined: February 28th, 2013, 3:23 am
- Location: Oklahoma, United States
Re: Trying to get sound running without of framework help
Code: Select all
int main()
{
Sound TheEnd = Sound(L"C:\\Users\\Ivan\\Desktop\\programiranje\\SimpleAudioLoader\\TheEnd.mp3");
while (true) {
TheEnd.Play();
}
return 0;
}
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com
Re: Trying to get sound running without of framework help
OOOOOOOOoouuouou albinopapa thanks man for idea i figure it out. Now it plays smooth i'll uploud update version soon when i put sam options for play stop and that staff thanks.
Re: Trying to get sound running without of framework help
hey . Is it possible to implement pause with this ??
i think i can make next or something like that but i cant find anything about pause in XAudio\XAudio2.h i think it uses stop and play form here .and maybe (I'am asking to much) to select time to start playing hehe . I'll try and let you know if i successfully find something.
i think i can make next or something like that but i cant find anything about pause in XAudio\XAudio2.h i think it uses stop and play form here .and maybe (I'am asking to much) to select time to start playing hehe . I'll try and let you know if i successfully find something.
-
- Posts: 4373
- Joined: February 28th, 2013, 3:23 am
- Location: Oklahoma, United States
Re: Trying to get sound running without of framework help
Yeah, Pause is just stopping the audio and resuming from where the stream was stopped.
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com
Re: Trying to get sound running without of framework help
all you have to do is call Play, XAudio will continue from where it stopped (only extra has to be done for a full stop )
always available, always on, about ~10 years c/c++, java[script], win32/directx api, [x]html/css/php/some asp/sql experience. (all self taught)
Knows English, Spanish and Japanese.
[url=irc://irc.freenode.net/#pchili]irc://irc.freenode.net/#pchili[/url] [url=irc://luisr14.no-ip.org/#pchili]alt[/url] -- join up if ever want real-time help or to just chat --
Knows English, Spanish and Japanese.
[url=irc://irc.freenode.net/#pchili]irc://irc.freenode.net/#pchili[/url] [url=irc://luisr14.no-ip.org/#pchili]alt[/url] -- join up if ever want real-time help or to just chat --