WAV support in Pharo
Hi, I made a WAV parser, so now we can play music in Pharo :) I made an example using OpenAL's binding from Ronnie. You can try it with this piece of code : Gofer new smalltalkhubUser: 'MerwanOuddane' project: 'WAVParser'; package: 'ConfigurationOfWAVParser'; load. (Smalltalk at: #ConfigurationOfWAVParser) loadBleedingEdge. (Smalltalk at: #ALExamplesWAV) exampleBirdChirping Merwan
On Sun, Aug 23, 2015 at 10:02 PM, Merwan Ouddane <merwanouddane@gmail.com> wrote:
Hi,
I made a WAV parser, so now we can play music in Pharo :)
I made an example using OpenAL's binding from Ronnie.
You can try it with this piece of code :
Gofer new smalltalkhubUser: 'MerwanOuddane' project: 'WAVParser'; package: 'ConfigurationOfWAVParser'; load. (Smalltalk at: #ConfigurationOfWAVParser) loadBleedingEdge. (Smalltalk at: #ALExamplesWAV) exampleBirdChirping
Merwan
This is great! I never pushed at trying sound since I had the impression there were issues on some platforms and it hadn't been critical for me, but trying your example worked out of the box in build 50264 on OSX Mavericks. Actually it took me a few moments to notice it was the playback and not some birds outside. Made me grin from ear to ear. Probably not critical, but I get informed "Information - The size in the header do not match the real size. The file may be corrupted." In WavParser>>sanityCheckFileSize... stream size --> 215608 header fileSize -> 215600 cheers -ben
Oh yeah, my bad, when they say fileSize, they meant the size of the file - the number of bytes already read ^^' Thanks :) On 23/08/2015 16:55, Ben Coman wrote:
On Sun, Aug 23, 2015 at 10:02 PM, Merwan Ouddane <merwanouddane@gmail.com> wrote:
Hi,
I made a WAV parser, so now we can play music in Pharo :)
I made an example using OpenAL's binding from Ronnie.
You can try it with this piece of code :
Gofer new smalltalkhubUser: 'MerwanOuddane' project: 'WAVParser'; package: 'ConfigurationOfWAVParser'; load. (Smalltalk at: #ConfigurationOfWAVParser) loadBleedingEdge. (Smalltalk at: #ALExamplesWAV) exampleBirdChirping
Merwan
This is great! I never pushed at trying sound since I had the impression there were issues on some platforms and it hadn't been critical for me, but trying your example worked out of the box in build 50264 on OSX Mavericks. Actually it took me a few moments to notice it was the playback and not some birds outside. Made me grin from ear to ear.
Probably not critical, but I get informed "Information - The size in the header do not match the real size. The file may be corrupted." In WavParser>>sanityCheckFileSize... stream size --> 215608 header fileSize -> 215600
cheers -ben
it gives me MNU OpenAL class>>isAvailable On Sun, Aug 23, 2015 at 5:56 PM Ben Coman <btc@openinworld.com> wrote:
On Sun, Aug 23, 2015 at 10:02 PM, Merwan Ouddane <merwanouddane@gmail.com> wrote:
Hi,
I made a WAV parser, so now we can play music in Pharo :)
I made an example using OpenAL's binding from Ronnie.
You can try it with this piece of code :
Gofer new smalltalkhubUser: 'MerwanOuddane' project: 'WAVParser'; package: 'ConfigurationOfWAVParser'; load. (Smalltalk at: #ConfigurationOfWAVParser) loadBleedingEdge. (Smalltalk at: #ALExamplesWAV) exampleBirdChirping
Merwan
This is great! I never pushed at trying sound since I had the impression there were issues on some platforms and it hadn't been critical for me, but trying your example worked out of the box in build 50264 on OSX Mavericks. Actually it took me a few moments to notice it was the playback and not some birds outside. Made me grin from ear to ear.
Probably not critical, but I get informed "Information - The size in the header do not match the real size. The file may be corrupted." In WavParser>>sanityCheckFileSize... stream size --> 215608 header fileSize -> 215600
cheers -ben
Retry now, I forgot to update the configuration On 23/08/2015 18:41, Dimitris Chloupis wrote:
it gives me MNU OpenAL class>>isAvailable
On Sun, Aug 23, 2015 at 5:56 PM Ben Coman <btc@openinworld.com <mailto:btc@openinworld.com>> wrote:
On Sun, Aug 23, 2015 at 10:02 PM, Merwan Ouddane <merwanouddane@gmail.com <mailto:merwanouddane@gmail.com>> wrote: > Hi, > > I made a WAV parser, so now we can play music in Pharo :) > > I made an example using OpenAL's binding from Ronnie. > > You can try it with this piece of code : > > Gofer new > smalltalkhubUser: 'MerwanOuddane' project: 'WAVParser'; > package: 'ConfigurationOfWAVParser'; > load. > (Smalltalk at: #ConfigurationOfWAVParser) loadBleedingEdge. > (Smalltalk at: #ALExamplesWAV) exampleBirdChirping > > Merwan >
This is great! I never pushed at trying sound since I had the impression there were issues on some platforms and it hadn't been critical for me, but trying your example worked out of the box in build 50264 on OSX Mavericks. Actually it took me a few moments to notice it was the playback and not some birds outside. Made me grin from ear to ear.
Probably not critical, but I get informed "Information - The size in the header do not match the real size. The file may be corrupted." In WavParser>>sanityCheckFileSize... stream size --> 215608 header fileSize -> 215600
cheers -ben
yeap it works fine now. The funny thing is that I have a parrot and each time I play your example my parrot signs with your example , actually he syncs his chirps with the chirps of your examples , he is pretty accurate :D On Sun, Aug 23, 2015 at 7:56 PM Merwan Ouddane <merwanouddane@gmail.com> wrote:
Retry now, I forgot to update the configuration
On 23/08/2015 18:41, Dimitris Chloupis wrote:
it gives me MNU OpenAL class>>isAvailable
On Sun, Aug 23, 2015 at 5:56 PM Ben Coman <btc@openinworld.com> wrote:
On Sun, Aug 23, 2015 at 10:02 PM, Merwan Ouddane <merwanouddane@gmail.com> wrote:
Hi,
I made a WAV parser, so now we can play music in Pharo :)
I made an example using OpenAL's binding from Ronnie.
You can try it with this piece of code :
Gofer new smalltalkhubUser: 'MerwanOuddane' project: 'WAVParser'; package: 'ConfigurationOfWAVParser'; load. (Smalltalk at: #ConfigurationOfWAVParser) loadBleedingEdge. (Smalltalk at: #ALExamplesWAV) exampleBirdChirping
Merwan
This is great! I never pushed at trying sound since I had the impression there were issues on some platforms and it hadn't been critical for me, but trying your example worked out of the box in build 50264 on OSX Mavericks. Actually it took me a few moments to notice it was the playback and not some birds outside. Made me grin from ear to ear.
Probably not critical, but I get informed "Information - The size in the header do not match the real size. The file may be corrupted." In WavParser>>sanityCheckFileSize... stream size --> 215608 header fileSize -> 215600
cheers -ben
Hi, It does not work under windows.. Should I download a specific .dll ? Cheers, Vincent -----Message d'origine----- De : Pharo-dev [mailto:pharo-dev-bounces@lists.pharo.org] De la part de Merwan Ouddane Envoyé : dimanche 23 août 2015 16:02 à : Pharo Development List Objet : [Pharo-dev] WAV support in Pharo Hi, I made a WAV parser, so now we can play music in Pharo :) I made an example using OpenAL's binding from Ronnie. You can try it with this piece of code : Gofer new smalltalkhubUser: 'MerwanOuddane' project: 'WAVParser'; package: 'ConfigurationOfWAVParser'; load. (Smalltalk at: #ConfigurationOfWAVParser) loadBleedingEdge. (Smalltalk at: #ALExamplesWAV) exampleBirdChirping Merwan
Yes you have to download OpenAL for the openAL binding to work :p The name of the dll is OpenAL32.dll On 23/08/2015 17:25, Vincent BLONDEAU wrote:
Hi,
It does not work under windows.. Should I download a specific .dll ?
Cheers, Vincent
-----Message d'origine----- De : Pharo-dev [mailto:pharo-dev-bounces@lists.pharo.org] De la part de Merwan Ouddane Envoyé : dimanche 23 août 2015 16:02 à : Pharo Development List Objet : [Pharo-dev] WAV support in Pharo
Hi,
I made a WAV parser, so now we can play music in Pharo :)
I made an example using OpenAL's binding from Ronnie.
You can try it with this piece of code :
Gofer new smalltalkhubUser: 'MerwanOuddane' project: 'WAVParser'; package: 'ConfigurationOfWAVParser'; load. (Smalltalk at: #ConfigurationOfWAVParser) loadBleedingEdge. (Smalltalk at: #ALExamplesWAV) exampleBirdChirping
Merwan
Thanks! It is working better now! Nice tool! Do you plan to add Mp3? (because it is the current format now ;)). Vincent -----Message d'origine----- De : Pharo-dev [mailto:pharo-dev-bounces@lists.pharo.org] De la part de Merwan Ouddane Envoyé : dimanche 23 août 2015 17:43 à : Pharo Development List Objet : Re: [Pharo-dev] WAV support in Pharo Yes you have to download OpenAL for the openAL binding to work :p The name of the dll is OpenAL32.dll On 23/08/2015 17:25, Vincent BLONDEAU wrote:
Hi,
It does not work under windows.. Should I download a specific .dll ?
Cheers, Vincent
-----Message d'origine----- De : Pharo-dev [mailto:pharo-dev-bounces@lists.pharo.org] De la part de Merwan Ouddane Envoyé : dimanche 23 août 2015 16:02 à : Pharo Development List Objet : [Pharo-dev] WAV support in Pharo
Hi,
I made a WAV parser, so now we can play music in Pharo :)
I made an example using OpenAL's binding from Ronnie.
You can try it with this piece of code :
Gofer new smalltalkhubUser: 'MerwanOuddane' project: 'WAVParser'; package: 'ConfigurationOfWAVParser'; load. (Smalltalk at: #ConfigurationOfWAVParser) loadBleedingEdge. (Smalltalk at: #ALExamplesWAV) exampleBirdChirping
Merwan
On 23/08/2015 18:25, Vincent BLONDEAU wrote:
Thanks! It is working better now!
Nice tool! Do you plan to add Mp3? (because it is the current format now ;)).
Maybe one day ^^ I took WAV because it's a really easy audio format to parse. At least now we do have something working for a common format :)
Vincent
-----Message d'origine----- De : Pharo-dev [mailto:pharo-dev-bounces@lists.pharo.org] De la part de Merwan Ouddane Envoyé : dimanche 23 août 2015 17:43 à : Pharo Development List Objet : Re: [Pharo-dev] WAV support in Pharo
Yes you have to download OpenAL for the openAL binding to work :p
The name of the dll is OpenAL32.dll
On 23/08/2015 17:25, Vincent BLONDEAU wrote:
Hi,
It does not work under windows.. Should I download a specific .dll ?
Cheers, Vincent
-----Message d'origine----- De : Pharo-dev [mailto:pharo-dev-bounces@lists.pharo.org] De la part de Merwan Ouddane Envoyé : dimanche 23 août 2015 16:02 à : Pharo Development List Objet : [Pharo-dev] WAV support in Pharo
Hi,
I made a WAV parser, so now we can play music in Pharo :)
I made an example using OpenAL's binding from Ronnie.
You can try it with this piece of code :
Gofer new smalltalkhubUser: 'MerwanOuddane' project: 'WAVParser'; package: 'ConfigurationOfWAVParser'; load. (Smalltalk at: #ConfigurationOfWAVParser) loadBleedingEdge. (Smalltalk at: #ALExamplesWAV) exampleBirdChirping
Merwan
cool! I blog it. :) Le 23/8/15 16:02, Merwan Ouddane a écrit :
Hi,
I made a WAV parser, so now we can play music in Pharo :)
I made an example using OpenAL's binding from Ronnie.
You can try it with this piece of code :
Gofer new smalltalkhubUser: 'MerwanOuddane' project: 'WAVParser'; package: 'ConfigurationOfWAVParser'; load. (Smalltalk at: #ConfigurationOfWAVParser) loadBleedingEdge. (Smalltalk at: #ALExamplesWAV) exampleBirdChirping
Merwan
Thanks :) On 23/08/2015 19:30, stepharo wrote:
cool! I blog it. :)
Le 23/8/15 16:02, Merwan Ouddane a écrit :
Hi,
I made a WAV parser, so now we can play music in Pharo :)
I made an example using OpenAL's binding from Ronnie.
You can try it with this piece of code :
Gofer new smalltalkhubUser: 'MerwanOuddane' project: 'WAVParser'; package: 'ConfigurationOfWAVParser'; load. (Smalltalk at: #ConfigurationOfWAVParser) loadBleedingEdge. (Smalltalk at: #ALExamplesWAV) exampleBirdChirping
Merwan
participants (5)
-
Ben Coman -
Dimitris Chloupis -
Merwan Ouddane -
stepharo -
Vincent BLONDEAU