Skip to content
Commits on Mar 19, 2015
  1. @timwindsor

    Merge pull request #33 from MSohm/master

    Added creation of a window group, required by 10.3.1+.
    timwindsor committed Mar 19, 2015
  2. @MSohm
Commits on Jan 16, 2015
  1. @timwindsor

    Merge pull request #32 from phofman/master

    Created projects for Visual Studio 2013
    timwindsor committed Jan 16, 2015
Commits on Dec 27, 2014
  1. @phofman
  2. @phofman
  3. @phofman
  4. @phofman
  5. @phofman
Commits on Jun 3, 2014
  1. @timwindsor

    Merge pull request #31 from oros/master

    More detailed sample.
    timwindsor committed Jun 3, 2014
  2. Updated files.

    Erik Oros committed Jun 3, 2014
  3. More detailed sample.

    Erik Oros committed Jun 3, 2014
Commits on May 21, 2014
  1. @timwindsor

    Merge pull request #30 from oros/master

    Adding UnityInvoke sample.
    timwindsor committed May 21, 2014
Commits on May 16, 2014
  1. Added README.pdf

    Erik Oros committed May 16, 2014
  2. Added UnityInvoke sample.

    Erik Oros committed May 16, 2014
Commits on Feb 21, 2014
  1. @timwindsor

    Merge pull request #29 from oros/master

    Adding UnityGamepad sample.
    timwindsor committed Feb 21, 2014
  2. Updating for release.

    eoros committed Feb 21, 2014
Commits on Feb 19, 2014
  1. @timwindsor

    Merge pull request #28 from jcmurray/master

    Initial Commit of BtHrmPlugin Sample
    timwindsor committed Feb 19, 2014
  2. Removed unnessary files

    John Murray committed Feb 19, 2014
  3. Initial Commit of BtHrmPlugin Sample

    John Murray committed Feb 19, 2014
Commits on Feb 12, 2014
  1. Added UnityGamepad sample.

    eoros committed Feb 12, 2014
Commits on Dec 20, 2013
  1. @timwindsor

    Merge pull request #23 from pratiksapra/master

    Bug Fixes & updated assets for uniform scaling
    timwindsor committed Dec 20, 2013
Commits on Dec 19, 2013
  1. Bug Fixes & updated assets for uniform scaling

    pratiksapra committed Dec 19, 2013
Commits on Oct 17, 2013
  1. @pelegri

    Merge pull request #21 from Gurtej/master

    Bug Fixes
    pelegri committed Oct 17, 2013
  2. Bug Fixes

    - result of audio_manager_snd_pcm_open_name() is now tested tested
    - The results of snd_pcm_plugin_enable() / snd_pcm_plugin_disable()
    shouldn’t be tested against ‘< 0’.
    -Use SND_PCM_START_DATA for capture
    
    -snd_pcm_plugin_prepare() is being called twice irrespective of the
    status returned
    - Moved the writeToCircularBuffer(), where read was successful.
    - total_written+= written should be in ‘else’ so it doesn’t get updated
    if write fails
    Gurtej Sandhu committed Oct 17, 2013
Commits on Oct 16, 2013
  1. @pelegri

    Merge pull request #20 from Gurtej/master

    SND_PCM_STATUS_CHANGE
    pelegri committed Oct 16, 2013
  2. Change made

    Gurtej Sandhu committed Oct 16, 2013
  3. Revert "SND_PCM_STATUS_CHANGE"

    This reverts commit b809116.
    Gurtej Sandhu committed Oct 16, 2013
  4. SND_PCM_STATUS_CHANGE

    "voice" currently switches automatically when a device is plugged in/out
    without notification to the user.  There has been a change with BB10.2.x
    that means that a device switch notification will be passed up to the
    user in the form of a snd_pcm_plugin_write()/snd_pcm_plugin_read()
    failure with a status of SND_PCM_STATUS_CHANGE if PLUGIN_ROUTING is
    enabled, or a status of SND_PCM_STATUS_UNDERRUN/OVERRUN if it isn’t
    (even if SND_PCM_STOP_ROLLOVER is in effect).
    
    What this means is that clients of "voice" audio path should make sure
    they explicitly handle these status events in their code; example code
    is included below.  The recommended code modifications can be affected
    immediately, they are backwards compatible with all previous versions of
    BB10.
    
    Example code:
    
    int nRead;
    char buffer[1024];  // actual buffer size is defined by client
    configuration
    size_t szBuffer = sizeof(buffer);
    if ((nRead = snd_pcm_plugin_read(hPcm, (void*)buffer, szBuffer)) !=
    szBuffer) {
    int err;
    snd_pcm_channel_status_t status;
    memset(&status, 0, sizeof(status));
    status.channel = SND_PCM_CHANNEL_CAPTURE;
    if ((err = snd_pcm_plugin_status(hPcm, &status)) < 0) {
    switch (status) {
    case SND_PCM_STATUS_OVERRUN:    // Overrun (for capture only) - prepare
    case SND_PCM_STATUS_UNDERRUN:   // Underrun (for playback only) -
    prepare
    case SND_PCM_STATUS_ERROR:      // HW error - prepare
    case SND_PCM_STATUS_READY:      // Device ready - prepare
    case SND_PCM_STATUS_CHANGE:     // Switching devices - prepare
    if ((err = snd_pcm_plugin_prepare(hPcm, SND_PCM_CHANNEL_CAPTURE)) < 0) {
    // printf("capture prepare failed - %s", snd_strerror(err));
    // TODO handle error condition
    } else {
    // if SND_PCM_START_GO is used, then snd_pcm_plugin_go()
    // needs to be called here as well. If this was for playback and
    // SND_PCM_STOP_ROLLOVER was not being used, then snd_pcm_plugin_write()
    // would need to be called before snd_pcm_plugin_go() to prime the
    // playback frag queue.
    }
    break;
    default:
    // TODO handle other status conditions as per client needs
    break;
    }
    } else {
    // printf("capture status failed - %s", snd_strerror(err));
    // TODO handle err as per client needs
    }
    }
    Gurtej Sandhu committed Oct 16, 2013
  5. Removed BBID Sample

    Gurtej Sandhu committed Oct 16, 2013
  6. SND_PCM_STATUS_CHANGE

    "voice" currently switches automatically when a device is plugged in/out
    without notification to the user.  There has been a change with BB10.2.x
    that means that a device switch notification will be passed up to the
    user in the form of a snd_pcm_plugin_write()/snd_pcm_plugin_read()
    failure with a status of SND_PCM_STATUS_CHANGE if PLUGIN_ROUTING is
    enabled, or a status of SND_PCM_STATUS_UNDERRUN/OVERRUN if it isn’t
    (even if SND_PCM_STOP_ROLLOVER is in effect).
    
    What this means is that clients of "voice" audio path should make sure
    they explicitly handle these status events in their code; example code
    is included below.  The recommended code modifications can be affected
    immediately, they are backwards compatible with all previous versions of
    BB10.
    
    Example code:
    
    int nRead;
    char buffer[1024];  // actual buffer size is defined by client
    configuration
    size_t szBuffer = sizeof(buffer);
    if ((nRead = snd_pcm_plugin_read(hPcm, (void*)buffer, szBuffer)) !=
    szBuffer) {
    int err;
    snd_pcm_channel_status_t status;
    memset(&status, 0, sizeof(status));
    status.channel = SND_PCM_CHANNEL_CAPTURE;
    if ((err = snd_pcm_plugin_status(hPcm, &status)) < 0) {
    switch (status) {
    case SND_PCM_STATUS_OVERRUN:    // Overrun (for capture only) - prepare
    case SND_PCM_STATUS_UNDERRUN:   // Underrun (for playback only) -
    prepare
    case SND_PCM_STATUS_ERROR:      // HW error - prepare
    case SND_PCM_STATUS_READY:      // Device ready - prepare
    case SND_PCM_STATUS_CHANGE:     // Switching devices - prepare
    if ((err = snd_pcm_plugin_prepare(hPcm, SND_PCM_CHANNEL_CAPTURE)) < 0) {
    // printf("capture prepare failed - %s", snd_strerror(err));
    // TODO handle error condition
    } else {
    // if SND_PCM_START_GO is used, then snd_pcm_plugin_go()
    // needs to be called here as well. If this was for playback and
    // SND_PCM_STOP_ROLLOVER was not being used, then snd_pcm_plugin_write()
    // would need to be called before snd_pcm_plugin_go() to prime the
    // playback frag queue.
    }
    break;
    default:
    // TODO handle other status conditions as per client needs
    break;
    }
    } else {
    // printf("capture status failed - %s", snd_strerror(err));
    // TODO handle err as per client needs
    }
    }
    Gurtej Sandhu committed Oct 16, 2013
Commits on Oct 9, 2013
  1. BlackBerry Native Identity Service Sample

    This sample demonstrates how retrieve below user attributes by
    integrating with BlackBerry Identity Service library and using
    BlackBerry ID Provider (Native SDK).
    
    first name
    last name
    screen name
    username/email
    user identifier
    Gurtej Sandhu committed Oct 9, 2013
Commits on Sep 18, 2013
  1. @pelegri

    Merge pull request #19 from pratiksapra/master

    Fix incorrect method name and update README
    pelegri committed Sep 17, 2013
Commits on Sep 5, 2013
  1. Fix incorrect method name and update README

    pratiksapra committed Sep 5, 2013
Commits on Aug 20, 2013
  1. @pelegri

    Merge pull request #18 from pratiksapra/master

    Adding First Version of SpaceGame
    pelegri committed Aug 19, 2013
Commits on Aug 16, 2013
  1. Adding First Version

    pratiksapra committed Aug 16, 2013
Something went wrong with that request. Please try again.