Click here to Skip to main content
11,570,945 members (50,036 online)
Click here to Skip to main content
Add your own
alternative version

Multidevice ASIO output plugin for WinAMP

, 13 Feb 2009 CDDL 26.5K 367 21
A tiny WinAMP output DLL that uses a C++ replacement of the official ASIO SDK that supports multiple ASIO devices.
#pragma once

#include "errno.h"
#include "memory.h"
#include "string.h"

#define DECL_PROLOG inline errno_t __fastcall

DECL_PROLOG memcpy_s
(
    void * const dest,
    size_t numberOfElements,
    const void *src,
    size_t count 
)
{
    if ( !dest || !src )
        return EINVAL;
    if ( numberOfElements < count )
        return ERANGE;
    memcpy( dest, src, count );
    return 0;
}

DECL_PROLOG memmove_s
(
    void * const dest,
    size_t numberOfElements,
    const void *src,
    size_t count 
)
{
    if ( !dest || !src )
        return EINVAL;
    if ( numberOfElements < count )
        return ERANGE;
    memmove( dest, src, count );
    return 0;
}

DECL_PROLOG wmemcpy_s
(
    void * const dest,
    size_t numberOfElements,
    const void *src,
    size_t count 
)
{
    if ( !dest || !src )
        return EINVAL;
    if ( numberOfElements < count )
        return ERANGE;
    memcpy( dest, src, count * sizeof( wchar_t ) );
    return 0;
}

#define wmemmove_s(dest, destsize, source, count) ::wmemmove((dest), (source), (count))

#undef DECL_PROLOG

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Common Development and Distribution License (CDDL)

Share

About the Author

Domagoj Šarić
Software Developer Little Endian Ltd.
Croatia Croatia
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150624.2 | Last Updated 13 Feb 2009
Article Copyright 2009 by Domagoj Šarić
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid