Switch to DuckDuckGo Search
   July 5, 2017  
< | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | >

Toggle Join/Part | bottom
[01:04:12] *** Tobbi <Tobbi!~Tobbi@supertux/tobbi> has quit IRC (Quit: My MacBook has gone to sleep. ZZZzzz…)
[02:56:50] *** Smirftsch1 <Smirftsch1!~Smirftsch@p200300D7A3C76A0096DE80FFFEB4C9C5.dip0.t-ipconnect.de> has quit IRC (Ping timeout: 240 seconds)
[03:11:46] *** Smirftsch <Smirftsch!~Smirftsch@p200300D7A3C2BB0096DE80FFFEB4C9C5.dip0.t-ipconnect.de> has joined #openal
[03:11:46] *** ChanServ sets mode: +v Smirftsch
[07:58:30] *** zer0x <zer0x!~zer0-x@42.112.3.98> has joined #openal
[07:58:30] *** ChanServ sets mode: +v zer0x
[07:59:57] <zer0x> Hi all, I tried OpenAL today but the listener position has no effect, I still hear the same sound after setting new position. It is supposed to be smaller sound, isn't it?
[08:15:28] <KittyCat> make sure the sound is mono. stereo sounds aren't affected by position
[08:32:35] <zer0x> I used alBufferi(buffer, AL_CHANNELS, 1); but get a runtime error: AL lib: (WW) alSetError: Error generated on context 0xf974b0, code 0xa002. Is that correct way to set channels?
[08:33:10] <KittyCat> no, the channels is set with alBufferData
[08:33:12] <zer0x> or your mean the sound source file should me mono?
[08:33:46] <KittyCat> either the sound source file should be mono, or you convert it to mono before calling alBufferData with it
[08:34:07] <zer0x> alright, I've found it in the PDF guide
[08:41:20] <zer0x> I still get: AL lib: (WW) alSetError: Error generated on context 0x277d4b0, code 0xa003 When using alBufferData.
[08:42:10] <KittyCat> what values are being passed to alBufferData?
[08:42:18] <zer0x> alBufferData(buffer, AL_FORMAT_MONO16, (void*) soundFile.data(), soundFile.size(), 44100);
[08:42:45] <zer0x> ah soundFile is in binary format, not PCM, that's the error.
[08:44:17] <KittyCat> that error is a result of an invalid parameter value. for mono16, soundFile.size() must be a multiple of 2 or else it will error (since 1-channel 16-bit samples have 2 bytes per frame, so it can never be an odd count)
[08:44:59] <KittyCat> though if the sound file data is some compressed format, it needs to be decompressed or else it'll sound like noise
[08:45:43] <zer0x> but how can I use alure to decode the ogg file, I don't find any function to obtain decompressed sound from binary data of an ogg file.
[08:46:08] <zer0x> alure's functions create buffer directly
[08:46:42] <KittyCat> alure1 or alure2?
[08:46:50] <zer0x> alure 1.2
[08:47:31] <KittyCat> just use it to create the buffer, then use the returned buffer ID as normal
[08:48:18] <zer0x> ah right, create the buffer then query its info then call alBufferData again
[08:49:12] <KittyCat> you need audio data to call alBufferData
[08:50:43] <zer0x> yeah, I want to use alureCreateBufferFromMemory, then I query AL_DATA and AL_SIZE from that buffer to get audio data.
[08:51:30] <KittyCat> AL_DATA isn't a valid query
[08:52:21] <KittyCat> you need to decode it yourself to modify, if it's not in the correct format
[08:52:59] <KittyCat> it's better to make the sound in the correct format in the first place, so you don't have to modify it
[08:53:17] <zer0x> yeah I understand now, I will convert the sound file.
[08:53:28] <zer0x> thanks kcat
[08:53:56] <KittyCat> no problem
[12:21:56] *** Tobbi <Tobbi!~Tobbi@supertux/tobbi> has joined #openal
[12:21:56] *** ChanServ sets mode: +v Tobbi
[13:58:50] *** Tobbi <Tobbi!~Tobbi@supertux/tobbi> has quit IRC (Quit: My MacBook has gone to sleep. ZZZzzz…)
[14:02:54] *** Tobbi <Tobbi!~Tobbi@supertux/tobbi> has joined #openal
[14:02:54] *** ChanServ sets mode: +v Tobbi
[14:40:40] *** Tobbi <Tobbi!~Tobbi@supertux/tobbi> has quit IRC (Quit: My MacBook has gone to sleep. ZZZzzz…)
[14:57:35] *** Tobbi <Tobbi!~Tobbi@supertux/tobbi> has joined #openal
[14:57:35] *** ChanServ sets mode: +v Tobbi
[15:46:52] *** Tobbi <Tobbi!~Tobbi@supertux/tobbi> has quit IRC (Quit: My MacBook has gone to sleep. ZZZzzz…)
[15:59:12] *** Tobbi <Tobbi!~Tobbi@supertux/tobbi> has joined #openal
[15:59:12] *** ChanServ sets mode: +v Tobbi
[16:04:39] *** irungentoo <irungentoo!~irungento@unaffiliated/irungentoo> has joined #openal
[16:04:39] *** ChanServ sets mode: +v irungentoo
[16:26:59] *** Tobbi <Tobbi!~Tobbi@supertux/tobbi> has quit IRC (Quit: My MacBook has gone to sleep. ZZZzzz…)
[17:04:25] *** irungentoo <irungentoo!~irungento@unaffiliated/irungentoo> has quit IRC (Remote host closed the connection)
[19:11:33] *** Tobbi <Tobbi!~Tobbi@supertux/tobbi> has joined #openal
[19:11:33] *** ChanServ sets mode: +v Tobbi
[19:25:25] *** CapsAdmin <CapsAdmin!~CapsAdmin@2001:4648:3832:0:c163:6ea7:f8b5:5c56> has quit IRC (Ping timeout: 276 seconds)
[19:37:13] *** CapsAdmin <CapsAdmin!~CapsAdmin@2001:4648:3832:0:fcbe:4137:ac22:a8b4> has joined #openal
[19:37:13] *** ChanServ sets mode: +v CapsAdmin
[19:45:54] *** Tobbi <Tobbi!~Tobbi@supertux/tobbi> has quit IRC (Quit: My MacBook has gone to sleep. ZZZzzz…)
[19:52:04] *** zer0x <zer0x!~zer0-x@42.112.3.98> has quit IRC (Ping timeout: 276 seconds)
[20:08:26] *** zer0x <zer0x!~zer0-x@42.112.3.98> has joined #openal
[20:08:26] *** ChanServ sets mode: +v zer0x
[20:23:16] *** peterhil <peterhil!~peterhil@dsl-hkibng11-50dc41-99.dhcp.inet.fi> has quit IRC (Ping timeout: 276 seconds)
[20:24:00] *** peterhil <peterhil!~peterhil@dsl-hkibng11-50dc41-99.dhcp.inet.fi> has joined #openal
[20:24:00] *** ChanServ sets mode: +v peterhil
[21:21:11] *** Tobbi <Tobbi!~Tobbi@supertux/tobbi> has joined #openal
[21:21:11] *** ChanServ sets mode: +v Tobbi
top

   July 5, 2017  
< | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | >