Permalink
Browse files

Simple Audio Player

This sample shows the use of a dropdown to select custom sounds to play
in an application.
  • Loading branch information...
1 parent 2854708 commit fdd476c0b7c395872433a3943ee21a9a97ed51c3 @BlackScorpion3 BlackScorpion3 committed Jan 13, 2013
View
193 AudioPlayer/.cproject
@@ -0,0 +1,193 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<?fileVersion 4.0.0?>
+
+<cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
+ <storageModule moduleId="org.eclipse.cdt.core.settings">
+ <cconfiguration id="com.qnx.qcc.toolChain.410036280">
+ <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.qnx.qcc.toolChain.410036280" moduleId="org.eclipse.cdt.core.settings" name="Device-Debug">
+ <externalSettings/>
+ <extensions>
+ <extension id="com.qnx.tools.ide.qde.core.QDEBynaryParser" point="org.eclipse.cdt.core.BinaryParser"/>
+ <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ </extensions>
+ </storageModule>
+ <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+ <configuration artifactName="${ProjName}" buildProperties="" description="" id="com.qnx.qcc.toolChain.410036280" name="Device-Debug" parent="org.eclipse.cdt.build.core.emptycfg">
+ <folderInfo id="com.qnx.qcc.toolChain.410036280.1400697980" name="/" resourcePath="">
+ <toolChain id="com.qnx.qcc.toolChain.2092450487" name="com.qnx.qcc.toolChain" superClass="com.qnx.qcc.toolChain">
+ <option id="com.qnx.qcc.option.os.924499333" name="Target OS:" superClass="com.qnx.qcc.option.os"/>
+ <option id="com.qnx.qcc.option.cpu.456860713" name="Target CPU:" superClass="com.qnx.qcc.option.cpu" value="com.qnx.qcc.option.gen.cpu.armle-v7" valueType="enumerated"/>
+ <option id="com.qnx.qcc.option.compiler.955269455" name="Compiler:" superClass="com.qnx.qcc.option.compiler"/>
+ <option id="com.qnx.qcc.option.runtime.203565506" name="Runtime:" superClass="com.qnx.qcc.option.runtime"/>
+ <targetPlatform archList="all" binaryParser="com.qnx.tools.ide.qde.core.QDEBynaryParser" id="com.qnx.qcc.targetPlatform.506249045" osList="all" superClass="com.qnx.qcc.targetPlatform"/>
+ <builder autoBuildTarget="Device-Debug" enableAutoBuild="true" id="com.qnx.qcc.toolChain.410036280.353950908" incrementalBuildTarget="Device-Debug" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
+ <tool id="com.qnx.qcc.tool.compiler.1432502865" name="QCC Compiler" superClass="com.qnx.qcc.tool.compiler">
+ <option id="com.qnx.qcc.option.compiler.optlevel.1943771915" name="Optimization Level" superClass="com.qnx.qcc.option.compiler.optlevel" value="com.qnx.qcc.option.compiler.optlevel.0" valueType="enumerated"/>
+ <inputType id="com.qnx.qcc.inputType.compiler.1150173241" superClass="com.qnx.qcc.inputType.compiler"/>
+ </tool>
+ <tool id="com.qnx.qcc.tool.assembler.755868803" name="QCC Assembler" superClass="com.qnx.qcc.tool.assembler">
+ <inputType id="com.qnx.qcc.inputType.assembler.1506116350" superClass="com.qnx.qcc.inputType.assembler"/>
+ </tool>
+ <tool id="com.qnx.qcc.tool.linker.2035042423" name="QCC Linker" superClass="com.qnx.qcc.tool.linker">
+ <option id="com.qnx.qcc.option.linker.libraries.1692636968" superClass="com.qnx.qcc.option.linker.libraries" valueType="libs">
+ <listOptionValue builtIn="false" value="bbmultimedia"/>
+ </option>
+ </tool>
+ <tool id="com.qnx.qcc.tool.archiver.1154853067" name="QCC Archiver" superClass="com.qnx.qcc.tool.archiver"/>
+ </toolChain>
+ </folderInfo>
+ <sourceEntries>
+ <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="src"/>
+ </sourceEntries>
+ </configuration>
+ </storageModule>
+ <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
+ </cconfiguration>
+ <cconfiguration id="com.qnx.qcc.toolChain.222246400">
+ <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.qnx.qcc.toolChain.222246400" moduleId="org.eclipse.cdt.core.settings" name="Device-Release">
+ <externalSettings/>
+ <extensions>
+ <extension id="com.qnx.tools.ide.qde.core.QDEBynaryParser" point="org.eclipse.cdt.core.BinaryParser"/>
+ <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ </extensions>
+ </storageModule>
+ <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+ <configuration artifactName="${ProjName}" buildProperties="" description="" id="com.qnx.qcc.toolChain.222246400" name="Device-Release" parent="org.eclipse.cdt.build.core.emptycfg">
+ <folderInfo id="com.qnx.qcc.toolChain.222246400.1259357949" name="/" resourcePath="">
+ <toolChain id="com.qnx.qcc.toolChain.1486484622" name="com.qnx.qcc.toolChain" superClass="com.qnx.qcc.toolChain">
+ <option id="com.qnx.qcc.option.os.1961269568" name="Target OS:" superClass="com.qnx.qcc.option.os"/>
+ <option id="com.qnx.qcc.option.cpu.206867154" name="Target CPU:" superClass="com.qnx.qcc.option.cpu" value="com.qnx.qcc.option.gen.cpu.armle-v7" valueType="enumerated"/>
+ <option id="com.qnx.qcc.option.compiler.1892381681" name="Compiler:" superClass="com.qnx.qcc.option.compiler"/>
+ <option id="com.qnx.qcc.option.runtime.214183341" name="Runtime:" superClass="com.qnx.qcc.option.runtime"/>
+ <targetPlatform archList="all" binaryParser="com.qnx.tools.ide.qde.core.QDEBynaryParser" id="com.qnx.qcc.targetPlatform.1660116512" osList="all" superClass="com.qnx.qcc.targetPlatform"/>
+ <builder autoBuildTarget="Device-Release" enableAutoBuild="true" id="com.qnx.qcc.toolChain.222246400.436010504" incrementalBuildTarget="Device-Release" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
+ <tool id="com.qnx.qcc.tool.compiler.1639240286" name="QCC Compiler" superClass="com.qnx.qcc.tool.compiler">
+ <option id="com.qnx.qcc.option.compiler.optlevel.1585482426" name="Optimization Level" superClass="com.qnx.qcc.option.compiler.optlevel" value="com.qnx.qcc.option.compiler.optlevel.0" valueType="enumerated"/>
+ <inputType id="com.qnx.qcc.inputType.compiler.1737551485" superClass="com.qnx.qcc.inputType.compiler"/>
+ </tool>
+ <tool id="com.qnx.qcc.tool.assembler.2117902170" name="QCC Assembler" superClass="com.qnx.qcc.tool.assembler">
+ <inputType id="com.qnx.qcc.inputType.assembler.2008211573" superClass="com.qnx.qcc.inputType.assembler"/>
+ </tool>
+ <tool id="com.qnx.qcc.tool.linker.964292964" name="QCC Linker" superClass="com.qnx.qcc.tool.linker">
+ <option id="com.qnx.qcc.option.linker.libraries.235886668" superClass="com.qnx.qcc.option.linker.libraries" valueType="libs">
+ <listOptionValue builtIn="false" value="bbmultimedia"/>
+ </option>
+ </tool>
+ <tool id="com.qnx.qcc.tool.archiver.1429780986" name="QCC Archiver" superClass="com.qnx.qcc.tool.archiver"/>
+ </toolChain>
+ </folderInfo>
+ <sourceEntries>
+ <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="src"/>
+ </sourceEntries>
+ </configuration>
+ </storageModule>
+ <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
+ </cconfiguration>
+ <cconfiguration id="com.qnx.qcc.toolChain.482438370">
+ <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.qnx.qcc.toolChain.482438370" moduleId="org.eclipse.cdt.core.settings" name="Device-Profile">
+ <externalSettings/>
+ <extensions>
+ <extension id="com.qnx.tools.ide.qde.core.QDEBynaryParser" point="org.eclipse.cdt.core.BinaryParser"/>
+ <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ </extensions>
+ </storageModule>
+ <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+ <configuration artifactName="${ProjName}" buildProperties="" description="" id="com.qnx.qcc.toolChain.482438370" name="Device-Profile" parent="org.eclipse.cdt.build.core.emptycfg">
+ <folderInfo id="com.qnx.qcc.toolChain.482438370.2013968644" name="/" resourcePath="">
+ <toolChain id="com.qnx.qcc.toolChain.800106692" name="com.qnx.qcc.toolChain" superClass="com.qnx.qcc.toolChain">
+ <option id="com.qnx.qcc.option.os.1627519877" name="Target OS:" superClass="com.qnx.qcc.option.os"/>
+ <option id="com.qnx.qcc.option.cpu.660828403" name="Target CPU:" superClass="com.qnx.qcc.option.cpu" value="com.qnx.qcc.option.gen.cpu.armle-v7" valueType="enumerated"/>
+ <option id="com.qnx.qcc.option.compiler.1277925961" name="Compiler:" superClass="com.qnx.qcc.option.compiler"/>
+ <option id="com.qnx.qcc.option.runtime.51029469" name="Runtime:" superClass="com.qnx.qcc.option.runtime"/>
+ <targetPlatform archList="all" binaryParser="com.qnx.tools.ide.qde.core.QDEBynaryParser" id="com.qnx.qcc.targetPlatform.1522883867" osList="all" superClass="com.qnx.qcc.targetPlatform"/>
+ <builder autoBuildTarget="Device-Profile" enableAutoBuild="true" id="com.qnx.qcc.toolChain.482438370.1581948686" incrementalBuildTarget="Device-Profile" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
+ <tool id="com.qnx.qcc.tool.compiler.1623540424" name="QCC Compiler" superClass="com.qnx.qcc.tool.compiler">
+ <option id="com.qnx.qcc.option.compiler.optlevel.363499914" name="Optimization Level" superClass="com.qnx.qcc.option.compiler.optlevel" value="com.qnx.qcc.option.compiler.optlevel.0" valueType="enumerated"/>
+ <inputType id="com.qnx.qcc.inputType.compiler.880346850" superClass="com.qnx.qcc.inputType.compiler"/>
+ </tool>
+ <tool id="com.qnx.qcc.tool.assembler.1346436603" name="QCC Assembler" superClass="com.qnx.qcc.tool.assembler">
+ <inputType id="com.qnx.qcc.inputType.assembler.1595301449" superClass="com.qnx.qcc.inputType.assembler"/>
+ </tool>
+ <tool id="com.qnx.qcc.tool.linker.2106775713" name="QCC Linker" superClass="com.qnx.qcc.tool.linker">
+ <option id="com.qnx.qcc.option.linker.libraries.825283419" superClass="com.qnx.qcc.option.linker.libraries" valueType="libs">
+ <listOptionValue builtIn="false" value="bbmultimedia"/>
+ </option>
+ </tool>
+ <tool id="com.qnx.qcc.tool.archiver.400283056" name="QCC Archiver" superClass="com.qnx.qcc.tool.archiver"/>
+ </toolChain>
+ </folderInfo>
+ <sourceEntries>
+ <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="src"/>
+ </sourceEntries>
+ </configuration>
+ </storageModule>
+ <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
+ </cconfiguration>
+ <cconfiguration id="com.qnx.qcc.toolChain.153361029">
+ <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.qnx.qcc.toolChain.153361029" moduleId="org.eclipse.cdt.core.settings" name="Simulator-Debug">
+ <externalSettings/>
+ <extensions>
+ <extension id="com.qnx.tools.ide.qde.core.QDEBynaryParser" point="org.eclipse.cdt.core.BinaryParser"/>
+ <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ </extensions>
+ </storageModule>
+ <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+ <configuration artifactName="${ProjName}" buildProperties="" description="" id="com.qnx.qcc.toolChain.153361029" name="Simulator-Debug" parent="org.eclipse.cdt.build.core.emptycfg">
+ <folderInfo id="com.qnx.qcc.toolChain.153361029.967888292" name="/" resourcePath="">
+ <toolChain id="com.qnx.qcc.toolChain.84375189" name="com.qnx.qcc.toolChain" superClass="com.qnx.qcc.toolChain">
+ <option id="com.qnx.qcc.option.os.84497042" name="Target OS:" superClass="com.qnx.qcc.option.os"/>
+ <option id="com.qnx.qcc.option.cpu.850520109" name="Target CPU:" superClass="com.qnx.qcc.option.cpu"/>
+ <option id="com.qnx.qcc.option.compiler.1304534064" name="Compiler:" superClass="com.qnx.qcc.option.compiler"/>
+ <option id="com.qnx.qcc.option.runtime.1164156201" name="Runtime:" superClass="com.qnx.qcc.option.runtime"/>
+ <targetPlatform archList="all" binaryParser="com.qnx.tools.ide.qde.core.QDEBynaryParser" id="com.qnx.qcc.targetPlatform.1296723243" osList="all" superClass="com.qnx.qcc.targetPlatform"/>
+ <builder autoBuildTarget="Simulator-Debug" enableAutoBuild="true" id="com.qnx.qcc.toolChain.153361029.2070669828" incrementalBuildTarget="Simulator-Debug" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
+ <tool id="com.qnx.qcc.tool.compiler.1619897133" name="QCC Compiler" superClass="com.qnx.qcc.tool.compiler">
+ <option id="com.qnx.qcc.option.compiler.optlevel.2015253942" name="Optimization Level" superClass="com.qnx.qcc.option.compiler.optlevel" value="com.qnx.qcc.option.compiler.optlevel.0" valueType="enumerated"/>
+ <inputType id="com.qnx.qcc.inputType.compiler.823575940" superClass="com.qnx.qcc.inputType.compiler"/>
+ </tool>
+ <tool id="com.qnx.qcc.tool.assembler.715715169" name="QCC Assembler" superClass="com.qnx.qcc.tool.assembler">
+ <inputType id="com.qnx.qcc.inputType.assembler.1854166791" superClass="com.qnx.qcc.inputType.assembler"/>
+ </tool>
+ <tool id="com.qnx.qcc.tool.linker.2130149361" name="QCC Linker" superClass="com.qnx.qcc.tool.linker">
+ <option id="com.qnx.qcc.option.linker.libraries.408010394" superClass="com.qnx.qcc.option.linker.libraries" valueType="libs">
+ <listOptionValue builtIn="false" value="bbmultimedia"/>
+ </option>
+ </tool>
+ <tool id="com.qnx.qcc.tool.archiver.1369597963" name="QCC Archiver" superClass="com.qnx.qcc.tool.archiver"/>
+ </toolChain>
+ </folderInfo>
+ <sourceEntries>
+ <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="src"/>
+ </sourceEntries>
+ </configuration>
+ </storageModule>
+ <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
+ </cconfiguration>
+ </storageModule>
+ <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+ <project id="Template_Test.null.1193813603" name="Template_Test"/>
+ </storageModule>
+ <storageModule moduleId="scannerConfiguration">
+ <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="com.qnx.tools.ide.qde.managedbuilder.core.qccScannerInfo"/>
+ <scannerConfigBuildInfo instanceId="com.qnx.qcc.toolChain.153361029">
+ <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="com.qnx.tools.ide.qde.managedbuilder.core.qccScannerInfo"/>
+ </scannerConfigBuildInfo>
+ <scannerConfigBuildInfo instanceId="com.qnx.qcc.toolChain.482438370">
+ <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="com.qnx.tools.ide.qde.managedbuilder.core.qccScannerInfo"/>
+ </scannerConfigBuildInfo>
+ <scannerConfigBuildInfo instanceId="com.qnx.qcc.toolChain.410036280">
+ <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="com.qnx.tools.ide.qde.managedbuilder.core.qccScannerInfo"/>
+ </scannerConfigBuildInfo>
+ <scannerConfigBuildInfo instanceId="com.qnx.qcc.toolChain.222246400">
+ <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="com.qnx.tools.ide.qde.managedbuilder.core.qccScannerInfo"/>
+ </scannerConfigBuildInfo>
+ </storageModule>
+</cproject>
View
96 AudioPlayer/.project
@@ -0,0 +1,96 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>Template_Test</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
+ <arguments>
+ <dictionary>
+ <key>?name?</key>
+ <value></value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.append_environment</key>
+ <value>true</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.autoBuildTarget</key>
+ <value>Device-Debug</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.buildArguments</key>
+ <value></value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.buildCommand</key>
+ <value>make</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.cleanBuildTarget</key>
+ <value>clean</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.contents</key>
+ <value>org.eclipse.cdt.make.core.activeConfigSettings</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.enableAutoBuild</key>
+ <value>true</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.enableCleanBuild</key>
+ <value>true</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.enableFullBuild</key>
+ <value>true</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.fullBuildTarget</key>
+ <value>Device-Debug</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.stopOnError</key>
+ <value>true</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key>
+ <value>true</value>
+ </dictionary>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.rim.tad.tools.wst.jsdt.core.javascriptValidator</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
+ <triggers>full,incremental,</triggers>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.rim.tad.tools.qml.core.qmlFileBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.qnx.tools.bbt.xml.core.bbtXMLValidationBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>com.rim.tad.tools.wst.jsdt.core.jsNature</nature>
+ <nature>org.eclipse.cdt.core.cnature</nature>
+ <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
+ <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
+ <nature>com.qnx.tools.ide.bbt.core.bbtnature</nature>
+ <nature>org.eclipse.cdt.core.ccnature</nature>
+ <nature>com.rim.tad.tools.qml.core.qmlNature</nature>
+ </natures>
+</projectDescription>
View
33 AudioPlayer/.settings/org.eclipse.cdt.core.prefs
@@ -0,0 +1,33 @@
+eclipse.preferences.version=1
+environment/project/com.qnx.qcc.toolChain.153361029/CPULIST/delimiter=,
+environment/project/com.qnx.qcc.toolChain.153361029/CPULIST/operation=append
+environment/project/com.qnx.qcc.toolChain.153361029/CPULIST/value=x86
+environment/project/com.qnx.qcc.toolChain.153361029/VARIANTLIST/delimiter=,
+environment/project/com.qnx.qcc.toolChain.153361029/VARIANTLIST/operation=append
+environment/project/com.qnx.qcc.toolChain.153361029/VARIANTLIST/value=g
+environment/project/com.qnx.qcc.toolChain.153361029/append=true
+environment/project/com.qnx.qcc.toolChain.153361029/appendContributed=true
+environment/project/com.qnx.qcc.toolChain.222246400/CPULIST/delimiter=,
+environment/project/com.qnx.qcc.toolChain.222246400/CPULIST/operation=append
+environment/project/com.qnx.qcc.toolChain.222246400/CPULIST/value=arm
+environment/project/com.qnx.qcc.toolChain.222246400/EXCLUDE_VARIANTLIST/delimiter=,
+environment/project/com.qnx.qcc.toolChain.222246400/EXCLUDE_VARIANTLIST/operation=append
+environment/project/com.qnx.qcc.toolChain.222246400/EXCLUDE_VARIANTLIST/value=r
+environment/project/com.qnx.qcc.toolChain.222246400/append=true
+environment/project/com.qnx.qcc.toolChain.222246400/appendContributed=true
+environment/project/com.qnx.qcc.toolChain.410036280/CPULIST/delimiter=,
+environment/project/com.qnx.qcc.toolChain.410036280/CPULIST/operation=append
+environment/project/com.qnx.qcc.toolChain.410036280/CPULIST/value=arm
+environment/project/com.qnx.qcc.toolChain.410036280/VARIANTLIST/delimiter=,
+environment/project/com.qnx.qcc.toolChain.410036280/VARIANTLIST/operation=append
+environment/project/com.qnx.qcc.toolChain.410036280/VARIANTLIST/value=g
+environment/project/com.qnx.qcc.toolChain.410036280/append=true
+environment/project/com.qnx.qcc.toolChain.410036280/appendContributed=true
+environment/project/com.qnx.qcc.toolChain.482438370/CPULIST/delimiter=,
+environment/project/com.qnx.qcc.toolChain.482438370/CPULIST/operation=append
+environment/project/com.qnx.qcc.toolChain.482438370/CPULIST/value=arm
+environment/project/com.qnx.qcc.toolChain.482438370/EXCLUDE_VARIANTLIST/delimiter=,
+environment/project/com.qnx.qcc.toolChain.482438370/EXCLUDE_VARIANTLIST/operation=append
+environment/project/com.qnx.qcc.toolChain.482438370/EXCLUDE_VARIANTLIST/value=p
+environment/project/com.qnx.qcc.toolChain.482438370/append=true
+environment/project/com.qnx.qcc.toolChain.482438370/appendContributed=true
View
6 AudioPlayer/Makefile
@@ -0,0 +1,6 @@
+QMAKE_TARGET = Template_Test
+PROJECT_DIR := $(dir $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)))
+I18N_DIR := $(PROJECT_DIR)/translations
+
+include mk/cs-base.mk
+
View
37 AudioPlayer/README.md
@@ -0,0 +1,37 @@
+Audio Player
+Create a dropdown list to play audio sounds from within your applications.
+
+Sample Description:
+This sample demonstrates how to use a dropdown to play your own custom sounds within a BlackBerry Cascades application.
+
+
+
+Multiple dialogsRequirements:
+BlackBerry Native SDK for BlackBerry 10.0.9 or later
+One of the following:
+BlackBerry Alpha Device
+BlackBerry Alpha Device Simulator
+Importing a project into the Native SDK:
+From the the Sample apps page, download and extract the sample application.
+Launch the Native SDK.
+On the File menu, click Import.
+Expand General, and select Existing Projects into Workspace. Click Next.
+Browse to the location where you extracted the sample app, and click OK. The sample project should display in the the Projects section.
+Click Finish to import the project into your workspace.
+Requirements:
+
+BlackBerry 10 Native SDK Beta
+
+Running the example:
+
+Download the sample from http://github.com/blackberry.
+Launch BlackBerry 10 Native SDK Beta, and from the File menu, select Import.
+Expand General, and select Existing Projects into Workspace. Click Next.
+Browse to the location where you extracted the sample file, and then click OK.
+The sample project should display in the the Projects section. Click Finish to import the project into your workspace.
+In the Project Explorer pane, Right-click the the project (for example hellocascades) and select Build Project.
+In the Project Explorer pane, Right-click the the project (for example hellocascades) and select Run As > BlackBerry C/C++ Application.
+The application will now install and launch on your device if not you might have to set up your environment: http://developer.blackberry.com/cascades/documentation/getting_started/setting_up.html
+
+Disclaimer THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
View
8 AudioPlayer/Template_Test.pro
@@ -0,0 +1,8 @@
+APP_NAME = Template_Test
+
+CONFIG += qt warn_on cascades10
+
+
+LIBS += -lbbmultimedia
+
+include(config.pri)
View
BIN AudioPlayer/assets/images/pause_btn1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN AudioPlayer/assets/images/play_btn1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN AudioPlayer/assets/images/stop_btn1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
85 AudioPlayer/assets/main.qml
@@ -0,0 +1,85 @@
+// Default empty project template
+import bb.cascades 1.0
+//Media Player control Import
+import bb.multimedia 1.0
+
+// creates one page with a label
+Page {
+ //Attached Objects
+ attachedObjects: [
+
+ MediaPlayer {
+ //ID of media player
+ id: myPlayer
+ //Source of where your media is selected from
+ //We will use a drop down for this
+ sourceUrl: soundSelectorDropdown.selectedValue
+
+
+ }
+ ]
+ //Main Container
+ Container {
+ //Container for dropdown
+ Container {
+ layout: StackLayout {
+ orientation: LayoutOrientation.TopToBottom
+ }
+ //Center all components on page
+ horizontalAlignment: HorizontalAlignment.Center
+ //Create our drop down to hold selections
+ DropDown {
+ id: soundSelectorDropdown //Id that goes in sourceURL
+ title: "Sounds"
+ //Next Create List of sounds
+ Option {
+ text : "Fan 1"
+ description : "" //This is optional component
+ value : "asset:///music/fan1.wav" //Where the file located
+ }
+ Option {
+ text : "Fan 2"
+ description : ""
+ value : "asset:///music/fan2.wav"
+ }
+ } //End Drop Down
+ }//End Drop Down Container
+
+ //Media Player Controls
+ Container {
+ //We want these side by side
+ //So we use a stacklayout orientation left to right
+ layout: StackLayout {
+ orientation: LayoutOrientation.LeftToRight
+ }
+ horizontalAlignment: HorizontalAlignment.Center
+ topPadding: 20.0 //Added to give some space
+ ImageButton {//Play Button
+ id: systemSoundPlayButton //
+ defaultImageSource: "images/play_btn1.png" //Source where image button is
+ onClicked: {
+ myPlayer.play() //Calls our media player and gives command of Play
+ }
+ minHeight: 100.0
+ } // End Play Button
+ ImageButton { //Pause Button
+ id: customSoundPlayButton2
+ defaultImageSource: "images/pause_btn1.png" //Source where image button is
+ onClicked: {
+ myPlayer.pause() //Calls our media player and gives command of Pause
+ }
+ minHeight: 100.0
+ }//End Pause Button
+ ImageButton {
+ id: customSoundPlayButton3
+ defaultImageSource: "images/stop_btn1.png" //Source where image button is
+ onClicked: {
+ myPlayer.stop() //Calls our media player and gives command of Pause
+ }
+ minHeight: 100.0
+ } //End Stop Button
+
+ }//End Media Player Controls Container
+ } //End Main Container
+}
+
View
BIN AudioPlayer/assets/music/fan1.wav
Binary file not shown.
View
BIN AudioPlayer/assets/music/fan2.wav
Binary file not shown.
View
102 AudioPlayer/bar-descriptor.xml
@@ -0,0 +1,102 @@
+<?xml version="1.0" encoding="utf-8" standalone="no"?>
+<!--
+
+ Copyright (c) 2011, 2012 Research In Motion Limited.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<qnx xmlns="http://www.qnx.com/schemas/application/1.0">
+
+<!-- BlackBerry Tablet OS application descriptor file.
+
+ Specifies parameters for identifying, installing, and launching native applications on BlackBerry Tablet OS.
+
+-->
+
+ <!-- A universally unique application identifier. Must be unique across all BlackBerry Tablet OS applications.
+ Using a reverse DNS-style name as the id is recommended. (Eg. com.example.ExampleApplication.) Required. -->
+ <id>com.example.Template_Test</id>
+
+ <!-- The name that is displayed in the BlackBerry Tablet OS application installer.
+ May have multiple values for each language. See samples or xsd schema file. Optional. -->
+ <name>Template_Test</name>
+
+ <!-- A string value of the format <0-999>.<0-999>.<0-999> that represents application version which can be used to check for application upgrade.
+ Values can also be 1-part or 2-part. It is not necessary to have a 3-part value.
+ An updated version of application must have a versionNumber value higher than the previous version. Required. -->
+ <versionNumber>1.0.0</versionNumber>
+
+ <!-- Fourth digit segment of the package version. First three segments are taken from the
+ <versionNumber> element. Must be an integer from 0 to 2^16-1 -->
+ <buildId>1</buildId>
+
+ <!-- A string value (such as "v1", "2.5", or "Alpha 1") that represents the version of the application, as it should be shown to users. Optional. -->
+ <!-- <versionLabel></versionLabel> -->
+
+ <!-- Description, displayed in the BlackBerry Tablet OS application installer.
+ May have multiple values for each language. See samples or xsd schema file. Optional. -->
+ <description>The Template_Test application</description>
+
+ <!-- Copyright information. Optional. -->
+ <!-- <copyright></copyright> -->
+
+ <!-- Name of author which is used for signing. Must match the developer name of your development certificate. -->
+ <author>Example Inc.</author>
+
+ <!-- Unique author ID assigned by signing authority. Required if using debug tokens. -->
+ <!-- <authorId>ABC1234YjsnUk235h</authorId> -->
+
+ <initialWindow>
+ <systemChrome>none</systemChrome>
+ <transparent>false</transparent>
+ </initialWindow>
+
+ <!-- The category where the application appears. Either core.games or core.media. -->
+ <category>core.games</category>
+ <configuration name="Device-Debug">
+ <platformArchitecture>armle-v7</platformArchitecture>
+ <asset path="arm/o.le-v7-g/Template_Test" entry="true" type="Qnx/Elf">Template_Test</asset>
+ </configuration>
+ <configuration name="Device-Release">
+ <entryPointType>Qnx/Cascades</entryPointType>
+ <platformArchitecture>armle-v7</platformArchitecture>
+ <asset path="arm/o.le-v7/Template_Test.so" entry="true" type="Qnx/Elf">Template_Test.so</asset>
+ </configuration>
+ <configuration name="Device-Profile">
+ <platformArchitecture>armle-v7</platformArchitecture>
+ <asset path="arm-p/o.le-v7-g/Template_Test" entry="true" type="Qnx/Elf">Template_Test</asset>
+ </configuration>
+ <configuration name="Simulator-Debug">
+ <platformArchitecture>x86</platformArchitecture>
+ <asset path="x86/o-g/Template_Test" entry="true" type="Qnx/Elf">Template_Test</asset>
+ </configuration>
+
+ <!-- The icon for the application, which should be 86x86. -->
+ <icon>
+ <image>icon.png</image>
+ </icon>
+
+ <asset path="icon.png">icon.png</asset>
+ <asset path="assets">assets</asset>
+
+ <!-- Locale support -->
+ <asset path="translations" dest="qm">
+ <include name="*.qm"/>
+ </asset>
+
+ <!-- Request permission to execute native code. Required for native applications. -->
+ <permission system="true">run_native</permission>
+ <env var="LD_LIBRARY_PATH" value="app/native/lib:/usr/lib/qt4/lib"/>
+
+</qnx>
View
26 AudioPlayer/config.pri
@@ -0,0 +1,26 @@
+# Auto-generated by IDE. All changes by user will be lost!
+# Created at 1/13/13 1:39 AM
+
+BASEDIR = $$_PRO_FILE_PWD_
+
+INCLUDEPATH += \
+ $$BASEDIR/src
+
+SOURCES += \
+ $$BASEDIR/src/TemplateTest.cpp \
+ $$BASEDIR/src/main.cpp
+
+HEADERS += \
+ $$BASEDIR/src/TemplateTest.hpp
+
+CONFIG += precompile_header
+PRECOMPILED_HEADER = $$BASEDIR/precompiled.h
+
+lupdate_inclusion {
+ SOURCES += \
+ $$BASEDIR/../assets/*.qml
+}
+
+TRANSLATIONS = \
+ $${TARGET}.ts
+
View
BIN AudioPlayer/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
2 AudioPlayer/precompiled.h
@@ -0,0 +1,2 @@
+// This file is used to store precompiled headers.
+// It is intentionally left blank. It is up to you to decide which headers should be included here.
View
22 AudioPlayer/src/TemplateTest.cpp
@@ -0,0 +1,22 @@
+// Default empty project template
+#include "TemplateTest.hpp"
+
+#include <bb/cascades/Application>
+#include <bb/cascades/QmlDocument>
+#include <bb/cascades/AbstractPane>
+
+using namespace bb::cascades;
+
+TemplateTest::TemplateTest(bb::cascades::Application *app)
+: QObject(app)
+{
+ // create scene document from main.qml asset
+ // set parent to created document to ensure it exists for the whole application lifetime
+ QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(this);
+
+ // create root object for the UI
+ AbstractPane *root = qml->createRootObject<AbstractPane>();
+ // set created root object as a scene
+ app->setScene(root);
+}
+
View
23 AudioPlayer/src/TemplateTest.hpp
@@ -0,0 +1,23 @@
+// Default empty project template
+#ifndef TemplateTest_HPP_
+#define TemplateTest_HPP_
+
+#include <QObject>
+
+namespace bb { namespace cascades { class Application; }}
+
+/*!
+ * @brief Application pane object
+ *
+ *Use this object to create and init app UI, to create context objects, to register the new meta types etc.
+ */
+class TemplateTest : public QObject
+{
+ Q_OBJECT
+public:
+ TemplateTest(bb::cascades::Application *app);
+ virtual ~TemplateTest() {}
+};
+
+
+#endif /* TemplateTest_HPP_ */
View
31 AudioPlayer/src/main.cpp
@@ -0,0 +1,31 @@
+// Default empty project template
+#include <bb/cascades/Application>
+#include <bb/cascades/QmlDocument>
+#include <bb/cascades/AbstractPane>
+
+#include <QLocale>
+#include <QTranslator>
+#include <Qt/qdeclarativedebug.h>
+#include "TemplateTest.hpp"
+
+using namespace bb::cascades;
+
+Q_DECL_EXPORT int main(int argc, char **argv)
+{
+ // this is where the server is started etc
+ Application app(argc, argv);
+
+ // localization support
+ QTranslator translator;
+ QString locale_string = QLocale().name();
+ QString filename = QString( "Template_Test_%1" ).arg( locale_string );
+ if (translator.load(filename, "app/native/qm")) {
+ app.installTranslator( &translator );
+ }
+
+ new TemplateTest(&app);
+
+ // we complete the transaction started in the app constructor and start the client event loop here
+ return Application::exec();
+ // when loop is exited the Application deletes the scene which deletes all its children (per qt rules for children)
+}
View
12 AudioPlayer/translations/Makefile
@@ -0,0 +1,12 @@
+QMAKE_TARGET = Template_Test
+LUPDATE = $(QNX_HOST)/usr/bin/lupdate
+LRELEASE = $(QNX_HOST)/usr/bin/lrelease
+
+update: $(QMAKE_TARGET).pro FORCE
+ $(LUPDATE) $(QMAKE_TARGET).pro
+
+release: $(QMAKE_TARGET).pro $(QMAKE_TARGET).ts
+ $(LRELEASE) $(QMAKE_TARGET).pro
+
+FORCE:
+
View
1 AudioPlayer/translations/Template_Test.pro
@@ -0,0 +1 @@
+include (../Template_Test.pro)
View
4 AudioPlayer/translations/Template_Test.ts
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.0">
+</TS>

0 comments on commit fdd476c

Please sign in to comment.