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
<[hidden email]> 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 |
In reply to this post by MerwanOuddane
Hi,
It does not work under windows.. Should I download a specific .dll ? Cheers, Vincent -----Message d'origine----- De : Pharo-dev [mailto:[hidden email]] 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 |
In reply to this post by Ben Coman
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 > <[hidden email]> 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 > |
In reply to this post by Vincent Blondeau
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:[hidden email]] 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:[hidden email]] 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:[hidden email]] 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 > > > |
In reply to this post by Ben Coman
it gives me MNU OpenAL class>>isAvailable
On Sun, Aug 23, 2015 at 5:56 PM Ben Coman <[hidden email]> wrote: On Sun, Aug 23, 2015 at 10:02 PM, Merwan Ouddane |
Retry now, I forgot to update the configuration
On 23/08/2015 18:41, Dimitris Chloupis
wrote:
|
In reply to this post by Vincent Blondeau
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:[hidden email]] 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:[hidden email]] 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 >> >> >> > > > |
In reply to this post by MerwanOuddane
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 >> >> > > |
In reply to this post by MerwanOuddane
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 <[hidden email]> wrote:
|
Free forum by Nabble | Edit this page |