New topic: 

Problem handling 24 bit wav files with Sound and OpenAsSound

<http://forums.realsoftware.com/viewtopic.php?t=25761>

       Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic         Author  
Message       kintekobo           Post subject: Problem handling 24 bit wav 
files with Sound and OpenAsSoundPosted: Tue Dec 23, 2008 1:25 pm                
        
Joined: Mon Dec 17, 2007 1:50 pm
Posts: 16
Location: United Kingdom              I have an application which plays sound 
files which I have tested quite thoroughly, or so I thought, because a beta 
tester has reported that when he plays a sound it just makes a hiss like white 
noise.

My first thoughts were that it was a platform problem as he is testing on Intel 
and I have tested on PPC, but in the end we found that it was just that he was 
using 24 bit WAV files. Testing with 16 or 8 bit WAV showed no problems, and 
likewise by converting the files that failed from 24 bit WAV to 24 bit AIFF 
files resulted in them being able to play.

Has anyone else come across this problem? I did a search of the various groups 
and found no reference to it. I have samples that I can make available but I 
don't see how to attach files to these topics.

Here is a code snippet:

Code:'f is a valid FolderItem for the WAV file

dim s as Sound

if ( f <> nil ) then
  s = f.OpenAsSound
  if ( s <> nil ) then
  s.Play
  end if
end if


Thanks, 
Chris     
_________________
PowerMac G5 Dual 2.0GHz/3.0GB Mac OS 10.5.6 
PowerBook G4 1GHz/1.5GB Mac OS 10.5.6
RealBasic 5.1  
                            Top           Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]     

-- 
Over 900 classes with 18000 functions in one REALbasic plug-in. 
The Monkeybread Software Realbasic Plugin v8.1. 

&lt;http://www.monkeybreadsoftware.de/realbasic/plugins.shtml&gt;

[email protected]

Reply via email to