NOOK Color sound doesn't work

Yes, we’ve tried playing OGG audio files on Windows via the Corona Simulator and have confirmed that this works. We haven’t changed anything in our core audio code between those build numbers, so it must be something else. At this point, I think there is something wrong with your OGG file. Like it might be an encoding problem.

Try our sample app “Media/AudioPlayer” on your Windows machine and your Nook Color. That sampe app has multiple audio files for you test, including OGG. Does it work for you?

Also have a look at our audio notes here…
http://developer.coronalabs.com/partner/audionotes
[import]uid: 32256 topic_id: 31697 reply_id: 127039[/import]

Thanks Larry, I’ll definitely try this too, will save me from having to convert my audio! [import]uid: 40033 topic_id: 31697 reply_id: 126857[/import]

@Joshua, I’ve built the sample and tested it on my nook and it works.
It’s a mystery then why when I compile and build with the 840 it works fine…
Thanks for your help.
[import]uid: 12407 topic_id: 31697 reply_id: 127064[/import]

Adrian,

I just tried doing an audio.play(), audio.stop(), and then audio.play() again on an OGG file and it worked as expected on a Nook Color. I tried stopping a specific channel and calling audio.stop() with no arguments. I also tried pausing and resuming the OGG playback… it still worked. I just can’t reproduce this issue that you are seeing.

Are you able to reproduce this issue with our “Media/AudioPlayer” sample project on your Nook Color? I would recommend that you give it a try. I’m interested in the results.

I also recommend that you look at the Android log via “adb logcat” or “ddms” with your app to see if any errors come up in the log having to do with audio. [import]uid: 32256 topic_id: 31697 reply_id: 126900[/import]

Would you mind sending us one of your OGG files that is giving you trouble please? You can do so by clicking the “Report a Bug” link at the top of this web page. Just state that it is not resuming properly with our AudioPlayer sample app. Thanks. [import]uid: 32256 topic_id: 31697 reply_id: 127124[/import]

Thanks for your support Joshua.
I’m currently updating my other app to upload to Barnes and I’m having a problem with the OGG files using Windows 7 and build 929. Now it says :
WARNING: Failed to create audio sound (sounds/1.ogg)
Maybe you’re using a Mac? just a thought…
for now I’m just going to use mp3 or something else…
thanks
[import]uid: 12407 topic_id: 31697 reply_id: 127031[/import]

Yes, we’ve tried playing OGG audio files on Windows via the Corona Simulator and have confirmed that this works. We haven’t changed anything in our core audio code between those build numbers, so it must be something else. At this point, I think there is something wrong with your OGG file. Like it might be an encoding problem.

Try our sample app “Media/AudioPlayer” on your Windows machine and your Nook Color. That sampe app has multiple audio files for you test, including OGG. Does it work for you?

Also have a look at our audio notes here…
http://developer.coronalabs.com/partner/audionotes
[import]uid: 32256 topic_id: 31697 reply_id: 127039[/import]

@Joshua, I’ve built the sample and tested it on my nook and it works.
It’s a mystery then why when I compile and build with the 840 it works fine…
Thanks for your help.
[import]uid: 12407 topic_id: 31697 reply_id: 127064[/import]

Oh, I see a pattern here now with Naomi’s input. Mine was also a background music file meaning longer than let’s say 30 seconds …
Maybe if you could also send in the file Naomi?
Anyway I’m just using Mp3 for everything now until this settles.
[import]uid: 12407 topic_id: 31697 reply_id: 127271[/import]

Hey, Joshua, I have the very same problem. One OGG file that plays fine when built with 840 on NOOK Tablet (and same with Galaxy SII – and probably Kindle too but yet to be checked) does not play when built with 934. Other sound FX OGG files play fine. It’s only this one OGG file (unfortunately, it’s the music file – which would be very conspicuously missing when it doesn’t play.)

I’ve sent you the OGG file via Bug Report for you to check. I’d very much appreciate if you could check and confirm that this particular OGG file won’t play with the latest daily build – and I’m rather cutting close to Oct. 15th NOOK deadline, eh?

Naomi

Edit1: When I swapped the problem OGG file with MP3 file, it plays fine without any issue.
Edit2: The OGG file is sent to you under Bug Case #18053 [import]uid: 67217 topic_id: 31697 reply_id: 127269[/import]

@adrianeraldo, I sent the file to Joshua via bug report. Hopefully, he’ll sort this out.

By the way, you know, I’m wondering if it’s something to do with the file size. All of my OGG files that play fine are 28KB or less, while the OGG file that won’t play is 210KB. The MP3 version of the music file that plays is only 25KB.

Naomi [import]uid: 67217 topic_id: 31697 reply_id: 127277[/import]

Would you mind sending us one of your OGG files that is giving you trouble please? You can do so by clicking the “Report a Bug” link at the top of this web page. Just state that it is not resuming properly with our AudioPlayer sample app. Thanks. [import]uid: 32256 topic_id: 31697 reply_id: 127124[/import]

Oh, I see a pattern here now with Naomi’s input. Mine was also a background music file meaning longer than let’s say 30 seconds …
Maybe if you could also send in the file Naomi?
Anyway I’m just using Mp3 for everything now until this settles.
[import]uid: 12407 topic_id: 31697 reply_id: 127271[/import]

Hey, Joshua, I have the very same problem. One OGG file that plays fine when built with 840 on NOOK Tablet (and same with Galaxy SII – and probably Kindle too but yet to be checked) does not play when built with 934. Other sound FX OGG files play fine. It’s only this one OGG file (unfortunately, it’s the music file – which would be very conspicuously missing when it doesn’t play.)

I’ve sent you the OGG file via Bug Report for you to check. I’d very much appreciate if you could check and confirm that this particular OGG file won’t play with the latest daily build – and I’m rather cutting close to Oct. 15th NOOK deadline, eh?

Naomi

Edit1: When I swapped the problem OGG file with MP3 file, it plays fine without any issue.
Edit2: The OGG file is sent to you under Bug Case #18053 [import]uid: 67217 topic_id: 31697 reply_id: 127269[/import]

@adrianeraldo, I sent the file to Joshua via bug report. Hopefully, he’ll sort this out.

By the way, you know, I’m wondering if it’s something to do with the file size. All of my OGG files that play fine are 28KB or less, while the OGG file that won’t play is 210KB. The MP3 version of the music file that plays is only 25KB.

Naomi [import]uid: 67217 topic_id: 31697 reply_id: 127277[/import]

The original files that were in the app that B&N rejected were .m4a and the largest was 118 kb. After reading the audio documentation carefully I saw that only .mp3 and another file type were supported for android devices. So I converted them all to .mp3 and only then was my app accepted. Of course those files were much bigger, the largest being 718kb. I don’t know what happened because I already had an app approved with .m4a’s and in the store. [import]uid: 40033 topic_id: 31697 reply_id: 127414[/import]

@Pixin, the 210KB OGG file plays fine on NOOK Color & Tablet (and all other Android device) when the game is built using daily build 840. However, when I build the game using the daily build 934, the 210KB OGG file won’t play (even though all other OGG files that are 28KB or less play perfectly fine for me.) So… if you are wondering about your app you’ve already released, I don’t think you need to worry about it.

That said, if you are releaseing an updated version using more recent daily build (for NOOK HD/HD+ support), I’d like to know how it goes especially if your MP3 files include the large 718KB MP3 file – and if 718KB MP3 file plays perfectly fine on NOOK device after updating your app using daily build 934, then we can eliminate the speculation about the file size being an issue.

Naomi [import]uid: 67217 topic_id: 31697 reply_id: 127451[/import]

Update:

I just got approved my 2 apps for NOOK HD using Mp3 instead of OGG. So there you go.

@Pixin: I personally split the audio channels into mono, that saves you half of the file size. Then I use 22khz for the encoding. It really doesn’t make much different with that tiny speaker the Nook has. And if that is not enough I would suggest that you make a loop instead of a full song for the audio.
I hope this helps.
[import]uid: 12407 topic_id: 31697 reply_id: 127463[/import]

Thanks Adrian, and congrats, that’s exactly how I minimize my audo files (22, mono, trim to loop) sometimes even less than 22 if I can get away with it. That’s not even a full song, and the same file as .m4a is only 84kb!

Naomi, I just submitted an update today for HD so I’ll let you know. I see Adrian’s were approved with mp3s too. [import]uid: 40033 topic_id: 31697 reply_id: 127472[/import]

Naomi, thank you for submitting your OGG file to us. We won’t have time to look into this issue this week. So, as a work-around, I hope you won’t mind switching over to MP3 like Adrian has at the moment.

One more thing. You might want to double check if your device’s internal storage is low on space. This is because audio files are extracted to internal storage because our current audio APIs cannot access files inside of an APK (which is really a zip file). If internal storage runs out of space, then the audio file will fail to be extracted, which will prevent it from being played. [import]uid: 32256 topic_id: 31697 reply_id: 127507[/import]