October 26, 2019 Re: Help playing sounds using arsd.simpleaudio | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam D. Ruppe | On Saturday, 19 October 2019 at 13:08:49 UTC, Adam D. Ruppe wrote:
> try it now with the new version of simpleaudio.d from git
Hi Adam, sorry to bother you, but I'm having a problem with simpleaudio.d. This problem was happening on Windows too. When I play a sound the program never ends, the terminal continues to run the program and I have to end it manually. Any ideas what could be causing this? I am using it just as you had instructed.
|
October 30, 2019 Re: Help playing sounds using arsd.simpleaudio | ||||
---|---|---|---|---|
| ||||
Posted in reply to Murilo | On Saturday, 26 October 2019 at 19:48:33 UTC, Murilo wrote:
> I play a sound the program never ends, the terminal continues to run the program and I have to end it manually. Any ideas what could be causing this? I am using it just as you had instructed.
That happens if you don't call .stop() and .join() in order at the right time.
Did you use the scope(exit) like I said?
|
November 01, 2019 Re: Help playing sounds using arsd.simpleaudio | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam D. Ruppe | On Wednesday, 30 October 2019 at 19:11:00 UTC, Adam D. Ruppe wrote:
> On Saturday, 26 October 2019 at 19:48:33 UTC, Murilo wrote:
>> I play a sound the program never ends, the terminal continues to run the program and I have to end it manually. Any ideas what could be causing this? I am using it just as you had instructed.
>
> That happens if you don't call .stop() and .join() in order at the right time.
>
> Did you use the scope(exit) like I said?
Thanks for the help.
I did use the scope. Here is my code:
AudioPcmOutThread audio = new AudioPcmOutThread();
audio.start();
scope (exit)
{
audio.stop();
audio.join();
}
audio.playOgg("bell.ogg");
The problem persists.
|
November 01, 2019 Re: Help playing sounds using arsd.simpleaudio | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam D. Ruppe | On Wednesday, 30 October 2019 at 19:11:00 UTC, Adam D. Ruppe wrote:
> On Saturday, 26 October 2019 at 19:48:33 UTC, Murilo wrote:
>> I play a sound the program never ends, the terminal continues to run the program and I have to end it manually. Any ideas what could be causing this? I am using it just as you had instructed.
>
> That happens if you don't call .stop() and .join() in order at the right time.
>
> Did you use the scope(exit) like I said?
hello,
Thank you so much for help, it helped me alot
Thanks and regards.:)
|
Copyright © 1999-2021 by the D Language Foundation