OpneALと端末制御(ncurses)
Posted: 2013年6月28日(金) 08:13
端末でアニメを表示し, 入力時にwavを鳴らせています(http://noqisofon.hatenablog.com/entry/2 ... 1302695505)
ところが, 端末クリアの度に下記がプリントされます.(参考プログラムも同じ)
lib: ALc.c:1420: alcDestroyContext(): deleting 2 Source(s)
AL lib: ALc.c:1818: alcCloseDevice(): deleting 1 Buffer(s)
OpenALの指示でこれを消す方法はあるのでしょうか
clear();などで消してもこれは遅れてプリントされます
【ソース】
--省略--
ALuint helloBuffer, helloSource;
alutInit (&argc, argv);
switch(key){
case 'l':
helloBuffer = alutCreateBufferFromFile ("buster.wav");
w++;
break;
case 'e':
--省略--
}
--省略--
//mvprintw(LINES-10,COLS-10,"%d %d",n,c);
plot_a(&Uno);
alGenSources (1, &helloSource);
alSourcei (helloSource, AL_BUFFER, helloBuffer);
alSourcePlay (helloSource);
//alutSleep (1);
key=getch();
alutExit ();
//clear();
--省略--
ところが, 端末クリアの度に下記がプリントされます.(参考プログラムも同じ)
lib: ALc.c:1420: alcDestroyContext(): deleting 2 Source(s)
AL lib: ALc.c:1818: alcCloseDevice(): deleting 1 Buffer(s)
OpenALの指示でこれを消す方法はあるのでしょうか
clear();などで消してもこれは遅れてプリントされます
【ソース】
--省略--
ALuint helloBuffer, helloSource;
alutInit (&argc, argv);
switch(key){
case 'l':
helloBuffer = alutCreateBufferFromFile ("buster.wav");
w++;
break;
case 'e':
--省略--
}
--省略--
//mvprintw(LINES-10,COLS-10,"%d %d",n,c);
plot_a(&Uno);
alGenSources (1, &helloSource);
alSourcei (helloSource, AL_BUFFER, helloBuffer);
alSourcePlay (helloSource);
//alutSleep (1);
key=getch();
alutExit ();
//clear();
--省略--